Ed Leafe wrote:

> On Nov 27, 2007, at 3:17 PM, Paul McNett wrote:
> 
>>> Create a container and put the checkbox in the container and then  
>>> center
>>> it. Then add the container to the grid.  It can be a little tricky  
>>> and
>>> later version of VFP have a property to center the checkbox.  HTH!
>>
>> I'm on VFP8 and I don't seem to be able to center align the checkbox.
>> But the container is a good idea, assuming it still responds to resize
>> events from the grid cell (so my resize code can reposition the  
>> checkbox).
> 
>       Geez, do you expect the UI to be as easy as Dabo?  ;-)

No, I guess not. :)

Okay, back to my problem at hand (centered checkboxes). I've created a 
control class and added properties like ControlSource and ReadOnly, with 
access/assign proxies to the child checkbox. The init() of the control 
has a BINDEVENT which bind's the column's resize to the control's 
resize, and I have code in the control's resize to position the 
checkbox. It is working well.

However, I also need to position the checkbox to center vertically, so I 
need to react to the grid's RowHeight being changed either interactively 
or programatically. BindEvents won't work because, as you know, 
RowHeight is a property and not an event.

How do I trap for the rowheight being interactively changed in a grid?


-- 
pkm ~ http://paulmcnett.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to