Hi All,
Unfortunately Tim is right, In Version 8.x you cannot resize a Browse
after it has been realized. I had never tried this in any version besides
9+ so I never even thought of it. Anyway the following code demonstrates
how to create a Window-Maximized event which will dynamically re-size and
re-place all of the objects on a window, depending on the size of the
window.
This procedure also has Triggers for Window-Restored, Window-Resized and
Window-Minimized. These Triggers are essentially there to support the
Window-Maximized Trigger. If you wanted to, you could take the formula's I
used here and apply them to the Window-Resize event in order to do this when
the user resizes the window with the Mouse.
In the past, I have also applied a constant to this formula and placed
it in initializeObject or the Main-Block, in order to proportionally resize
the window to the current Windows Resolution. To get the current
Resolution, you can query the SESSION:HEIGHT-PIXELS and SESSION:WIDTH-PIXELS
values. This is a pretty good start and there is a whole lot you can
accomplish with this base.
Happy Coding,
Ken McIntosh
TSEII
Progress Software Corp.
Unfortunately Tim is right, In Version 8.x you cannot resize a Browse
after it has been realized. I had never tried this in any version besides
9+ so I never even thought of it. Anyway the following code demonstrates
how to create a Window-Maximized event which will dynamically re-size and
re-place all of the objects on a window, depending on the size of the
window.
This procedure also has Triggers for Window-Restored, Window-Resized and
Window-Minimized. These Triggers are essentially there to support the
Window-Maximized Trigger. If you wanted to, you could take the formula's I
used here and apply them to the Window-Resize event in order to do this when
the user resizes the window with the Mouse.
In the past, I have also applied a constant to this formula and placed
it in initializeObject or the Main-Block, in order to proportionally resize
the window to the current Windows Resolution. To get the current
Resolution, you can query the SESSION:HEIGHT-PIXELS and SESSION:WIDTH-PIXELS
values. This is a pretty good start and there is a whole lot you can
accomplish with this base.
Happy Coding,
Ken McIntosh
TSEII
Progress Software Corp.