FLTK logo

Re: window hide and show

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: window hide and show matthiasm Mar 23, 2008  
 
calling hide() the show() on a window should show it again in the same  
position. FLTK remebers the position of the window and requests the  
same position again from the window manager. The window manager  
however is free to move your windows around during creation time and  
override FLTK's request.

Just make sure that you do not *delete* the window between hide() and  
show().

Just to test if it is your window manager that cause troubles, you can  
try to call this before show() and see if that fixes things:

int xx = win->x(), yy = win->y();
win->position(xx+1, yy);
win->position(xx, yy);
win->show();

or this:

int xx = win->x(), yy = win->y();
win->show();
win->position(xx+1, yy);
win->position(xx, yy);


On 23.03.2008, at 09:51, pushparaj muthu wrote:
> Hi
>
> Herewith my pc details
>
> We are developing gui application on Linux desktop ( fedora 7 )  
> with  X11
> window manger

----
http://robowerk.com/
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.