Change mouse icon?

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by halo.

Is there a way to do this?

I like PB!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Paul.

Yes... just search the forum for your answer.
It's been posted a few times.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by halo.

Well I can change to an hourglass with this code...

SetClassLong_(WindowID(),#GCL_HCURSOR,LoadCursor_(0,#IDC_WAIT))

...but can't seem to do anything else. Where are all these constants found? I don't see them in the help docs.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by El_Choni.

Hi,

I found these constants in Masm's include file, but there must be more:

Code: Select all

#IDC_ARROW = 32512
#IDC_IBEAM = 32513
#IDC_WAIT = 32514
#IDC_CROSS = 32515
#IDC_UPARROW = 32516
#IDC_SIZE = 32640
#IDC_ICON = 32641
#IDC_SIZENWSE = 32642
#IDC_SIZENESW = 32643
#IDC_SIZEWE = 32644
#IDC_SIZENS = 32645
#IDC_SIZEALL = 32646
#IDC_NO = 32648
#IDC_HAND = 32649
#IDC_APPSTARTING = 32650
#IDC_HELP = 32651
Bye,

El_Choni
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

You can use a an external '.cur' (not sure about this ext) like this:

LoadCursor_(GetModuleHandle_(0), "yourcursor.cur")


Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

Hi El_Choni
Yes, here is a list with some more constants:

Code: Select all

#IDC_ARROW	          Arrow cursor
#IDC_IBEAM	          I-beam cursor
#IDC_WAIT	          Hourglass cursor
#IDC_CROSS	          Crosshair cursor
#IDC_UPARROW	          Up arrow cursor
#IDC_SIZENWSE	          Sizing cursor, points northwest and southeast
#IDC_SIZENESW	          Sizeing cursor, points northeast and southwest
#IDC_SIZEWE	          Sizing cursor, points west and east
#IDC_SIZENS	          Sizing cursor, points north and south
#IDC_SIZEALL	          Sizing cursor, points north, south, east, and west
#IDC_NO   	          "No" cursor
#IDC_APPSTARTING          Application-starting cursor (arrow and hourglass)
#IDC_HELP	          Help cursor (arrow and question mark)
#IDI_APPLICATION	  Application icon
#IDI_HAND	          Stop sign icon
#IDI_QUESTION	          Question-mark icon
#IDI_EXCLAMATION	  Exclamation point icon
#IDI_ASTERISK	          Asterisk icon (letter "i" in a circle)
#IDI_WINLOGO	          Windows logo icon 

PIII450, 256MB Ram, 6GB HD, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...

greetz
MrVainSCL! aka Thorsten
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fweil.

...,

Or maybe you will test with cursors installed on your PC :

SetClassLong_(WindowID(),#GCL_HCURSOR,LoadCursorFromFile_(OpenFileRequester("Select a cursor", "C:\Winnt\Cursors\*.cur", "Cursors | *.cur | All files | *.*", 0)))

(or change C:\Winnt with whatever you have ...)

Rgrds

Francois Weil
14, rue Douer
F64100 Bayonne
Post Reply