Moving Child Frame Dynamically?

gummbeey

New Member
How do I change the ROW/COLUMN attribute of a child frame?
Every time I change the ROW/COLUMN, I get this message "Unable to set ROW/COLUMN. Frame f-Child does not fit in FIELD-GROUP widget.

Heres a cut-n-paste example:
HTML:
def button b-1.
def button b-2.
define frame f-main
with width 30 10 down.
define frame f-child
b-1 skip
b-2 skip.
on choose of b-1 in frame f-child
do:
frame f-child:row = frame f-child:row + 1.
end.
on choose of b-2 in frame f-child
do:
frame f-child:row = frame f-child:row - 1.
end.
 
assign frame f-child:frame = frame f-main:handle.
display b-1 b-2 with frame f-child.
enable b-1 b-2 with frame f-child.
view frame f-child.
wait-for window-close of current-window.
 

vinod_home

Member
Hi

try this...

/**** */
def button b-1.
def button b-2.
define frame f-main
with SIZE 20 BY 20.
define frame f-child
b-1 skip
b-2 SKIP
WITH SIZE 10 BY 5.
on choose of b-1 in frame f-child
do:
frame f-child:row = frame f-child:row + 1.
end.
on choose of b-2 in frame f-child
do:
frame f-child:row = frame f-child:row - 1.
end.

assign frame f-child:frame = frame f-main:handle.
DISPLAY WITH FRAME f-main.
display b-1 b-2 with frame f-child.
enable b-1 b-2 with frame f-child.
view frame f-child.
wait-for window-close of current-window.

/*** **/
 
Top