Re: StartMenu Problem
"Ernesto Z Musical" <[email protected]> Fri, 23 Jun 2006 13:31:15 -0500
| Newsgroups | gmane.comp.lang.4gl.fourjs.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks Paul Sergeant. I already did what you said to me: 1º Delete the StartMenu of the AUI 2º Create the New StartMenu 3º Insert the New StartMenu into the AUI 4º Refresh the AUI I even display the AUI whenever I modify the StartMenu, and in effect, the AUI appears modified as I want. But in the interface it continues appearing the old StartMenu, does not change. This is exasperating! 2006/6/23, Paul Sergeant <[email protected]>: > > You need to remove the org. Startmenu from the Domnode first:- > > FUNCTION drop_startmenu(sm) > > DEFINE aui om.DomNode > DEFINE sm om.DomNode > > LET aui = ui.Interface.getRootNode() > CALL aui.removeChild(sm) > > END FUNCTION > > sm is the domNode for the Startmenu. > > Paul > > Ernesto Z Musical wrote: > > > > Thank you very much Uwe! > > > > Thus it is like I I work when I want to load a ToolBar or a TopMenu, > > that simply they replace to the previous one, thus works with the > > Toolbars and the TopMenus. > > > > But my problem is with the STARTMENU, is not so easy to replace the > > active STARTMENU by another one. > > > > I cannot do it: ( > > > > > > > > 2006/6/23, Uwe Holtkamp < [email protected] <mailto:[email protected]>>: > > > > Hi Ernesto, > > > > you could try to manipulate the form. > > > > At first define variables for the pointers for window and form > > DEFINE *this_win* ui.WINDOW > > DEFINE *this_form* ui.FORM; > > > > Open the form to your window as usual > > OPEN FORM f FROM "myform" > > DISPLAY FORM f > > > > Now ask for the handler for both; you get the current window from > > the environment and the current form from the current window: > > LET *this_win* = ui.Window.getCurrent() > > LET *this_form* = this_win.getForm() > > > > Now load you menu and toolbar: > > CALL *this_form*.loadTopMenu("mymenu") > > CALL *this_form*.loadToolBar("mytoolbar") > > > > Later on you load it again into the same form: > > CALL *this_form*.loadTopMenu("second_menu") > > CALL *this_form*.loadToolBar("second_toolbar") > > > > Kind Regards > > Uwe Holtkamp > > > > > ------------------------------------------------------------------------ > > www.adaptris.de <http://www.adaptris.de/> *Adaptris > Deutschland GmbH > > *Fahrenheitstraße 1 > > 28359 Bremen > > > ------------------------------------------------------------------------ > > *Uwe Holtkamp* > > Dipl.-Kfm. (FH) > > Geschäftsführer > > > > Tel > > +49 421/2208 300 > > Mobile > > +49 173/2330 225 > > Fax +49 421/2208 150 > > E-Mail [email protected] <mailto:[email protected]> > > Web www.adaptris.de <http://www.adaptris.de/> > > > > > > > > > > > > Ernesto Z Musical schrieb: > > > >> > >> Good day! > >> > >> My name is Ernesto and I am initiating in Genero, the truth seems > >> that it has many benefits with rtespecto to other languages as far > >> as the business logic, but in which it talks about the interface I > >> have had many problems. One of them is: > >> > >> I have a window container in which position a StarMenu, but later > >> I want to load another different StartMenu, but the new StarMenu > >> is not loaded, it continues being he himself. > >> > >> The code that use is similar as if it loaded a Toolbar but does > >> not work equal > >> > >> CALL ui.interface.loadStartMenu("Menu1") > >> ... > >> ... > >> ... > >> ... > >> CALL ui.interface.loadStartMenu("Menu2") > >> > >> But menu1 continues being active > >> How I make to be able to do it? > >> > >> Thanks… > >> > >> Zorrito Musical > > > > > > > > > > -- > > Zorrito Musical > > > > > > ------------------------------------------------------------------------ > > > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.1.394 / Virus Database: 268.9.2/373 - Release Date: 6/22/2006 > > -- > This email is from PFS Computer Consultancy(Sussex) Limited and it, > together with any attachments, is confidential to the intended > recipient(s) > and the contents may be legally privileged or contain proprietary and > private > information. It is intended solely for the person to whom it is > addressed. If you are not an intended recipient, you may not review, > copy or distribute this email. If received in error, please notify the > sender and delete the message from your system immediately. Any views > or opinions expressed in this email and any files transmitted > with it are those of the author only and may not necessarily reflect > the views of PFS and do not create any legally binding rights or > obligations whatsoever. Unless otherwise pre-agreed by exchange of hard > copy documents signed by duly authorised representatives, contracts may > not be concluded on behalf of PFS by email. Please note that neither > PFS nor the sender accepts any responsibility for any viruses and it > is your responsibility to scan the email and the attachments (if any). > All email received and sent by PFS may be monitored to protect the > business interests of PFS. > -- Zorrito Musical