MYBUTTON with CALLBACK

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

MYBUTTON with CALLBACK

Post by AUGE_OHR »

hi,

i try to find out how create MYBUTTON based on last Version and Thread
https://www.hmgforum.com/viewtopic.php? ... 32&p=50733
viewtopic.php?p=47855

i have add CALLBACK and TRACKMOUSEEVENT Structure to get Hover Color.
i also add simple Gradient and all seems to work fine with HMG Command like GetControlHandle()
OwnButton01.jpg
OwnButton01.jpg (18.43 KiB) Viewed 8156 times
but "sometimes" not active Button also change Color when "hover" ... or "hover" Color still visible when change Focus
so what i´m doing wrong :?: please help :idea:

include hole Project Source ( have split C-Code into HB_FUNC.PRG and add some Property in i_UsrInit.ch )
MYBUTT4.ZIP
(9.59 KiB) Downloaded 134 times
! Note : Syntax yet is NOT compatible to normal BUTTON while i have not "fill" all Property now like PICTURE
have fun
Jimmy
Post Reply