Screen Saver With in Gambas Application
Posted
#1
(In Topic #892)
Enthusiast

I know i can use the built in screen saver on Linux but I am not using a full desktop just X11
What I want to do is when I display a given screen (frmSignedOff) after 5mins (or what ever I set the time out to be) I would like to start display full screen bmp / png images over my application (but have the application keep focus and respond to the A key (Sign on)
The idea behind this would be to use the user display as a advertising screen when not in use.
Is this possible (as I would like to show a number of "slides"
Posted
Guru

Posted
Guru

you could put any code you like in the SWin_Keypress event to do your login.
Code (gambas)
- ' Gambas class file
- '' Open the full screen window with a picturebox in it...
- .Arrangement = Arrange.Fill
- .Alignment = Align.Center
- SWin.Show()
- TM.Delay = 3000
- TM.Start
- TM.Trigger
- '' monitor for keypress events
- TM.Stop
- SWin.Close
- '' A timer to randomly pic an image from my Pictures folder and load it in the PictureBox
- sPics.Shuffle()
Posted
Enthusiast

BruceSteers said
Here's a working class that does that.
you could put any code you like in the SWin_Keypress event to do your login.Code (gambas)
' Gambas class file '' Open the full screen window with a picturebox in it... .Arrangement = Arrange.Fill .Alignment = Align.Center SWin.Show() TM.Delay = 3000 TM.Start TM.Trigger '' monitor for keypress events TM.Stop SWin.Close '' A timer to randomly pic an image from my Pictures folder and load it in the PictureBox sPics.Shuffle()
Thank-you so much BruceSteers I shall try that when I get home
1 guest and 0 members have just viewed this.



