Hi Amy,

> For example, I'd like a list at the left side and two buttons(one up, one
> down) at the right side.  I put them in two frames, named 'version' and
> 'action'. A dialog contains these 2 frames.  I want to:
> 1. Show the dialog with full screen.

  I noticed that you set SIZE=FULL at the dialog. This is not the same as
maximized, neither the same as fullscreen. In fullscreen mode the title bar
and system buttons are hidden, is this what you want?

 Also I noticed that you set the list size to SIZE=480x480, this is a very
big size, because the SIZE attribute is not in pixels. To set a size in
pixels use the RASTERSIZE attribute.


> 2. The 'action' frame is at the top-right corner. It is small in size. Its
y-axis can
> be set exactly, not only aTop, aCenter and aBottom.

  Don't know what you mean by this. 


> 3. The left space should be filled with 'version' frame.
> 4. When drag the dialog with mouse, the size of these 2 frames shall be
> adaptable by themselves.

  Assuming that in (2) you want to avoid the right blank space left by the
action frame, then you should set EXPAND=YES at the list, so it will push
the action frame to the right.

  Doing that the SIZE or RASTERSIZE set at the list will act as a minimum
size when you resize the dialog.

  If you remove that attribute it will create another problem, because
IupList was designed originally to expand its size to show all its items. To
avoid that maintain this attribute set or set the VISIBLELINES attribute, it
will also act as a minimum size when dialog is resized.


> Also, is there any attribute to make only two line in the list be
selectable?

  No. You can try to use the list callbacks to restrict the selected number
of lines during a selection operation.

Best Regards,
Antonio Scuri
 


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to