The dumbest program I have ever written

Post

Posted
Rating:
#1 (In Topic #1416)
Avatar
Regular
thatbruce is in the usergroup ‘Regular’
and yet there is no simple way I could find of achieving this so easily!

Because I have bad habits (eatin', drinkin' coffee, sneezing etc etc  :mrgreen: ) I need to clean the screen of my laptop, well, let's say more than occasionally.
Isopropanol and a tissue does the trick.

This is the entire code

Code (gambas)

  1. ' Gambas class file
  2.  
  3. Public Sub Form_KeyPress()
  4.  
  5.   If Key.Code = Key.Esc Then Me.Close
  6.  
  7.  
  8. Public Sub Form_MouseWheel()
  9.  
  10.   If Mouse.Delta > 0 Then
  11.     Me.Background = Color.Lighter(Me.Background)
  12.   Else
  13.     Me.Background = Color.Darker(Me.Background)
  14.  
  15.  
  16. Public Sub Form_Open()
  17.  
  18.   Me.FullScreen = True
  19.   Me.Background=&HFDFFB5
  20.  
  21.  
  22. Public Sub Form_DblClick()
  23.  
  24.   Me.Background = &HFDFFB5
  25.  
  26.  

The form background is set to a light buttery color. It can be made brighter or darker with the mouse wheel or reset by double clicking.
Hit escape to close.

Try it! I dare you and look at the corners of the screen.

Enjoy
thatBruce

Online now: No Back to the top

Post

Posted
Rating:
#2
Guru
BruceSteers is in the usergroup ‘Guru’
You gotta love easy answers :)

That's a good idea. very simple but very good for what you need it for :)
Online now: No Back to the top
1 guest and 0 members have just viewed this.