Re: StartMenu Problem
"Ernesto Z Musical" <[email protected]> Fri, 23 Jun 2006 11:47:44 -0500
| Newsgroups | gmane.comp.lang.4gl.fourjs.user |
|---|---|
| Message-ID | <[email protected]> |
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]>: > > 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 > > ------------------------------ > [image: 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] Web > 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