FWPPC application always on top

FWPPC application always on top

Postby Otto » 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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 5999
Joined: Fri Oct 07, 2005 7:07 pm

Re: FWPPC application always on top

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 41286
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FWPPC application always on top

Postby Otto » 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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 5999
Joined: Fri Oct 07, 2005 7:07 pm

Re: FWPPC application always on top

Postby Otto » Wed Nov 11, 2009 5:58 pm

Does someone has a solution for always on top in the forground?
Thanks in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 5999
Joined: Fri Oct 07, 2005 7:07 pm

Re: FWPPC application always on top

Postby Antonio Linares » Wed Nov 11, 2009 9: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: Select all  Expand view
#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
User avatar
Antonio Linares
Site Admin
 
Posts: 41286
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FWPPC application always on top

Postby Otto » Wed Nov 11, 2009 11:26 pm

Hello Antonio,
thank you.
Could you please add the link.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 5999
Joined: Fri Oct 07, 2005 7:07 pm

Re: FWPPC application always on top

Postby Antonio Linares » Thu Nov 12, 2009 6:29 pm

Otto,

Source code posted in my previous msg :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41286
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 6 guests