Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Container/List Box bug - is there a fix??
Message
From
08/01/2001 10:53:42
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
08/01/2001 10:46:19
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00460513
Message ID:
00460593
Views:
7
>>The two containers are made visible/invisible when required, unfortunately ZOrder doesn't work for this, which is why I'm sure it's a bug. I would really like to get it fixed though, because I want to use list boxes rather than grids.
>>
>>I suppose I could change their position on the screen programmaticaly!
>>
>>Thanks
>>Kev
>
>That would be my suggestion: Instead of (or in addition to) making them visible/invisible as required, get it completely out of the way by setting the invisible control's Top higher than the form Height

He'd have to remember the original position for that, which would require an additional property for each container, i.e. class-level stuff. A simpler way would be

thisform.ContainerToVanish.Top=-thisform.ContainerToVanish.Top

Could do it with the .Left as well. To bring it back to (visible) existence, just repeat this. OK, this wouldn't work if .top was not greater than .height, so
with thisform.ContainerToVanish
   .Top=-.top-.height
endwith
And to restore it to visible it's the same again (check the math, should be right, but I've had only one coffee this morning):
with thisform.ContainerToRestore
   .Top=-.top-.height
endwith

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform