LABEL ACTION / ONCLICK and DblClick

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

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

LABEL ACTION / ONCLICK and DblClick

Post by AUGE_OHR »

hi,

ACTION and ONCLICK seems the same with LABEL :?:
when DblClick on LABEL the VALUE is going into Clipboard :o

how to use LABEL ACTION as DblClick :idea:
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: LABEL ACTION / ONCLICK and DblClick

Post by AUGE_OHR »

found this in c:\hmg.3.4.4\SOURCE\h_windows.prg

Code: Select all

//  Label / HyperLink / Image Click .....................
IF HiWord( wParam ) == STN_CLICKED .AND. ( _HMG_SYSDATA[ 1 ] [ i ] = "LABEL" .OR. _HMG_SYSDATA[ 1 ] [ i ] = "IMAGE" )
   _DoControlEventProcedure( _HMG_SYSDATA[ 6 ] [ i ], i )
   RETURN 0
ENDIF
but IHMO ACTION should use STN_DBLCLK

STN_DBLCLK notification code
https://docs.microsoft.com/en-us/window ... stn-dblclk
have fun
Jimmy
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: LABEL ACTION / ONCLICK and DblClick

Post by bpd2000 »

Refer source row 1872 of C:\MiniGUI\SOURCE\h_events.prg

Code: Select all

// Label and Image Double Click ...................

         IF HiWord ( wParam ) == STN_DBLCLK .AND. _HMG_aControlType [i] $ "LABEL,IMAGE"
            _DoControlEventProcedure ( _HMG_aControlHeadClick [i] , i )
            RETURN 0
         ENDIF
BPD
Convert Dream into Reality through HMG
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: LABEL ACTION / ONCLICK and DblClick

Post by AUGE_OHR »

hi,

OK, i have change it in "my" LIB

Question : does ACTION and ONCLICK have same _HMG_SYSDATA[ 6 ] :?:
have fun
Jimmy
Post Reply