Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Container
Message
From
20/08/1998 02:09:06
 
 
To
19/08/1998 12:17:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00128167
Message ID:
00128382
Views:
13
>I've centered a checkbox in a container object to be used in grids. I have used this object in a grid and it works fine. The problem is that when the gridcolumn is rezized horizontally, the checkbox will not remain centered. Is there something that can be coded in the containers resize method that will keep the checkbox center at all times within the grid column? Thanks in advance for any help someone can offer.

Hi John

You have to make the container resize automaticly.

If you set:
Container.Width = Container.Parent.Width in the Container.Refresh()

Do the sane with the height if it is nessesary
Benn Kjaer
MS Certified Professional - Visual Foxpro

"There is something rotten in the state of Denmark"
"Why make user-friendly programs, when there aren’t any friendly users :o)"
Previous
Reply
Map
View

Click here to load this message in the networking platform