> On 31.03.2011 06:10, terry lai wrote:
> > Dear all,
> >
> > 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?
>
> Such things are documented in the chapter "Operating System Issues"
> of the FLTK docs [1]. What you need is fl_xid(Fl_Window *). However,
> this is not portable to other platforms, because fl_xid() returns a
> system specific data type.
>
> Albrecht
>
> [1] http://www.fltk.org/doc-1.3/osissues.html


I follow the method you suggested and get the xid. The I use it as parameter to 
run GrRaiseWindow. However, it does not work to raise the window.

Is xid = wid in nano-X?

Thanks!

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

Reply via email to