FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC FWPPC application always on top
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
FWPPC application always on top
Posted: Mon Oct 26, 2009 10:45 AM

Hello Antonio,

Is there a possibility to keep a FWPPC application always on top in the forground?

Thanks in advance
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWPPC application always on top
Posted: Mon Oct 26, 2009 11:13 AM

Otto,

But will the user be able to access the start windows menu and open other applications ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: FWPPC application always on top
Posted: Mon Oct 26, 2009 11:59 AM

Hello Antonio,
I would need to hide all from the user. The user should only be able to see the FWPPC application.
Best regards,
Otto

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: FWPPC application always on top
Posted: Wed Nov 11, 2009 05:58 PM
Does someone has a solution for always on top in the forground?
Thanks in advance
Otto
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWPPC application always on top
Posted: Wed Nov 11, 2009 09:48 PM
Otto,

A solution is to hide all the windows elements, so the user can't select a different application. Using SHFullScreen()

Here you have a working example:
Code (fw): Select all Collapse
#include "FWCE.ch"

#define SHFS_HIDETASKBAR    2
#define SHFS_HIDESIPBUTTON  8
#define SHFS_HIDESTARTICON 20

function Main()

   local oWnd

   DEFINE WINDOW oWnd
   
   ShFullScreen( oWnd:hWnd, SHFS_HIDETASKBAR )
   ShFullScreen( oWnd:hWnd, SHFS_HIDESTARTICON )
   ShFullScreen( oWnd:hWnd, SHFS_HIDESIPBUTTON )

   ACTIVATE WINDOW oWnd ;
      ON INIT MoveWindow( oWnd:hWnd, 0, 0, 300, 320 ) ;
      ON CLICK oWnd:End()

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: FWPPC application always on top
Posted: Wed Nov 11, 2009 11:26 PM

Hello Antonio,
thank you.
Could you please add the link.
Best regards,
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWPPC application always on top
Posted: Thu Nov 12, 2009 06:29 PM

Otto,

Source code posted in my previous msg :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion