forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem with drop-down list

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
Sebastian



Joined: 20 Feb 2008
Posts: 177

PostPosted: Wed Nov 05, 2008 11:00 am    Post subject: Problem with drop-down list Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Wed Nov 05, 2008 3:00 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Sebastian



Joined: 20 Feb 2008
Posts: 177

PostPosted: Fri Nov 07, 2008 8:13 am    Post subject: Reply with quote

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

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



Quote:
Where can I find the sample code?

ls.f95 in the ftn95 examples (clearwin directory).
Back to top
View user's profile Send private message
JohnHorspool



Joined: 26 Sep 2005
Posts: 270
Location: Gloucestershire UK

PostPosted: Fri Nov 07, 2008 9:55 am    Post subject: Reply with quote

Sebastian,

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

By the way what is a "rasberry" ?
Back to top
View user's profile Send private message Visit poster's website
Sebastian



Joined: 20 Feb 2008
Posts: 177

PostPosted: Fri Nov 07, 2008 10:31 am    Post subject: Reply with quote

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
View user's profile Send private message
JohnHorspool



Joined: 26 Sep 2005
Posts: 270
Location: Gloucestershire UK

PostPosted: Sat Nov 08, 2008 6:46 pm    Post subject: Reply with quote

Works fine on windows2000 and XP64
Back to top
View user's profile Send private message Visit poster's website
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Sun Nov 09, 2008 5:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sebastian



Joined: 20 Feb 2008
Posts: 177

PostPosted: Mon Nov 10, 2008 1:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Mon Nov 10, 2008 2:20 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
JohnHorspool



Joined: 26 Sep 2005
Posts: 270
Location: Gloucestershire UK

PostPosted: Mon Nov 10, 2008 4:28 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Mon Nov 10, 2008 5:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sebastian



Joined: 20 Feb 2008
Posts: 177

PostPosted: Tue Nov 11, 2008 9:33 am    Post subject: Reply with quote

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
View user's profile Send private message
JohnCampbell



Joined: 16 Feb 2006
Posts: 2554
Location: Sydney

PostPosted: Tue Nov 11, 2008 11:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Fri Nov 21, 2008 9:06 am    Post subject: Reply with quote

I have fixed this problem for the next release.
Back to top
View user's profile Send private message AIM Address
Sebastian



Joined: 20 Feb 2008
Posts: 177

PostPosted: Wed Nov 26, 2008 5:18 pm    Post subject: Reply with quote

Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group