Thank you Don.

I hadn't understood the functionality of the move properties of the  
controls. I was expecting these adjustments to be defined at the form  
level, but when you point it out, it does make much more sense to put  
the adjustments at the level of the items on the form (smart objects  
responding to the change in form size). If I did use the isigraph  
version of this dialogue I might use its resize functionality, but for  
now I find the move properties a cleaner, object oriented solution.

Cheers, bob

On -Apr27-2009, at -Apr27-200911:33 AM, Don Guinn wrote:

> If you add moves to the controls you can get them moved and resized
> automatically. If you wish to do more elaborate movements to the
> controls it is not so easy. There is no resize event for a form. As
> you mentioned you can use an isigraph control and handle its resize
> event. I have at times used an isigraph control on a form just to get
> the resize event.
>
> Here is your form redefined with the moves.
>
> DISPLAY=: 0 : 0
> pc display dialog;
> xywh 386 330 44 12;cc cancel button leftmove topmove rightmove
> bottommove;cn "Close";
> xywh 9 309 317 22;cc box edit topmove rightmove bottommove;
> xywh 343 24 60 11;cc boxFormat radiobutton leftmove rightmove;cn  
> "Box Format";
> xywh 344 40 60 11;cc mathFormat radiobutton leftmove rightmove
> group;cn "Linear Format";
> xywh 344 55 60 11;cc treeFormat radiobutton leftmove rightmove
> group;cn "Tree Format";
> xywh 344 72 60 11;cc parenFormat radiobutton leftmove rightmove group;
> xywh 333 11 95 80;cc format groupbox leftmove rightmove;cn "Display  
> Style";
> xywh 0 0 326 299;cc tdisp listbox ws_hscroll ws_vscroll
> lbs_multiplesel rightmove bottommove;
> pas 6 6;pcenter;
> rem form end;
> )
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to