Hi,

  Notice that set and get the RASTERSIZE of a control in IUP does
necessarily returns the same result. Depends a lot on the dialog and the
control configuration.

  If the dialog is already visible, then after setting the size you should
call IupRefresh so the dialog layout can be updated with the new size.

Best,
Scuri


On Sat, Mar 21, 2015 at 8:49 PM, Joaquim Luis <[email protected]> wrote:

> Hi,
>
> I want to resize the figure window to the size of an image being displayed
> (not bigger than the screen ofc) but having (bad) surprises because I get
> something else than required.
>
> For example, this piece of code clearly shows that the size requested is
> not being respected.
> This is Julia code but understandable, I think
>
> t = @sprintf("%dx%d", img.width, img.height)
> @show(t)
> IupSetAttribute(iup_canvas, "RASTERSIZE", t)
> @show(bytestring(IupGetAttribute(iup_canvas, "RASTERSIZE")))
>
> and the display is
>
> t = "430x300"
> bytestring(IupGetAttribute(iup_canvas,"RASTERSIZE")) = "414x168"
>
>
> Joaquim
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Iup-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to