Hot-Key for BUTTON of BUTTONBAR ?

Hot-Key for BUTTON of BUTTONBAR ?

Postby Jimmy » Sun Nov 27, 2022 6:19 am

hi,

how can i call "ACTION" of a BUTTON from BUTTONBAR using HotKey :?:

i know bKeyDown but how to "POST" Event to BUTTON as there is no Object, or :idea:
Code: Select all  Expand view  RUN
DEFINE WINDOW oWnd FROM 0, 0 TO 1024, 1280 PIXEL TITLE "DBF " + cFile
   DEFINE BUTTONBAR oBar SIZE 96,48  OF oWnd
      DEFINE BUTTON OF oBar PROMPT "Codepage" ;
                 TOOLTIP "change Codepage" NOBORDER RESOURCE "MYWORLD" ;
                 ACTION ( nRec := RECNO(), ;
                          ChangeCodePage(cPath,cFile,cAlias),;
                          oBrwDBF:Refresh() ,;
                          DBGOTO (nRec) )
    // where to get Hot-Key from BUTTONBAR ?
    oBar:bKeyDown := { | nKey, nFlag |  DoBarKEy(nKey, nFlag) }
oWnd:bKeyDown := { | nKey, nFlag | IF( nKey = VK_ESCAPE,oWnd:End(),nil ) }
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany


Re: Hot-Key for BUTTON of BUTTONBAR ?

Postby Jimmy » Sun Nov 27, 2022 8:36 am

hi,

aha, using Cargo Slot to stare "Name".
thx for Solution
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], Timm Sodtalbers and 74 guests