I am trying to create a label followed by some other widget horizontally. So for example.
First Name: _________________ Last Name: _________________ Country: _________________ The text on the left is a label. The underscores on the right represent something like a dropdown list, or a text field or a button or some other (boxy) widget. Additionally, I want the labels to be right-aligned, and the fields to be both left-aligned and expand (grow) to the right to fill the window. All the labels and fields should line up vertically too. I have a Mac/Cocoa background so my UI design tends to gravitate towards the Mac HI Guidelines. The picture of the Color Well in the Selection Control section may give you a better idea of what I'm talking about. https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/OSXHIGuidelines/ControlsSelection.html#//apple_ref/doc/uid/20000957-CH49-SW1 Anyway, I figured out how to do almost all of this with Iup, except for one little detail. My labels looks like they are top aligned (ATOP) instead of centered. So my text label looks too high compared to the field that follows it. My technique has been to create a label and field and put them in an hBox. I do this for each label/field pair. I set the ALIGNMENT for the label to "ARIGHT:ACENTER". I set the ALIGNMENT for the field to "ALEFT:ACENTER". I set the field EXPAND to "HORIZONTAL". I then use an IupNormalizer on the labels to get them to be the same size. Then I put all the hBoxes into a vBox to stack them. So the left and right alignments are working for me, but it feels like my center vertical alignment has no effect. I'm testing on Windows and Linux GTK2 right now if that makes a difference. Is there a way to fix this, or a better way to do this? Thanks, Eric ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users