Thank you so much for the reply!

I don't know wat exactly is meant by MDI..I'm creating these windows between 
the begin() and end() of my main window, so they become child windows. I tried 
your method for changing the widget hierarchy, but the dragging problem still 
exits,changing the widget hierarchy doesn't solve the problem...

Alternately I tried making them subwindows, ie , after show() of the main 
window, I created these subwindows and set them as non-modal..
But then, when I resize the main window, making it smaller,these subwindows 
don't get hidden, instead they stick out of the main window..
Is there any way I can hide them whenever the main window's edges cross the 
subwindow's xy position? I want these subwindows to be embedded within the main 
window, ie they show not be visible outside the main window's border..

One more question...I'm creating another modal window as a subwindow, when I 
click on it, the control goes to its handle function, but here the condition 
"fl_actual_window != this" is true, so the events don't get processed..the 
fl_actual window contains the address of the parent..how can this be possible, 
I'm not able to figure out..

This is the first time I'm working on fltk, so please help me out..

Thanks!

>
>
> > I'm developing a program where I've created 5 child windows=20
> > and I want to drag these windows within the main window.
>
> Are you talking about some sort of MDI interface?
>
> I'm not sure what you mean by "windows within the main window" but I
> guess you mean some sort of MDI mechanism.
>
> If so, you should probably be aware that fltk does not really support
> MDI operation, so this may not work right.
>
> > When=20
> > I'm selecting a particular window and dragging, I want it to=20
> > be on the topmost, ie, it should be visible, but i think=20
> > because of widget hierarchy, it gets hidden by other child=20
> > windows while I'm dragging over them...
> >=20
> > Is it possible to change the widget hierarchy?
>
> Yes, though it may not be trivial. Once the drag starts, you may need to
> remove the window from it's parent then add it back in.
> That should force it to the end of the hierarchy, which should force it
> on top. Probably...
>
> There may be a better way.
>
> For my part, I'd advise against MDI anyway...!
>
>
>
> SELEX Galileo Ltd
> Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS=
> 14 3EL
> A company registered in England & Wales.  Company no. 02426132
> ********************************************************************
> This email and any attachments are confidential to the intended
> recipient and may also be privileged. If you are not the intended
> recipient please delete it from your system and notify the sender.
> You should not copy it or use it for any purpose nor disclose or
> distribute its contents to any other person.
> ********************************************************************
>

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

Reply via email to