[prev in list] [next in list] [prev in thread] [next in thread] 

List:       scilab-users
Subject:    [Scilab-users] Gridbag options
From:       Izabela_Wójcik-Grząba <iwoj () il ! pw ! edu ! pl>
Date:       2019-02-28 17:57:32
Message-ID: 1d647945b39d9957d2925df210e313e9 () il ! pw ! edu ! pl
[Download RAW message or body]

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
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic