// Help-Button
// ---------------------
REDEFINE BITMAP oBmp2 ID 101 ADJUST RESOURCE "Help1" ;
CURSOR oCursor OF oDlg
oBMP2:bLClicked := { || MyHelp( flag ) }
// ------- Any Actions or Infos -----------------
STATIC FUNCTION MYHELP(flag)
If flag = 1
MsgAlert( "Help-Info 1","Help")
Endif
If flag = 2
HELP_FUNC1()
Endif
RETURN NIL
TESTSOURCE DIALOG 92, 20, 463, 308
STYLE DS_MODALFRAME | 0x4L | WS_POPUP | WS_VISIBLE | WS_DLGFRAME
FONT 11, "Arial"
{
CONTROL "", 110, "TXBrowse", 0 | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 54, 39, 351, 217
CONTROL "", 100, "TBitmap", 0 | WS_CHILD | WS_VISIBLE, -1, 1, 401, 18
CONTROL "", 103, "TBitmap", 0 | WS_CHILD | WS_VISIBLE, 443, 1, 20, 18
DEFPUSHBUTTON "Exit", 60, 360, 280, 60, 22
DEFPUSHBUTTON "&1. Sample", 10, 38, 280, 60, 22
DEFPUSHBUTTON "&2. Sample", 20, 101, 280, 60, 22
DEFPUSHBUTTON "&3. Sample", 30, 164, 280, 60, 22
DEFPUSHBUTTON "&4. Sample", 40, 227, 280, 60, 22
DEFPUSHBUTTON "&5. Sample", 50, 290, 280, 60, 22
EDITTEXT 120, 150, 260, 200, 12
RTEXT "Change Title on Change", -1, 61, 262, 86, 8
CONTROL "", 102, "TBitmap", 0 | WS_CHILD | WS_VISIBLE, 422, 1, 20, 18
CONTROL "", 101, "TBitmap", 0 | WS_CHILD | WS_VISIBLE, 401, 1, 20, 18
}
METHOD SysCommand( nWParam, nLParam ) CLASS TDialog
if nWParam == SC_CLOSE .and. ::lModal
if GetCapture() != 0
ReleaseCapture()
endif
return .f.
endif
if nWParam == SC_HELP
? "Some block code..." <--- your own source code!
::lHelpIcon = .t.
return .f.
endif
return Super:SysCommand( nWParam, nLParam )
Antonio Linares wrote:Júlio,
A codeblock to be evaluated would be ok for you for such event ?
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 95 guests