draw over other app

Login to reply to this topic.
Mon, 2005-05-23 11:33
Joined: 2004-12-31
Forum posts: 83
hi all
this may sound crazy but is it any how possible to draw any thing ( a bitmap,  or just a text) on screen when some other appliaction is running.

warm regards

saurabh


Mon, 2005-05-23 14:04
Joined: 2004-05-24
Forum posts: 982
Re: draw over other app
Why do you want to do this?

pirosl

Mon, 2005-05-23 14:51
Joined: 2004-12-31
Forum posts: 83
Re: draw over other app
i want to design a visual alarm kind of thing in which if text msg will be flashed after few secs. obviously user will see it only if he\she is using the phone

warm regards

saurabh

Mon, 2005-05-23 21:13
Joined: 2004-05-24
Forum posts: 982
Re: draw over other app
Quote from: saurabh_gyl
i want to design a visual alarm kind of thing in which if text msg will be flashed after few secs. obviously user will see it only if he\she is using the phone

i'm not sure i understood you....but i think you can use system alarm.....or?

pirosl

Tue, 2005-05-24 06:02
Joined: 2004-12-31
Forum posts: 83
Re: draw over other app
hi pirosl

my application will be running in back ground and will flash some text over some other application.

saurabh.

warm regards

saurabh

Tue, 2005-05-24 08:46
Joined: 2004-05-24
Forum posts: 982
Re: draw over other app
Quote from: saurabh_gyl
hi pirosl

my application will be running in back ground and will flash some text over some other application.

saurabh.

Yep...then you can use system alarams

pirosl

Tue, 2005-05-24 10:12
Joined: 2004-12-31
Forum posts: 83
Re: draw over other app
and in one condition the text/image has to be displayed as soon as one particular application starts.

warm regards

saurabh

Tue, 2005-05-24 10:48
Joined: 2004-05-24
Forum posts: 982
Re: draw over other app
Quote from: saurabh_gyl
and in one condition the text/image has to be displayed as soon as one particular application starts.

You can get "notification" when an application start. Indeed the methosd i know is not very clever but it works (wrote somewhere else in the forum about it)

pirosl

Tue, 2005-05-24 13:00
Joined: 2004-12-31
Forum posts: 83
Re: draw over other app
ya i know how to do that and have already mentioned that recently in series 60 forum. Actually problem is that after getting that notification i am drawing text using CWindowGc::DrawText() from my background application. but this gives panic. so i thought there might be some other way. Huh

warm regards

saurabh

Tue, 2005-05-24 14:52
Joined: 2004-05-24
Forum posts: 982
Re: draw over other app
Quote from: saurabh_gyl
ya i know how to do that and have already mentioned that recently in series 60 forum. Actually problem is that after getting that notification i am drawing text using CWindowGc::DrawText() from my background application. but this gives panic. so i thought there might be some other way. Huh

Don't know exaclty the link now but check at Mika Raento's web site. He shows there how to draw from an exe and background app

pirosl

Wed, 2005-05-25 07:14
Joined: 2004-12-31
Forum posts: 83
Re: draw over other app
thanx pirosl
i'll check that link.

warm regards

saurabh

Mon, 2005-06-06 16:50
Joined: 2004-12-31
Forum posts: 83
Re: draw over other app
hi pirosl

i tried to implement the code in an exe as well as app.
in exe i am not able to get a reference to RWsSession. and in app RWsSession::GetRedraw() causes a panic.

can u plz help me out.


warm regards

saurabh

Mon, 2005-06-06 20:13
Joined: 2004-05-24
Forum posts: 982
Re: draw over other app
You have to init it first from exe then draw.

pirosl

Tue, 2005-06-07 07:13
Joined: 2004-12-31
Forum posts: 83
Re: draw over other app
ok i connected to thev Window server using RWsSession::Connect.
But now CWsScreenDevice::Construct() is leaving without any error code. and if i remove it then further down the code am not able to construct CApaWindowGroupName odject.

warm regards

saurabh

Tue, 2005-06-07 07:54
Joined: 2004-05-24
Forum posts: 982
Re: draw over other app
Check this link http://www.cs.helsinki.fi/u/mraento/symbian/ .
There is a sample code  "Ui in exe". May be is a good statrt point for you

pirosl

Mon, 2005-06-13 13:10
Joined: 2004-12-31
Forum posts: 83
Re: draw over other app
Quote from: pirosl
Check this link http://www.cs.helsinki.fi/u/mraento/symbian/ .
There is a sample code  "Ui in exe". May be is a good statrt point for you

hi pirosl

chk out

http://db.cs.helsinki.fi/~mraento/lxr/source/context_log/inc/screen.h
http://db.cs.helsinki.fi/~mraento/lxr/source/context_log/src/screen.cpp

and the source code mentioned in the link is a part of .app application.(http://db.cs.helsinki.fi/~mraento/lxr/source/context_log/group/context_log_common.mmp)

 so u get CEikonEnv easily. but in exe i dont think that we have any CEikonEnv.

so my problem of not getting CWsScreenDevice::Construct() to work still exist

 Sad

warm regards

saurabh

  • Login to reply to this topic.