Silverfrost Forums

Welcome to our forums

Problem with drop-down list

5 Nov 2008 10:00 #3951

Hello,

for some reason the displayed entries in the drop-down lists fall short of one entry. In the ls.f95 example the entry for 'Rasberries' is not shown (but can be selected by using the mouse wheel). This is especially strange as it does not depend on the actual number of entries for the drop-down listbox, if there are 40 entries only 39 are shown at once.

Is there some additional parameter that controls the number of displayed entries, or is this some bug?

Thanks.

5 Nov 2008 2:00 #3954

Does the drop-down list have a scrollbar on the right. If it does then this is normal. Otherwise ClearWin+ needs to be adjusted. Where can I find the sample code?

7 Nov 2008 7:13 #3977

Does the drop-down list have a scrollbar on the right

No it doesn't, it is a %^`ls listbox.

Where can I find the sample code?

ls.f95 in the ftn95 examples (clearwin directory).

7 Nov 2008 8:55 #3979

Sebastian,

This example works fine on my machine, all entries are visible.

By the way what is a 'rasberry' ?

7 Nov 2008 9:31 #3981

It doesn't work on two XP machines I've tried, also checked that it is independent of the XP style setting.

Attaching images (or files in general) doesn't seem to be available.

8 Nov 2008 5:46 #3988

Works fine on windows2000 and XP64

9 Nov 2008 4:32 #3990

Sebastian,

It might help if you said what screen resolution is in use, and what make of grapics card is used. I get serious problems with displaying several Clearwin things a 1650x1080 laptop with an ATI graphics chip, but no problems on desktops with more conventional 4:3 ratio displays.

Eddie

10 Nov 2008 12:54 #3994

This example works fine on my machine, all entries are visible.

Please check the second column, named 'Drop-down', and open it. How many entries do you see at once? What's the first and what's the last entry in there?

It might help if you said what screen resolution is in use, and what make of grapics card is used.

It is unrelated, I've tested it on a good number of different PCs including 64bit Vista/ATI and 64bit XP/Nvidia, standard XP installations etc. where most of them have a regular 4:3 aspect resolution.

10 Nov 2008 1:20 #3996

I can see the problem now and I will try to fix it without breaking any existing user's ClearWin+ code. In the meantime you might be able to get a temporary fix by using a named font with a slight increase or decrease in the font size. i.e try to match the default font and size and then make a small change in the font size.

10 Nov 2008 3:28 #3997

Please check the second column, named 'Drop-down', and open it. How many entries do you see at once? What's the first and what's the last entry in there?

I see all seven entries, with 'Apples' as the first and 'Rasberries' as the last.

10 Nov 2008 4:07 (Edited: 11 Nov 2008 9:36) #3998

Like John Horspool, I see it all as it is supposed to display. The first item is Apples, the last Rasberries.

Eddie

11 Nov 2008 8:33 #4001

In the meantime you might be able to get a temporary fix by using a named font with a slight increase or decrease in the font size.

Thanks for figuring this out, I'll see if this workaround is applicable for us.

11 Nov 2008 10:59 #4010

I tried ls.f95, and also had a number of problems:

 i=winio@('%^lb&',string,7,k,lbox_cb)    

! simple list box is not documented in help, has a vertical scroll bar

 i=winio@('%^`ls&',string,7,k,lbox_cb)

! drop down box only displays 6 lines in box

 i=winio@('%^10.3ls&',string,7,k,lbox_cb)

! scrolling box only displays 2 lines, not 3

If I remove the %ts text scaling, then these problems are removed. Also %^lb looses it's vertical scroll bar

Thanks for highlighting this example as it has a few useful features I have been unsure of, especially %mi and %ob

John

21 Nov 2008 8:06 #4023

I have fixed this problem for the next release.

26 Nov 2008 4:18 #4047

Thank you.

Please login to reply.