Norton Allen
|
Adjust PtDivider from code?
|
Norton Allen
02/10/2009 1:26 PM
post21916
|
Adjust PtDivider from code?
Is it possible to set the widths of the regions controlled by a PtDivider from code? I see that the Pt_ARG_DIVIDER_SIZES
resource is read-only. If I set the size of one (or all?) of the children, will the PtDivider get the message?
I'd like to start out with a saved configuration but allow the user to drag the divider to adjust. I would also like to
override the PtDivider's response to a resize event from above. Rather than adjusting only the last element(s), I would
like to keep the children in the same ratio of sizes (or perhaps a somewhat more subtle relationship, depending on the
content)
Can anyone suggest the best strategies for achieving this functionality?
|
|
|