here it is open Notepad and type some Text and leave it open
start with
Code: Select all
c:\hmg.3.4.4\build.bat demo1Moderator: Rathinagiri
here it is open Notepad and type some Text and leave it open
Code: Select all
c:\hmg.3.4.4\build.bat demo1I know how to create my own scrollbar, but I don't know, how to attach it to control - in my case to Panel window.
i try to get "internal" Scrollbar from WC_Listview for Darkmode but i did not found it ...
Code: Select all
PostAppEvent(my_Scroll, ::nPercent,, oListview)Code: Select all
Case nEvent = my_Scroll
nRec := CalcRec(mp1) // Calc REC from nPercent
GoTo(nRec)Code: Select all
#include "hmg.ch"
#define COLOR_WINDOW 5
FUNCTION Main()
LOCAL nRGB := GetSysColor(COLOR_WINDOW)
//current color RGB
MsgBox(hb_NumToHex(nRGB, 6))
//change color (.T. if success)
MsgBox(SetSysColors(COLOR_WINDOW, 0x0000FF /*red*/))
//new color RGB
MsgBox(hb_NumToHex(GetSysColor(COLOR_WINDOW), 6))
//restore the previous color
MsgBox(SetSysColors(COLOR_WINDOW, nRGB))
RETURN NIL