Page 1 of 1
Posted: Fri Jul 12, 2002 10:03 pm
by BackupUser
Restored from previous forum. Originally posted by PB.
When I use this to specify a custom mouse pointer for something...
Code: Select all
Gadget_hWnd=OptionGadget(1,x,y,w,h,"text")
SetClassLong_(Gadget_hWnd,#GCL_HCURSOR,LoadCursorFromFile_("C:\Icon.ico"))
...it works for the actual gadget in question, but also affects other gadgets.
For example, I've successfully used the above on an OptionGadget, but the same
icon appears on some other gadgets also, when it shouldn't...
Am I doing something wrong, or is this a bug?
PB - Registered PureBasic Coder
Edited by - PB on 12 July 2002 23:20:02
Posted: Sat Jul 13, 2002 4:18 am
by BackupUser
Restored from previous forum. Originally posted by Danilo.
This happens when the other gadgets use the same class.
Its normal, not a bug.
You set the Cursor for the complete class, not only
for this (child-)window.
Make 3 PanelGadgets and use SetWinBackgrounColor()
for 1 Panel. The color is changed for all Panels.
cya,
...Danilo
(registered PureBasic user)
Posted: Sat Jul 13, 2002 10:58 am
by BackupUser
Restored from previous forum. Originally posted by PB.
> You set the Cursor for the complete class, not only for this (child-)window.
Ah, I see. So does anyone know how to change the icon of a single gadget, and
not the entire class?
PB - Registered PureBasic Coder
Edited by - PB on 13 July 2002 11:59:23
Posted: Sat Jul 13, 2002 1:34 pm
by BackupUser
Restored from previous forum. Originally posted by fweil.
...,
I am also looking for a solution to change cursor for all the desktop at the opposite and could not find the right way.
I will continue to search but thnx for any help on both specific cursor linked to a given gadget and for a global cursor change.
...
Francois Weil
14, rue Douer
F64100 Bayonne
Posted: Sat Jul 13, 2002 11:13 pm
by BackupUser
Restored from previous forum. Originally posted by Danilo.
@
PB:
> So does anyone know how to change the icon of a
> single gadget, and not the entire class?
I wrote this example for you:
Code: Select all
[url]http://forums.purebasic.com/english/viewtopic.php?t=1672[/url]
Hope this helps..
cya,
...Danilo
(registered PureBasic user)
Posted: Sun Jul 14, 2002 8:11 am
by BackupUser
Restored from previous forum. Originally posted by fweil.
Many thanks ... it helps to understand and use it better !
Francois Weil
14, rue Douer
F64100 Bayonne