Page 1 of 1

FWPPC application always on top

PostPosted: Mon Oct 26, 2009 10:45 am
by Otto
Hello Antonio,

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

Thanks in advance
Otto

Re: FWPPC application always on top

PostPosted: Mon Oct 26, 2009 11:13 am
by Antonio Linares
Otto,

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

Re: FWPPC application always on top

PostPosted: Mon Oct 26, 2009 11:59 am
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

Re: FWPPC application always on top

PostPosted: Wed Nov 11, 2009 5:58 pm
by Otto
Does someone has a solution for always on top in the forground?
Thanks in advance
Otto

Re: FWPPC application always on top

PostPosted: Wed Nov 11, 2009 9:48 pm
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  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
 

Re: FWPPC application always on top

PostPosted: Wed Nov 11, 2009 11:26 pm
by Otto
Hello Antonio,
thank you.
Could you please add the link.
Best regards,
Otto

Re: FWPPC application always on top

PostPosted: Thu Nov 12, 2009 6:29 pm
by Antonio Linares
Otto,

Source code posted in my previous msg :-)