How to make floating windows?

Login to reply to this topic.
Thu, 2003-10-30 17:42
Joined: 2003-05-27
Forum posts: 363
Hello,

Does anyone know how to construct windows or controls that float on top of other apps (S60 or UIQ) ? I wrote this in the Symbian newsgroups ( news://publicnews.symbiandevnet.com C++ newsgroup) (the screenshots are also there):

---------------------

I need to display a floating window control on top of all other apps for a
while in Series60. I managed to do this by creating a windowed control and
then calling:

    (CCoeEnv::Static())->RootWin().SetOrdinalPosition(0,
ECoeWinAlwaysNeverAtFront);

The problem is, this works well, but when the active app is the Phone App,
things get messy for some reason. This may be a bug in the redrawing code of
the Phone App - does anyone have a solution to this problem or, in general,
how to create such a floating control properly?

I am attaching two pictures showing the normal situation and when my control
(blue window) is floating on top of the Phone App. It seems as if the Phone
App and some indicators do not redraw themselves properly if some window has
higher priority than they do.

Thanks in advance,
Pawel

Fri, 2003-10-31 14:14
Joined: 2003-05-27
Forum posts: 363
How to make floating windows?
Has anyone managed to implement windows/controls that are on top of other apps? Please reply!

Cheers,
Pawel
Sat, 2003-11-01 10:45
Joined: 2003-08-12
Forum posts: 67
How to make floating windows?
Hi Pawel

Have a look at the FepExample on forum nokia. In the FepControl class's ConstructL() the are trying to draw a high priority window, but its co-ordinates are (0, 0, 0, 0), just to make it an invisible window.

You can use the same logic to draw a high priority window for yourself.

 Cheezy

Regards,
Ashish Bhatia

Sat, 2003-11-01 12:16
Joined: 2003-05-27
Forum posts: 363
How to make floating windows?
Hi,

Thanks a lot for pointing me to that example! I added a Draw() method to paint a blue window and resized the control. This works, but does not solve my problem.

The reason is that FEP is essentially a part of the system, i.e. a system component and hence the FEP control probably is part of the same window group as the indicators are.

My own code was exactly the same, but part of an application and does not work properly as I explained above  Sad . So the only way to do this would be to write a FEP that would be a "dummy" FEP that would forward requests to T9 FEP... but that is far from optimal for displaying a single floating control  Huh

Regards,
Pawel
Mon, 2003-11-03 05:46
Joined: 2003-08-12
Forum posts: 67
My fep is not workingon the phone.
Hi,

My fep is not working on the phone. Its working fine on both the debug and the release version of the emulator. But when i transfer it on the phone and install it using FepSetup sample app, then all the pplications on my phone start crashing Cry

I am building it like this  Shocked
abld build armi urel
abld freeze
abld build armi urel
makesis <fep>.pkg

I tried with the example Fep also. If I use the sis provided with the application, then its working on the phone. But when I rebuild sis file from my machine (without even changing a single line of the sample) then it crashes on the phone. I think there is some problem with my building process. I am using SDK 1.2 but I have tried SDK 0.9 but to no avail.

So please can any body try this out and let me know whether they had any success with this.

tx

Regards,
Ashish Bhatia

Mon, 2003-11-03 08:03
Joined: 2003-05-27
Forum posts: 363
How to make floating windows?
Hi,

The FEP example for me. Your DEF file for the target build must look like this:

Code:
EXPORTS
NewFepL__FR7CCoeEnvRC7TDesC16RC17CCoeFepParameters @ 1 NONAME
SynchronouslyExecuteSettingsDialogL__FR7CCoeEnvRC7TDesC16 @ 2 NONAME
Reserved_1__Fv @ 3 NONAME ; Reserved_1(void)
Reserved_2__Fv @ 4 NONAME ; Reserved_2(void)
Reserved_3__Fv @ 5 NONAME ; Reserved_3(void)
Reserved_4__Fv @ 6 NONAME ; Reserved_4(void)
Reserved_5__Fv @ 7 NONAME ; Reserved_5(void)
Reserved_6__Fv @ 8 NONAME ; Reserved_6(void)
Reserved_7__Fv @ 9 NONAME ; Reserved_7(void)
Reserved_8__Fv @ 10 NONAME ; Reserved_8(void)

Cheers,
Pawel
Mon, 2004-12-27 14:11
Joined: 2004-12-26
Forum posts: 9
How to make floating windows?
I have the same question. FepExample doesn't work on my 6600. I wonder whether the fep must be signed on real phone.

abing

Mon, 2005-01-10 23:05
Anonymous (not verified)
Forum posts: 2043
How to make floating windows?
Quote from: a_bing
I have the same question. FepExample doesn't work on my 6600. I wonder whether the fep must be signed on real phone.
BEcause it tries to load T9 FEP resource. Try to load resource from AknFe instead
  • Login to reply to this topic.