https://www.purebasic.fr/english/viewto ... 41#p574941
https://www.purebasic.fr/english/search ... ITEMCHANGE
Search found 11 matches: BCN_HOTITEMCHANGE
Searched query: +BCN_HOTITEMCHANGE
- Thu Mar 27, 2025 12:21 pm
- Forum: Coding Questions
- Topic: Action when hovering over a ButtonGadget.
- Replies: 4
- Views: 300
- Sun Dec 29, 2024 6:13 pm
- Forum: Tricks 'n' Tips
- Topic: Choose a color
- Replies: 1
- Views: 6401
Choose a color
https://i.imgur.com/MhH4soo.png
EnableExplicit
Structure NMBHOTITEM Extends NMHDR
dwFlags.l
EndStructure
#BCN_HOTITEMCHANGE = -1249
Enumeration
#Window
#WinSetColor
EndEnumeration
Enumeration
#btn
#StatusBar
EndEnumeration
Global hovering, hBtn, hGUI, wwe, eg, hGUI2
Global m.POINT ...
EnableExplicit
Structure NMBHOTITEM Extends NMHDR
dwFlags.l
EndStructure
#BCN_HOTITEMCHANGE = -1249
Enumeration
#Window
#WinSetColor
EndEnumeration
Enumeration
#btn
#StatusBar
EndEnumeration
Global hovering, hBtn, hGUI, wwe, eg, hGUI2
Global m.POINT ...
- Sun Nov 17, 2024 2:53 am
- Forum: Coding Questions
- Topic: Mouse over image
- Replies: 10
- Views: 1455
Re: Mouse over image
Perhaps this other option will suit you:
BCN_HOTITEMCHANGE
EnableExplicit
Define x,y
Define co.POINT
Define hWnd
Define hWndTmp
Define Quit
Structure GdtID
id.i
hdl.i
EndStructure
Global NewList GdtID.GdtID()
Procedure GetGadgetPB(Handle)
ForEach GdtID()
If GdtID()\hdl = Handle ...
BCN_HOTITEMCHANGE
EnableExplicit
Define x,y
Define co.POINT
Define hWnd
Define hWndTmp
Define Quit
Structure GdtID
id.i
hdl.i
EndStructure
Global NewList GdtID.GdtID()
Procedure GetGadgetPB(Handle)
ForEach GdtID()
If GdtID()\hdl = Handle ...
- Fri Feb 24, 2023 6:53 pm
- Forum: Coding Questions
- Topic: Listicongadget column identity
- Replies: 23
- Views: 2859
Re: Listicongadget column identity
... with keystrokes and different types of clicks ( example AutoIt3 )
EnableExplicit
Declare MyWindowCallback(hWin, Msg, wParam, lParam)
#BCN_HOTITEMCHANGE = -1249
Structure NMBHOTITEM Extends NMHDR
dwFlags.l
EndStructure
Structure NMLVSCROLL Extends NMHDR
DX.i
DY.i
EndStructure
Structure ...
EnableExplicit
Declare MyWindowCallback(hWin, Msg, wParam, lParam)
#BCN_HOTITEMCHANGE = -1249
Structure NMBHOTITEM Extends NMHDR
dwFlags.l
EndStructure
Structure NMLVSCROLL Extends NMHDR
DX.i
DY.i
EndStructure
Structure ...
- Tue Aug 09, 2022 5:39 am
- Forum: General Discussion
- Topic: Why no SetGadgetColor for buttons?
- Replies: 21
- Views: 4742
Re: Why no SetGadgetColor for buttons?
Tks AZJIO,
there are many ways to do the job.
I don't use #BCN_HOTITEMCHANGE, it may be more easy using it.
Tks again!
there are many ways to do the job.
I don't use #BCN_HOTITEMCHANGE, it may be more easy using it.
Tks again!
- Sun Feb 20, 2022 11:40 am
- Forum: Coding Questions
- Topic: HyperLinkGadget + icon (?)
- Replies: 4
- Views: 444
Re: HyperLinkGadget + icon (?)
... tried to use the example with #BS_OWNERDRAW, but there is no hover event in it. There is a pressed button event - #ODS_SELECTED.
I tried the #BCN_HOTITEMCHANGE event, but it doesn't work together with #BS_OWNERDRAW. I've tried disabling all button border styles, but that doesn't work. Using GetDC ...
I tried the #BCN_HOTITEMCHANGE event, but it doesn't work together with #BS_OWNERDRAW. I've tried disabling all button border styles, but that doesn't work. Using GetDC ...
- Fri Sep 24, 2021 5:11 pm
- Forum: Coding Questions
- Topic: Button color mouseover issue
- Replies: 15
- Views: 3149
Re: Button color mouseover issue
EnableExplicit
Declare MyWindowCallback(hWin, Msg, wParam, lParam)
#BCN_HOTITEMCHANGE = -1249
#img0 = 0
#img1 = 1
Structure NMBHOTITEM Extends NMHDR
dwFlags.l
EndStructure
Global k = 0, btn1, btn2
OpenWindow(0, 0, 0, 350, 170,"", #PB_Window_SystemMenu|#PB_Window_ScreenCentered|#PB_Window ...
Declare MyWindowCallback(hWin, Msg, wParam, lParam)
#BCN_HOTITEMCHANGE = -1249
#img0 = 0
#img1 = 1
Structure NMBHOTITEM Extends NMHDR
dwFlags.l
EndStructure
Global k = 0, btn1, btn2
OpenWindow(0, 0, 0, 350, 170,"", #PB_Window_SystemMenu|#PB_Window_ScreenCentered|#PB_Window ...
- Sun Jul 05, 2009 3:42 pm
- Forum: Coding Questions
- Topic: Set optional color in highlighted ButtonGadget/ButtonImage
- Replies: 4
- Views: 809
- Sun Jan 25, 2009 1:30 am
- Forum: Tricks 'n' Tips
- Topic: How to Ownerdraw a Button
- Replies: 22
- Views: 7554
- Mon Nov 06, 2006 7:15 am
- Forum: Coding Questions
- Topic: Detecting mouse over button
- Replies: 6
- Views: 1649
Detecting mouse over button
... If event=#PB_Event_Gadget ;If event is from a gadget
Select EventGadget() ; get the gadget number
Case MainWindow\btnClose
[b]If #BCN_HOTITEMCHANGE [/b] ;I am confused here
SetGadgetText(MainWindow\txtMessage,""Mouse over button"")
EndIf
EndSelect
EndIf
Until event=#PB_Event ...
Select EventGadget() ; get the gadget number
Case MainWindow\btnClose
[b]If #BCN_HOTITEMCHANGE [/b] ;I am confused here
SetGadgetText(MainWindow\txtMessage,""Mouse over button"")
EndIf
EndSelect
EndIf
Until event=#PB_Event ...
- Fri Aug 11, 2006 1:38 am
- Forum: Tricks 'n' Tips
- Topic: How to Ownerdraw a Button
- Replies: 22
- Views: 7554
... the code easyer to read.
And I have 2 new problems now ;)
First how can I recognize a Mouseover event? I guess It has something to do with #BCN_HOTITEMCHANGE but It's not declared.
Second. #WS_TABSTOP isn't working, does someone know why? I guess I need #BS_NOTIFY as a Window Parameter but it isn't ...
And I have 2 new problems now ;)
First how can I recognize a Mouseover event? I guess It has something to do with #BCN_HOTITEMCHANGE but It's not declared.
Second. #WS_TABSTOP isn't working, does someone know why? I guess I need #BS_NOTIFY as a Window Parameter but it isn't ...