Hi,

  There is a small error at the label creation:

Ihandle *lbl1 = IupLabel("Label_1", NULL);
Ihandle *lbl2 = IupLabel("Label_2", NULL);

  Should be:

Ihandle *lbl1 = IupLabel("Label_1");
Ihandle *lbl2 = IupLabel("Label_2");

  The result is something like:

[image: Inline image 1]

  It needs a little bit more alignment and gap to improve the visual
result, but it is correct.

Best,
Scuri


On Thu, Dec 22, 2016 at 10:34 PM, Andrew Robinson <arobinso...@cox.net>
wrote:

> The following code snippet doesn't work:
>
> lbl1 = IupLabel("Label_1",NULL);
> btn1 = IupButton("Btn1",NULL);
> lbl2 = IupLabel("Label_2",NULL);
> btn2 = IupButton("Btn2",NULL);
> gbox = IupGridBox(lbl1,btn1,lbl2,btn2,NULL);
> IupSetAttribute(gbox,"ORIENTATION","HORIZONTAL");
> IupSetAttribute(gbox,"NUMDIV","2");
>
> If I use IupGridBox with IupVbox or IupHbox, everything works as expected.
> What is missing from the instructions that I am not doing with IupGridBox?
>
> I am using Win7 64-bit with 64-bit version of IUP, version 3.20.
>
> Thanks,
>
> ------------------------------------------------------------
> ------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/intel
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to