On Fri, Jun 10, 2011 at 9:31 AM,  <[email protected]> wrote:

> Is there an easy way to have a ListView control expanded/contracted when the
> dialog window is sized bigger/smaller?
>
> If not an easy way, what's the best way to do this?

Hi Oliver,

In principle, what you need to do is connect to the resizing event of
the dialog, determine if the dialog is getting bigger or smaller and
by what amount, resize / reposition the list-view by an appropriate
amount for your program.

The .DlgAreaU class helps with this process.  There are 3 examples of
using the .DlgAreaU in the ooDialog directory:

dlgAreaUDemo.rex
dlgAreaUDemoTwo.rex
dlgAreaUDemoThree.rex

dlgAreaUDemo is the original example for the class.  I didn't like the
way it flickers. dlgAreaUDemoTwo and dlgAreaUDemoThree demonstrate a
technique to reduce the flicker.  There are all commented pretty well.

dlgAreaUDemoThree adds a technique that prevents the user from making
the dialog small than a specific size.  That technique could also be
used to restrict the largest size the user could make the dialog.
Although, generally all you want to do is prevent the user from making
the dialog too small and don't care if she makes it too big.

In the examples with the reduced flicker, the controls are not resized
/ repositioned until the user stops resizing the dialog.  This gives
the dialog a different look than when the controls are resized /
repositioned as the dialog is changing size.  So, which technique is
the best, is pretty objective - depends on what you like.

--
Mark Miesfeld

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to