function BGR(r as UByte , g as Ubyte , b as Ubyte) as Long
Устанавливает значение цвета. (встроенная во FreeBasic функция!)
r , g , b - три компонента цвета от 0 до 255
Windows , Linux
#Include "window9.bi"
Dim As Hwnd hwnd
Dim As Long event
hwnd=OpenWindow("1",30,30,500,500)
Do
event=WaitEvent()
If event=EventClose Then End
If event=eventlbDOWN Then WindowColor(hwnd,BGR(255,0,0))
If event=eventrbDOWN Then WindowColor(hwnd,BGR(0,255,0))
Loop
Created with the Personal Edition of HelpNDoc: Free HTML Help documentation generator