Recent

Author Topic: How do I make a Wingding arrow appear in a TDBGrid cell?  (Read 576 times)

RedOctober

  • Sr. Member
  • ****
  • Posts: 450
How do I make a Wingding arrow appear in a TDBGrid cell?
« on: July 18, 2019, 10:46:56 pm »
Platform:  Laz 1.8.4  FPC 3.0.4  OS: Windows Server 2016

I have created a calculated field in my TIBQuery.  In the OnCalcFields event, I put:

  qryPreSnd2BkLst.AsString := 'ð';  // I got this character from the OS "Character Map" dialog box, selected the arrow, then "Copy"
  qryPreBkNow.AsString := 'è';  // Same as above, except a different arrow.
  qryPreBtnCol.AsString := '...';


I have created a column in the TDBGrid, FieldName is the caculated field, Charset: SYMBOL_CHARSET, Name = "WingDings",
Color="Navy", Pitch="Variable", Quality="Cleartype"

Nothing appears in the cell(s) that I want an arrow to appear.  However, when I place the letter 'Y' in the fields, in the OnCalcFields event, a little "Star of David" shows up, so there is some kind of symbol stuff going on, but I just can't get my little arrows to appear.

What am I doing wrong?  Thanks in advance for any help you can provide.





winni

  • Hero Member
  • *****
  • Posts: 3197
Re: How do I make a Wingding arrow appear in a TDBGrid cell?
« Reply #1 on: July 18, 2019, 11:10:01 pm »
Not quite shure, but we live in UTF8 times.

Or is your DB really ANSI with codepages?

I've just got no arrow at hand but some UTF8 symbols for testing:

☻☠☡☢☥☦☭☮☯☸☧☨☩☪☫☬☜☞☟☹☺☣☤

Winni

 

TinyPortal © 2005-2018