hi,
ACTION and ONCLICK seems the same with LABEL
when DblClick on LABEL the VALUE is going into Clipboard
how to use LABEL ACTION as DblClick
LABEL ACTION / ONCLICK and DblClick
Moderator: Rathinagiri
- 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
have fun
Jimmy
Jimmy
- 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
found this in c:\hmg.3.4.4\SOURCE\h_windows.prg
but IHMO ACTION should use STN_DBLCLK
STN_DBLCLK notification code
https://docs.microsoft.com/en-us/window ... stn-dblclk
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
STN_DBLCLK notification code
https://docs.microsoft.com/en-us/window ... stn-dblclk
have fun
Jimmy
Jimmy
Re: LABEL ACTION / ONCLICK and DblClick
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
Convert Dream into Reality through HMG
- 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
hi,
OK, i have change it in "my" LIB
Question : does ACTION and ONCLICK have same _HMG_SYSDATA[ 6 ]
OK, i have change it in "my" LIB
Question : does ACTION and ONCLICK have same _HMG_SYSDATA[ 6 ]
have fun
Jimmy
Jimmy