> I am currently wanting to control 2 FLTK windows (2 
> processes) by keys such as F1 and F2. If F1 is pressed, 
> process A will be active and FLTK window A is shown. If F2 is 
> pressed, process B will be active and FLTK window B is shown.
> 
> I had read nano-X document and found that function 
> GrRaiseWindow(wid) might help to do this. So I need to write 
> a application process as a center control of this 2 
> processes. However, GrRaiseWindow requires an argument window 
> ID which I cannot find it in FLTK window objects.
> 
> Could anyone give me some hints of this?

Can you not just call show() on the window to get it to raise?

Anyway, reading the docs we find:

Window fl_xid(const Fl_Window *)
Returns the XID for a window, or zero if not shown(). 


So that's how you get your wid - and that does the Right Thing under
X11, WinXX and OSX - I presume it also does the Right Thing under
nano-X.

Why are you using nano-X anyway?
My experiences with it were universally bad - we just switched to using
a "real" X-server and things Just Worked fine after that. Very few
target systems these days are so low-spec that they can't cope with X11,
say via the K-drive mechanism or similar, and that removes all the weird
incompatibility issues that nano-X introduces...





SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
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