i have an application with a main frame TGMainFrame A, which pops up a transient frame (TGTransientFrame B) . by default, the Frame A is in the background and the transient frame B in the foreground. How to do to have the main frame A in the foreground, if selected clicked by user.
thanks for your help.

Hi Nabil,

You can use

gVirtualX->SetWMTransientHint(id_of_mainframe, id_of_transientframe)

(according your logic) to pop-up mainfarme window over the transient frame window.

Cheers, Ilka

In general TGTansientFrames should be used for dialogs which always stay on top of their parent. If you want to be able to change the stacking order just use two TGMainFrames.

Cheers, Fons.