On 3/5/10 9:05 AM, Larry wrote: > On 3/5/2010 11:52 AM, Paul McNett wrote: >> On 3/5/10 8:46 AM, Larry wrote: >> >>> We want to bind a control's position to a column in a grid for a grid >>> column total. What property do we need to be looking at? >>> >> What do you intend to do if the user horizontally scrolls the grid in such a >> fashion >> as to make the column invisible? > I'm planning to also bind to it's width
Look in dGrid.py, lines 642 - 660 (or search for comment "Thanks Roger Binns"). That's the code to get the header rect for painting the column's header. The meat of the code finds the left position of the column on screen, accounting for the horizontal scrollbar. If a read-only dColumn.Left property seems desirable, based on this code, let me know. Otherwise take the code and modify it to your needs. Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
