Thanks for a very quick response.

I find that I whether I have NULL or not for the second parameter of IupLabel,
makes no difference to the output. For 64-bit programs passing two parameters,
all that NULL would do is set RDX to zero, which generally has no effect on
programs. But is that all you found wrong with my "snippet"? I mean when I
compile my program, nothing gets drawn on the client window -- it is
completely blank. I get no errors and nothing crashes, yet if I replace
"IupGridBox" with IupVbox or IupHbox (and comment out the IupSetAttributes),
it works as expected. Something has to be missing.

I wish I had a working example of a program and its code that uses IupGridBox.
The example code given in the IUP documentation is a little...unorthodox. The
example IUP gives uses IupSetAttribute to create all the controls, which is
cumbersome and doesn't provide much control over the manipulation of the
controls (such as adding callbacks) since IupSetAttribute doesn't return any
handles. Do you have anything like that?

Best regards,

On 12/23/2016 at 12:12 PM, Antonio Scuri <antonio.sc...@gmail.com> wrote: 
  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:






  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