hi,
can someone point me how to get a Menu for a GRID ?
i do not mean the Menu under Titlebar.
when have a TEXTBOX right-click show Menu with copy/paste. this Type of Menu
Context Menu (right-click-Menu) for Control
Moderator: Rathinagiri
- AUGE_OHR
- Posts: 2093
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Context Menu (right-click-Menu) for Control
have fun
Jimmy
Jimmy
Re: Context Menu (right-click-Menu) for Control
Code: Select all
DEFINE CONTROL CONTEXT MENU <ControlName> [ OF <ParentWindowName> ]
MENUITEM <cItemCaption>
ACTION <ActionProvedureName> | <bBlock>
[ NAME <MenuItemName>]
[ IMAGE <cImageName> ]
[ CHECKED ]
[ NOTRANSPARENT ]
[ TOOLTIP <cToolTipText> ]
...
...
[ SEPARATOR ]
...
...
END MENU
Andrés González López
Desde Guadalajara, Jalisco. México.
Desde Guadalajara, Jalisco. México.
- AUGE_OHR
- Posts: 2093
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: Context Menu (right-click-Menu) for Control
hi,
thx for Answer.
but again i seems to have a Problem with Macro
so how is the right Syntax 
thx for Answer.
but again i seems to have a Problem with Macro
Code: Select all
Public fMain:="frmMain"
DEFINE WINDOW &fMain ;
...
DEFINE GRID Grid_1
...
END GRID
// how it the right Syntax for GRID as Parent ?
DEFINE CONTROL CONTEXT MENU PopGrid OF frmMain.Grid_1
DEFINE CONTROL CONTEXT MENU PopGrid OF fMain.Grid_1

have fun
Jimmy
Jimmy
- danielmaximiliano
- Posts: 2625
- Joined: Fri Apr 09, 2010 4:53 pm
- Location: Argentina
- Contact:
Re: Context Menu (right-click-Menu) for Control
Try
Code: Select all
DEFINE WINDOW &(fMain)
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Re: Context Menu (right-click-Menu) for Control
see example: http://hmgforum.com/viewtopic.php?p=60081#p60081AUGE_OHR wrote: ↑Sat Nov 23, 2019 6:41 am hi,
thx for Answer.
but again i seems to have a Problem with Macro
so how is the right SyntaxCode: Select all
Public fMain:="frmMain" DEFINE WINDOW &fMain ; ... DEFINE GRID Grid_1 ... END GRID // how it the right Syntax for GRID as Parent ? DEFINE CONTROL CONTEXT MENU PopGrid OF frmMain.Grid_1 DEFINE CONTROL CONTEXT MENU PopGrid OF fMain.Grid_1
![]()
- AUGE_OHR
- Posts: 2093
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany