Dynamic frame

How to define a dynamic frame?

For example

I have to display in a frame

Label1 Label2 Label3
Val1 Val2 Val3
Val1 Val2 Val3

The above frame has to be flexible if there are only two values
then i have to display

lable1 Label3
val1 val3

If there are more values then my output should be
Label1 label3 Label4 label5
Val1 val3 val4 Val5
 

jongpau

Member
You can create a dynamic frame with the create frame <widget handle> statement (look it up in the manual for full details). Likewise you can dynamically create the objects in the frame (for instance, create fill-in <widget-handle>). You can also create a static frame and add objects to it dynamically.

As said, best thing to do it to look this up in the online documentation and to see how far you can get with it. It will be too much to do a full explanation on this topic in this forum, so its best to ask specific questions if you get stuck at some point.

Oh, just a tip (I am sure this will be also explained in the manual somewhere)... What you create you must destroy when you are done with it, if not you can end up with massive memory leaks.

Good luck,

Paul
 
Top