On Wed, Feb 20, 2013 at 3:26 PM, Staffan Tylen <staffan.ty...@gmail.com>wrote:

>
>
>> OK, I did that and then it worked. Now I've added:
>
> *  self~controlSizing(103,
>    -  -- CheckBox ALL fixed left*
> *                     .array~of('STATIONARY', 'LEFT',   102),
>   -*
> *                     .array~of('STATIONARY', 'TOP',    102),
>   -*
>  *                     .array~of('STATIONARY', 'LEFT',   102),
>     -*
> *                     .array~of('STATIONARY', 'BOTTOM', 102)
>    -*
> *                    )*
>
> between between ::method and return 0, and the problem is back. I'm aware
> that the above may not be a correct definition but the resulting error
> seems wrong.
>
>

If I drop your code above into a dialog, I get this error:

Error 98.900:  The resource ID (102) for the pin to window edge of control
ID (103) is not valid

Which seems right to me.  There are a number of reasons why things might be
invalid and you can't go into a lot of detail in a syntax message.  But,
the resource ID (102) should point you in the right direction.

The reason why you are not allowed incorrect sizing definitions is because
if they were just ignored. the resizing won't work correctly and it is
almost impossible to figure out why.  If a definition is detected that
won't work raises a syntax condition right when it is detected, then you
have a better chance of pinpointing the error when you first are coding the
program.

The reason why this specific error is flagged is this.  When the resizing
event happens, every window in the dialog is resized in the order the
sizing definitions are added to the manager.  So, if you pin window A to
window B, and window B comes after window A in the manager, then window A
is resized in relation window B, and then window B's size changes.

Since a lot of resizing events happen fast, in  a row, window A starts
getting resized according to where window B was, rather than where it is.
 So, you see things changing size and position, but it is subtly not right.
 At that point it is very hard to figure out what is wrong.  Especially if
you have 10 or 15 controls in the dialog.

--
Mark Miesfeld
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to