CONTEXT MENU
Moderator: Rathinagiri
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
CONTEXT MENU
HMG's context menu is predefined for whole window, not for every single element of window.
Moreover we need a ON RIGHT CLICK event for all controls.
Words of my coleagues and I also agree. Would be so usefull for each controls.
Moreover we need a ON RIGHT CLICK event for all controls.
Words of my coleagues and I also agree. Would be so usefull for each controls.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: CONTEXT MENU
Yes. It is a nice idea.
'C' Gurus, please come for help.
'C' Gurus, please come for help.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: CONTEXT MENU
I am also eagerly awaiting such extension
BPD
Convert Dream into Reality through HMG
Convert Dream into Reality through HMG
- danielmaximiliano
- Posts: 2611
- Joined: Fri Apr 09, 2010 4:53 pm
- Location: Argentina
- Contact:
Re: CONTEXT MENU
Hola Pablo Cesár:
Hace tiempo necesitaba este tipo de control para mi aplicacion con "Tab", para ser mas practico era necesario utilizar el boton derecho del mouse y llamar al menu contextual de dicho control, pero no pude.
utilizando TextCrawler mire un poco dentro de las tripas de Minigui y encontre esto.
Como el Ejemplo de MYBUTTON se puede integrar en el formato UCI.
mire aqui : c:\MiniGUI\Include\i_controlmisc.ch y tambien en c:\MiniGUI\Include\i_menu.ch
Hello Pablo Cesár:
Long ago this type of control needed for my application with "Tab" to be more practical was necessary to use the right mouse button and call the context menu of the control, but could not.
using TextCrawler look a little into the guts of MiniGUI and found this.
MyButton Example As can be integrated into the UCI format. : mrgreen:
Look here: c:\MiniGUI\Include\i_controlmisc.ch y tambien en c:\MiniGUI\Include\i_menu.ch
Hace tiempo necesitaba este tipo de control para mi aplicacion con "Tab", para ser mas practico era necesario utilizar el boton derecho del mouse y llamar al menu contextual de dicho control, pero no pude.
utilizando TextCrawler mire un poco dentro de las tripas de Minigui y encontre esto.
Como el Ejemplo de MYBUTTON se puede integrar en el formato UCI.
mire aqui : c:\MiniGUI\Include\i_controlmisc.ch y tambien en c:\MiniGUI\Include\i_menu.ch
Hello Pablo Cesár:
Long ago this type of control needed for my application with "Tab" to be more practical was necessary to use the right mouse button and call the context menu of the control, but could not.
using TextCrawler look a little into the guts of MiniGUI and found this.
MyButton Example As can be integrated into the UCI format. : mrgreen:
Look here: c:\MiniGUI\Include\i_controlmisc.ch y tambien en c:\MiniGUI\Include\i_menu.ch
- Attachments
-
- TextCrawler_2012-11-17_06-41-40.jpg (119.5 KiB) Viewed 6345 times
Last edited by danielmaximiliano on Sat Nov 17, 2012 9:23 pm, edited 1 time in total.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. 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
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Re: CONTEXT MENU
Yeah, I will try on monday. Thank you Daniel !!Como el Ejemplo de MYBUTTON se puede integrar en el formato UCI.
MyButton Example As can be integrated into the UCI format.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
CONTEXT MENU
Now with new implements of ContextMenu options: IsContextMenuDefined and ReleaseContextMenu we can manage diferent ContextMenu. But the problem I did not found the way to run properly with other components. It is working for Button and Form. Please note:
Source code:I have tested with other components and its returns a error (see image below):
Last edited by Pablo César on Thu Apr 11, 2013 11:29 pm, edited 2 times in total.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- srvet_claudio
- Posts: 2193
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: CONTEXT MENU
Hi Pablo.Pablo César wrote:Now with new implements of ContextMenu options: IsContextMenuDefined and ReleaseContextMenu we can manage diferent ContextMenu. But the problem I did not found the way to run properly with other components. It is working for Button and Form. Please note:
I have tested with other components and its returns a error:
Maybe lack the menu patch viewtopic.php?p=25991#p25991
Best regards,
Claudio.
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
CONTEXT MENU
You are right Dr. Soto ! Thank you for your reply and support. I was thinking no patch was necessary in 3.1.2 version. But this patch is mandatory. Is it necessary another patch to be applied (upto now) after release of 3.1.2, Mr. Claudio ? (just for me to know and make reminder to Mr. Rathinagiri for next releases).srvet_claudio wrote:Maybe lack the menu patch viewtopic.php?p=25991#p25991
My report about this test was quite successfull in most of all components except which one (see in red color) there is not ONGOTFOCUS and ONLOSTFOCUS as events. So please note components list below which are working properly:
[tr][td]Button[/td][td]Yes[/td][td]Yes[/td][/tr]
[tr][td]Check[/td][td]Yes[/td][td]Yes[/td][/tr]
[tr][td]List[/td][td]Yes[/td][td]Yes[/td][/tr]
[tr][td]Combo[/td][td]Yes[/td][td]Yes[/td][/tr]
[tr][td]CheckBtn[/td][td]Yes[/td][td]Yes[/td][/tr]
[tr][td]Grid[/td][td]Yes[/td][td]Yes[/td][/tr]
[tr][td]Label[/td][td]No[/td][td]Yes[/td][/tr]
[tr][td]Slider[/td][td]No[/td][td]Yes[/td][/tr]
[tr][td]Image[/td][td]No[/td][td]Yes[/td][/tr]
[tr][td]RadioGroup[/td][td]No[/td][td]Yes[/td][/tr]
[tr][td]Tab[/td][td]No[/td][td]Yes[/td][/tr]
[tr][td]ProgressBar[/td][td]No[/td][td]Yes[/td][/tr]
[tr][td]ToolBar[/td][td]No[/td][td]Yes[/td][/tr]
[tr][td]StatusBar[/td][td]No[/td][td]Yes[/td][/tr]
[tr][td]Spinner[/td][td]No[/td][td]Yes[/td][/tr][/table]
Please also note source code for this test: TextBox, Spinner and EditBox, MenuContext are not the same which are declared. It is Windows default options.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Re: CONTEXT MENU
Fine solution for small apps. But, It will be hard to do it with huge projects in this way.
Thanks for sharing!
Marek
Thanks for sharing!
Marek
- srvet_claudio
- Posts: 2193
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: CONTEXT MENU
Hi guys,
I implemented:
Best Regards,
Claudio.
I implemented:
Code: Select all
- DEFINE CONTROL CONTEXT MENU <cControlName> [ OF | PARENT <cParentName> ]
- DEFINE CONTROL CONTEXTMENU <cControlName> [ OF | PARENT <cParentName> ]
- RELEASE CONTROL CONTEXT MENU <cControlName> OF | PARENT <cParentName>
- RELEASE CONTROL CONTEXTMENU <cControlName> OF | PARENT<cParentName>
- ReleaseControlContextMenu ( cControl, cParentForm )
- IsControlContextMenuDefined ( cControl, cParentForm ) --> Return lBoolean
- SET CONTROL CONTEXTMENU [ ON | OFF ]
- SET CONTROL CONTEXT MENU [ ON | OFF ]
Claudio.