Search found 11 matches: BCN_HOTITEMCHANGE

Searched query: +BCN_HOTITEMCHANGE

by AZJIO
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 ...
by AZJIO
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 ...
by AZJIO
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 ...
by Denis
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!
by AZJIO
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 ...
by AZJIO
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 ...
by netmaestro
Sun Jul 05, 2009 3:42 pm
Forum: Coding Questions
Topic: Set optional color in highlighted ButtonGadget/ButtonImage
Replies: 4
Views: 809

... Important: Only works with XP skins enabled. Your pic shows the button with skins enabled so this shouldn't limit you:
#BCN_FIRST = -1250
#BCN_HOTITEMCHANGE = #BCN_FIRST+1
#HICF_ENTERING = 17
#HICF_LEAVING = 33

Structure NMBCHOTITEM
hdr.NMHDR
flags.l
EndStructure

Procedure WinProc(hwnd ...
by ABBKlaus
Sun Jan 25, 2009 1:30 am
Forum: Tricks 'n' Tips
Topic: How to Ownerdraw a Button
Replies: 22
Views: 7554

... 1250
#NM_CUSTOMTEXT=#NM_FIRST-24
#NM_FONTCHANGED=#NM_FIRST-23
#NM_GETCUSTOMSPLITRECT=#BCN_FIRST + 3
#NM_TVSTATEIMAGECHANGING=#NM_FIRST - 24
#BCN_HOTITEMCHANGE=#BCN_FIRST+1

#HICF_OTHER =$00000000
#HICF_MOUSE =$00000001
#HICF_ARROWKEYS =$00000002
#HICF_ACCELERATOR =$00000004
#HICF_DUPACCEL =$00000008 ...
by The Mexican
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 ...
by Konne
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 ...