Using Wingding characters

Hi All

I'm a granddaddy Progress developer. Started in V3 and am finally getting into GUI big time in 8.3E but I'm stuck fast and really need your help.

I have read with interest the fix for using graphic characters in browse cells. Just what I wanted! Trouble is it doesn't quite work...

I am displaying decimal values in my browse and I want to show a blue up arrow or red down arrow depending on whether the value has gone up or down. Sounds easy huh.

So based on previous threads; I set Font 30 to Wingdings, size=10, regular in my .ini file then in my ROW-DISPLAY trigger I check for and set <browse_column>:FONT = 30 and <browse_column>:FGCOLOR = <either red or blue>

I'm getting the color no problem but the font change isn't happening. I thought maybe I'd misspelt 'wingdings' in the .ini - nope, everything looks fine. So I thought, I know, I'll slap a button on the window to SYSTEM-DIALOG FONT 30 and see what's what. Blow me down, font 30 is set to Wingdings, regular size 10. So cancel the dialog, issue a browse REFRESH() but nothing changes. So I go back to the font dialog via the button on the window, don't change anything, press OK, issue a browse REFRESH() and voila it's now in the browse column.

What am I doing wrong? It seems to be Wingdings as I have tried Symbol which works fine.

Oh and I have tried variations in the .ini too. Wingdings; Wingdings, size=10; WingDings, size=10, bold; with no success. Wingdings 2 and Wingdings 3 also fail to work as does Webdings.

Thanks very much in advance.
Chris





Windows XP Pro/8.3E
 
Hi Chris,

Have you specified that your column needs to use Font 30? Also, how are you trying to set the Up/Down arrows (are you specifying the specific CHR)?

Later,
Gordon
 
Hi Gordon
Yes I think so.
I'm using a x(1) local variable called lv_up_down that I populate in the ROW-DISPLAY trigger and then I'm using CHR(225) for the up arrow and CHR(226) for down.

ASSIGN
lv_up_down:FONT = 30
lv_up_down:FGCOLOR = (IF value-gone-down THEN lv_color_red ELSE lv_color_blue)
lv_up_down = (IF value-gone-up THEN CHR(225) ELSE CHR(226).

As I said, changing the Wingdings reference in the .ini to Symbol makes it work (but with ASCII codes 173 for up arrow and 175 for down).

Cheers
Chris
 
Wingdings are winging and dinging!

Hi All

Problem solved. Seems the font definition in the .ini was incorrect.

I was using;
font30=Wingdings, size=10
I should have been using;
font30=Wingdings, size=10 Script=symbol
All works fine now. As an aside I have also put together an Excel spreadsheet showing the ASCII mappings for all Wingdings, Wingdings 2, Wingdings 3 & Webdings fonts if anyone wants a copy; is there somewhere I can put this here??

Cheers
Chris
 
Re: Doh! Use the Manage Attachments button dummy

I am getting movies saved out with improper file names; such that XP pro will not open them.

XP will not allow me to access them to re name them. I was going to go in and do a manual replace of the squares if I can settle on the right names.

Examples:
Movie 1 Á_1004.TS

Movie 2 Á_1005.TS

These are translations from properties tab (show clear square) to text to this post.
 
Re: Doh! Use the Manage Attachments button dummy

As you don't really tell us much one needs to speculate.

But if I must, I would say that this sounds like a code page issue. What's your -cpstream setting and what's you Windows locale?

RealHeavyDude.
 
Too heavy for me! This is a hard drive using FAT 32 on a Satelite receiver box.

Box will not accept NTFS.

It would seem it has something to do with the box changing channels. Not enough time, (conversely not fast enough) and the resulting program name is intermixed with windows high end characters. In this case, a plain square for which I can locate no CHR for.

Windows rejects name changes, no deletes etc. Only way to get rid of the files is a quick format.

While this works well, I am trying to find a way to salvage the files which appear to be intact judging from the size etc. They cannot be opened in any program.
 
Back
Top