View previous topic :: View next topic |
Author |
Message |
Sebastian
Joined: 20 Feb 2008 Posts: 177
|
Posted: Wed Nov 05, 2008 11:00 am Post subject: Problem with drop-down list |
|
|
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. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7934 Location: Salford, UK
|
Posted: Wed Nov 05, 2008 3:00 pm Post subject: |
|
|
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? |
|
Back to top |
|
|
Sebastian
Joined: 20 Feb 2008 Posts: 177
|
Posted: Fri Nov 07, 2008 8:13 am Post subject: |
|
|
Quote: | Does the drop-down list have a scrollbar on the right |
No it doesn't, it is a listbox.
Quote: | Where can I find the sample code? |
ls.f95 in the ftn95 examples (clearwin directory). |
|
Back to top |
|
|
JohnHorspool
Joined: 26 Sep 2005 Posts: 270 Location: Gloucestershire UK
|
Posted: Fri Nov 07, 2008 9:55 am Post subject: |
|
|
Sebastian,
This example works fine on my machine, all entries are visible.
By the way what is a "rasberry" ? |
|
Back to top |
|
|
Sebastian
Joined: 20 Feb 2008 Posts: 177
|
Posted: Fri Nov 07, 2008 10:31 am Post subject: |
|
|
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. |
|
Back to top |
|
|
JohnHorspool
Joined: 26 Sep 2005 Posts: 270 Location: Gloucestershire UK
|
Posted: Sat Nov 08, 2008 6:46 pm Post subject: |
|
|
Works fine on windows2000 and XP64 |
|
Back to top |
|
|
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2390 Location: Yateley, Hants, UK
|
Posted: Sun Nov 09, 2008 5:32 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
Sebastian
Joined: 20 Feb 2008 Posts: 177
|
Posted: Mon Nov 10, 2008 1:54 pm Post subject: |
|
|
Quote: | 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?
Quote: | 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. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7934 Location: Salford, UK
|
Posted: Mon Nov 10, 2008 2:20 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
JohnHorspool
Joined: 26 Sep 2005 Posts: 270 Location: Gloucestershire UK
|
Posted: Mon Nov 10, 2008 4:28 pm Post subject: |
|
|
Quote: | 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. |
|
Back to top |
|
|
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2390 Location: Yateley, Hants, UK
|
Posted: Mon Nov 10, 2008 5:07 pm Post subject: |
|
|
Like John Horspool, I see it all as it is supposed to display. The first item is Apples, the last Rasberries.
Eddie
Last edited by LitusSaxonicum on Tue Nov 11, 2008 10:36 am; edited 1 time in total |
|
Back to top |
|
|
Sebastian
Joined: 20 Feb 2008 Posts: 177
|
Posted: Tue Nov 11, 2008 9:33 am Post subject: |
|
|
Quote: | 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. |
|
Back to top |
|
|
JohnCampbell
Joined: 16 Feb 2006 Posts: 2560 Location: Sydney
|
Posted: Tue Nov 11, 2008 11:59 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7934 Location: Salford, UK
|
Posted: Fri Nov 21, 2008 9:06 am Post subject: |
|
|
I have fixed this problem for the next release. |
|
Back to top |
|
|
Sebastian
Joined: 20 Feb 2008 Posts: 177
|
Posted: Wed Nov 26, 2008 5:18 pm Post subject: |
|
|
Thank you. |
|
Back to top |
|
|
|