activate Toolbar Button with Code ?
Posted: Sun May 24, 2020 4:42 am
hi,
i have a Toolbat Button
is it possible to "activate" Action ReRead() "from other Thread"
p.s. can´t call ReRead() direct from Thread while it "produce dupe in GRID..."
---
i saw some Code like this
those IDT_ or IDM_ are Button from Toolbar.
under Xbase++ i can use
need some help to "translate" Xbase++ Technique to HMG
i have a Toolbat Button
Code: Select all
DEFINE TOOLBAR ToolBar_1 BUTTONSIZE 50, 50 FLAT BORDER
BUTTON MYRELOAD ;
TOOLTIP 'reload Crtl-R' ;
PICTURE "MYRELOAD" ;
ACTION ReRead( nGridFocus )
p.s. can´t call ReRead() direct from Thread while it "produce dupe in GRID..."
---
i saw some Code like this
Code: Select all
SendMessage( nHFrame, 273 /*WM_COMMAND*/, 3026 /*IDT_VIEW_FIT_WIDTH*/, 0 )
OTHERWISE
PostMessage( nHFrame, 273 /*WM_COMMAND*/, 457 /*IDM_ZOOM_CUSTOM*/, 0 )
under Xbase++ i can use
Code: Select all
PostAppEvent(xbeTBAR_ButtonClick, oMYRELOAD, , oToolBar_1 )