Special characters in control text

mjcoon

Well-Known Member
Licensed User
I've just decided that I want a comboBox to choose fields by which to sort a table. So I want to sort Asc or Desc. The easiest way to present that is to use the triangles facing up or down like File Explorer "▲" and "▼".

I found these two characters in CharMap and pasted them into my code where the values would be tested and they show up there just as expected.

Unfortunately in the application, on desktop or device, the arrows show up as default empty rectangles.

Is there any way of getting the appearance that I want in the comboBox?

Mike.
 

klaus

Expert
Licensed User
Longtime User
The display of the special characters depends on the font used.
With the standard font on my desktop, with XP, the characters are not displayed.
With "Arial" it's OK on the desktop but not on the device.
With "Tahoma" it's OK on the device but not on the desktop.

Attached a small test program.

Best regards.
 

Attachments

  • ComboBoxSpecialCharacters.sbp
    1.2 KB · Views: 184

mjcoon

Well-Known Member
Licensed User
Where in the application, labels, button text?

It works fine for me, "Chr(9650)" is up-arrow and Chr(9660) is down arrow.

1) In my ComboBox

2) I'd prefer to put the text in via the Designer but I guess I can't use Chr() there!

Mike.
 

mjcoon

Well-Known Member
Licensed User
My WM5.0 device has Arial, Tahoma, BookDings and Frutiger Linotype (?!).

None of them do the arrows, as an enhancement of Klaus's test program have shown me.

Any other suggestions of fonts to put on my device (and how do I do that, anyway!)?

Mike.

PS I hadn't tried Courier New because a fixed-width font is really not satisfactory. However it does have the two arrows!
 
Last edited:

klaus

Expert
Licensed User
Longtime User
On my old Qtek9090 with WM2003, my test program didn't show the arrows.
Then I copied the arial.ttf font file from my labtop computer to the \windows\fonts folder of the device and now, in the test program, the arrows are shown when selecting the Arial font with the radiobutton.

Best regards.
 

mjcoon

Well-Known Member
Licensed User
Then I copied the arial.ttf font file from my labtop computer to the \windows\fonts folder of the device and now, in the test program, the arrows are shown when selecting the Arial font with the radiobutton.

Thanks again Klaus, I must admit I was very sceptical, considering that my device already thinks it has Arial, and I found that the Arial.ttf on my XP PC could not be copied!

But I found a copy at rapidshare.com, downloaded, copied to PPC and now choosing Arial shows the arrows!

So I guess I am going to have to add FormLib to the program's repertoire...

Best regards, Mike.
 

klaus

Expert
Licensed User
Longtime User
Yes, of course, you must add the FormLib to be able to change the font type.

I can't copy the arial.ttf file directly with copy and paste either, but I could drag it from the labtop to the SD card and on the device copy it from the SD card to the \windows\fonts folder.

Best regards.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…