is there anyway to enlarge and shrink a window

tonydt1g3r

New Member
I was wondering when resizing a window is there anyway to make all the contents of that window enlarge or shrink down along with the window. Sort of like magnifying, I am using 10.0 A
 
long hand

Greetings,

You can always use the obvious long hand method.
First you will need to create a procedure that dynamically resizes all the widgets. Eg internal procedure
set_bigger:
DO WITH FRAME {&FRAME-NAME}:
widget-name:HEIGHT = i_var_height
widget-name:WIDTH = i_var_width.
/* set all the other widget attributes on -the-fly */
END. /* frame */
Then on the resize of the window call your new internal procedure
ON WINDOW-RESIZE trigger:
DO:
RUN set_bigger
END. /* window-resize */

This is the long-hand method, there may be other ways to do it on-the-fly quicker, though this is the first obvious method that springs to mind.
Regards
 
well, in theory you'll have to define
the windows layout relative to the window
i.e. which objects to resize, align right, center etc.

you can write your own framework / system
but it's not as simple as you'd think, nothing is in our line of work
i actually wrote one, some time back in version 8

but why bother, especially if you're on version 10 ???
take a look at dynamics, that comes with it

without getting into this whole arguement
on frameworks and smartobjects compared to plain 4gl
dynamics user interface is way better then adm not to mention plain 4gl

go over to psdn.com \ library \ web events archive
sort of like video class rooms

http://psdn.progress.com/library/events_archive/index.ssp

at the bottom of the list there's one on dynamics
it's actually pretty out-dated, alot has changed
but you'll get the picture

if you'd like i can help you get started


while we're on the subject of resources
get to know psdn.com it's a great resource, specifically

knowledge base
web events, there's usually 2-3 new ones every month
online docs, if you don't already have them
and a bunch of other stuff


joey jeremiah, degrassi
 
Back
Top