Re: [Iup-users] Possible to shrink an image button?

2015-07-01 Thread Milind Gupta
Resizing in IM and then replacing it in the button is possible? Millind On Wed, Jul 1, 2015 at 8:19 AM, Antonio Scuri antonio.sc...@gmail.com wrote: No, it is not. The imagens in IUP will not scale. Best, Scuri Em 30/06/2015 23:16, Eric Wing ewmail...@gmail.com escreveu: On 6/30/15,

Re: [Iup-users] Possible to shrink an image button?

2015-06-30 Thread Antonio Scuri
Hi, Some comments about your code: - In a zbox all the elements inside it contribute to the layout natural size, even the hidden ones. - SHRINK is an attribute of the dialog. It is useless to set it on every element inside the dialog. But it will affect everyone inside the dialog.

Re: [Iup-users] Possible to shrink an image button?

2015-06-30 Thread Antonio Scuri
Complementing, if some controls inside the dialog does not have EXPAND set, then they will be sized only to they natural size, and depending how they are distributed in the zbox they will maintain a minimum size for the whole layout even if all the visible elements have expand set. Best, Scuri

Re: [Iup-users] Possible to shrink an image button?

2015-06-30 Thread Eric Wing
On 6/30/15, Antonio Scuri sc...@tecgraf.puc-rio.br wrote: Complementing, if some controls inside the dialog does not have EXPAND set, then they will be sized only to they natural size, and depending how they are distributed in the zbox they will maintain a minimum size for the whole layout

[Iup-users] Possible to shrink an image button?

2015-06-30 Thread Eric Wing
In my program, I want two large buttons with labels under each button, front and center. (This is kind of a Welcome launcher app.) I have figured out how to make the image buttons and labels and but them in vboxes and hboxes to make everything nice and centered and symmetrical. My window is

Re: [Iup-users] Possible to shrink an image button?

2015-06-30 Thread Antonio Scuri
It depends on the layout. This usually occurs when you set the SIZE or RASTERSIZE to get an initial size for the dialog. The trick is right after showing the dialog, set USERSIZE to NULL. This will remove that limitation. If it is not your case, then I need more details to figure out whats