Windowscursor setzen

Übersicht BlitzBasic DLLs und Userlibs

Neue Antwort erstellen

 

OJay

Betreff: Windowscursor setzen

BeitragDi, Feb 10, 2004 20:48
Antworten mit Zitat
Benutzer-Profile anzeigen
es folgt als nächstes: Windowscursor aus BB heraus ändern.

et voila:

Code: [AUSKLAPPEN]
;=============================================
;.lib "user32.dll"
;LoadCursor%( ID, Cursor ):"LoadCursorA"
;SetCursor%( ID ):"SetCursor"
;=============================================
Const IDC_ARROW            = 32512
Const IDC_IBEAM               = 32513      ;// Text Beam
Const IDC_WAIT               = 32514
Const IDC_CROSS               = 32515
Const IDC_UPARROW            = 32516
Const IDC_SIZENONE            = 32641      ;// No Cursor
Const IDC_SIZENWSE            = 32642      ;// Top left to bottom right
Const IDC_SIZENESW            = 32643      ;// Top right to bottom left
Const IDC_SIZEWE            = 32644      ;// Left to right
Const IDC_SIZENS            = 32645      ;// Top to Bottom
Const IDC_SIZEMOVE            = 32646      ;// Cross (4 directions)
Const IDC_SIZEDENIED         = 32648      ;// Circle with diagonal Line
Const IDC_SIZEHAND            = 32649      ;// Hand cursor
Const IDC_SIZEHOURGLASS      = 32650      ;// Hourglass
Const IDC_SIZEHELP            = 32651      ;// QuestionMark
Const IDC_SIZEMOVENS         = 32652      ;// Move Top to Bottom
Const IDC_SIZEMOVEWE         = 32653      ;// Move Left to right
Const IDC_SIZEMOVENSEW      = 32654      ;// Move 4 directions
Const IDC_SIZEMOVEN         = 32655      ;// Move Up
Const IDC_SIZEMOVES         = 32656      ;// Move Down
Const IDC_SIZEMOVEW         = 32657      ;// Move Left
Const IDC_SIZEMOVEE         = 32658      ;// Move Right
Const IDC_SIZEMOVENW         = 32659      ;// Move Top Left
Const IDC_SIZEMOVENE         = 32660      ;// Move Top Right
Const IDC_SIZEMOVESW         = 32661      ;// Move Bottom Left
Const IDC_SIZEMOVESE         = 32662      ;// Move Bottom Right
Const IDC_SIZECD            = 32663      ;// CD loading Icon


Repeat
Color 255,255,255
Rect 50,50,200,20
If RectsOverlap(MouseX(),MouseY(),1,1,50,50,200,20) SetCursor(LoadCursor(0,IDC_IBEAM))
Until KeyHit(1)


userlib nicht vergessen Wink

Neue Antwort erstellen


Übersicht BlitzBasic DLLs und Userlibs

Gehe zu:

Powered by phpBB © 2001 - 2006, phpBB Group