Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange label positions in coded containers
Message
From
24/09/2007 11:13:04
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01256309
Message ID:
01256330
Views:
13
>I have a complex form with about 8 large containers, each having about 15 containers within it, they contain containers and labels, etc. The entire form is created in code from a table, is sizable with the mouse and has a lot of drag and drop. The form is used for visually tracking work flow within a shop.
>
>Problem:
>Everything works great except for the labels. I added a label inside one of the large containers to show a clock. The blasted label won't position where I tell it to. I had to add code to the clock timer event to reset the .left and .width, to the upper right of the container. Otherwise it just places itself at the top left of the container. I also noticed that when resizing the form with the mouse the blasted clock reverts back to the top left and many of the other labels within containers seem to revert to their default sizes until they are updated. (the labels show work order numbers and are refreshed from a timer.) Anchor is set to 240 for everything and the labels autosize = .f.

If they stay this wild, i.e. if you can't find what's causing the behavior, as the last resort I'd make the label's width equal to container's width and have them right justified. So they'd be in top left, but would show on the right. Also, zorder(1) them so that they don't eat up a click of an object below them.

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