Hello,

Some of the options of gridbag aren't clear for me. Maybe someone could explain my doubts.

Here is an example code:

f=figure("dockable","off","infobar_visible","off","toolbar_visible","off",..
"toolbar","none","menubar_visible","on","default_axes",..
"off","layout","border","background",-2);

r_lewa=uicontrol(f,"style","frame","constraints",createConstraints("border",..
"left",[200,0]),"border",createBorder("titled",..
createBorder("line","lightGray",1),("Kontrola rysunku"),..
"center","top"),"backgroundcolor",[1 1 1],"layout","gridbag");

przel=uicontrol(r_lewa,"style","frame","constraints",..
createConstraints("gridbag",[1 1 1 1],[1,0],"horizontal","upper"),"border",..
createBorder("titled",createBorder("line","lightGray",1),..
("Widocznosc"),"center","top"),"backgroundcolor",[1 1 1]);

przyciski=uicontrol(r_lewa,"style","frame","constraints",..
createConstraints("gridbag",[1 2 1 1],[1,0],"horizontal","lower"),"border",..
createBorder("titled",createBorder("line","lightGray",1),..
("Inne"),"center","top"),"backgroundcolor",[1 1 1]);

1. Is it possible to set the frame przel on the top of frame r_lewa and a frame przyciski at the bottom of r_lewa with use of gridbag? What does the options "upper" and "lower" do in this situation?

2. What is the meaning of "weight" option? Help page is not clear for me in this case.

3. Why the option "fill" works only when "weight" is not zero?

Thanks and regards,
Iza
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to