Re: [MSEide-MSEgui-talk] popup menu
On 12/03/2016 09:18 AM, Martin Schreiber wrote: > > There is no code. Simply select the popup-menu component in > objectinspector into tstringgrid.popupmenu property. Please do not use > onpopup event. > So that is where I was going wrong. It usre is simple once you see it in action. -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] popup menu
On 12/03/2016 03:01 PM, Patrick Goupell wrote: > >> > I have a form, a stringgrid comonent with the onpopup event set and a > popupmenu component. > > What I have not been able to figure out is how do I show the popupmenu > in the onpopup eevnt. > > What is the actual pascal coding statement(s) needed. > There is no code. Simply select the popup-menu component in objectinspector into tstringgrid.popupmenu property. Please do not use onpopup event. Martin -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] popup menu
On 12/03/2016 02:18 AM, Martin Schreiber wrote: > > It is similar to use a main-menu in a form. For the main-menu one places > a "tmainmenu" component from component palette 'Gui' on the form, sets > the wanted items and subitems in objectinspector by the property > "menu.submenu..." and selects the main-menu component in the "mainmenu" > property of the form. > In case of a popup-menu use a "tpopupmenu" component and the "popupmenu" > property of the associated widget. > I have a form, a stringgrid comonent with the onpopup event set and a popupmenu component. What I have not been able to figure out is how do I show the popupmenu in the onpopup eevnt. What is the actual pascal coding statement(s) needed. I tried looking at the ide source code but there was just too much there for me to figure it out. Patrick -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] popup menu
On 12/02/2016 11:32 PM, Patrick Goupell wrote: > Is ther a popup menu demo in mseuniverse I cannot find one)? > > Could someone provide a simple right click popup menu example? > It is similar to use a main-menu in a form. For the main-menu one places a "tmainmenu" component from component palette 'Gui' on the form, sets the wanted items and subitems in objectinspector by the property "menu.submenu..." and selects the main-menu component in the "mainmenu" property of the form. In case of a popup-menu use a "tpopupmenu" component and the "popupmenu" property of the associated widget. Martin -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
[MSEide-MSEgui-talk] popup menu
Is ther a popup menu demo in mseuniverse I cannot find one)? Could someone provide a simple right click popup menu example? Thank you. Patrick -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk