FWPPC application always on top

Post Reply
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

FWPPC application always on top

Post by Otto »

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

********************************************************************
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: FWPPC application always on top

Post by Antonio Linares »

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
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: FWPPC application always on top

Post by Otto »

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

********************************************************************
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: FWPPC application always on top

Post by Otto »

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

********************************************************************
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: FWPPC application always on top

Post by Antonio Linares »

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

#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
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: FWPPC application always on top

Post by Otto »

Hello Antonio,
thank you.
Could you please add the link.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: FWPPC application always on top

Post by Antonio Linares »

Otto,

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

Antonio Linares
www.fivetechsoft.com
Post Reply