Thanks folks for the answers.
What I actually wanted to do was keep an aspect ratio, so I couldn't use 
size_range method, since "aspect parameter is ignored on WIN32 and by many X 
window managers".
I tried the workaround proposed by Ian and it worked OK. Moreover, I tried it 
only under Windows and it didn't needed the delay. Seems that the key was the 
hide()+show() to make the OS update the frame size. I am aware that it might be 
necessary under other platforms like X.

Cheers,
David

>
> On 11.03.2010, at 18:18, David Lopez wrote:
>
> > Hi,
> > With the following code I tried to override the Fl_Window::resize () =
> method to set an arbitrary aspect ratio (for example a fixed width). The =
> problem is that the window frame doesn't get that size, only the canvas =
> seems to do it.
> > Can some one figure out what I'm doing wrong?
> > Thanks Very Much
>
> Did you see the "size_range" function? This may already do what you =
> need, and it interfaces right to the desktop manager.
>
> =
> http://fltk.org/documentation.php/doc-1.1/Fl_Window.html#Fl_Window.size_ra=
> nge
>
> - Matthias=
>

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to