How to bring an application to foreground

Login to reply to this topic.
Thu, 2005-03-31 13:11
Joined: 2004-12-23
Forum posts: 239
Hi All

I want to bring my application to foreground,
From forum I came to know

RWsSession ws;
User::LeaveIfError(ws.Connect());
ws.SetWindowGroupOrdinalPosition(iWindowsGroupID, 0);
ws.Close();

This can be used for purporting the goal.
But how can I get windowgroup identifier which is iWindowsGroupID here.
Can anyone help me..

---------------
Bhatt Kavita


Fri, 2005-04-01 06:50
Joined: 2004-01-09
Forum posts: 188
How to bring an application to foreground
Use it like this


TInt iWindowsGroupID= CEikonEnv::Static()->WsSession().GetFocusWindowGroup();

CEikonEnv::Static()->WsSession().SetWindowGroupOrdinalPosition(iWindowsGroupID, 0);


BR
CK

----
Chetan Kulshrestha

Fri, 2005-04-01 09:18
Joined: 2004-12-23
Forum posts: 239
How to bring an application to foreground
Hi
and Thanks for ur reply
But Chetan I think this line will get the identifier for the window that currently has keyboard focus.
However I have tried this one..but it doesn;t seems to work.

TInt iWindowsGroupID= CEikonEnv::Static()->WsSession().GetFocusWindowGroup();

Currect me If I am wrong.
Thanks again

---------------
Bhatt Kavita

Fri, 2005-04-01 09:29
Joined: 2004-01-09
Forum posts: 188
How to bring an application to foreground
Ok first tell me the answer of the few questions.

Where you are implementing this part of the code , i mean in App or in exe?

are you implementing this code in the same application, that you want to bring in foreground? if yes than how you are calling this part of code?

BR
Chetan

----
Chetan Kulshrestha

Mon, 2005-09-05 12:41
Joined: 2005-04-25
Forum posts: 21
Re: How to bring an application to foreground
hello,
is it possible with your solution to fix an application allways on layer position 2. that means this application is allways in front of the idle screen.
regardless of which other applications are open at the moment.

i want to build an application which have a window on the idle screen. i found no way to draw directly on that idle screen. now i want to have an application which is allways on position in front of the idle screen. (idle screen means -> root screen -> the screen which is shown after the start up)

  • Login to reply to this topic.