-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3637667
By: rob_chou
I have a window embedded multiple times (via createComponents) inside an outer window.
In the embedded window(s), I'd like to call functions defined in the outer window.
Any clues?
thanks,
rob
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3682693
By: henrichen
We are implementing a macro mechanism that would allow developers to "macro define" a component in a zuml page and use it later as a simple component. I guess that would fit your needs.
Another way is to construct your toolbar buttons in a java methods and you can call that method to attach the toolbar buttons into your each Window.
/henri
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3682614
By: nobody
Hi,
I have the same toolbar button in several Window. Is it possible to put this toolbar Button in a function and call this function?
HOw can I do this?
Regards,
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3638712
By: tomyeh
Then, you have to post more codes to illustrate the issue.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3638604
By: nobody
I didn't subclass window yet, just defined a function using bsh so the "Path...test()" failed with no function defined. I'm just prototyping (really the attractive part of zk) before refactoring code to classes...
thanks,
rob
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3637722
By: tomyeh
No, it is not recommended to get the interpreter (ZK might change the interpreter in the future).
Rather, you might use Page.interpret().
To invoke a method of window (in zscript), you simply call it directly:
Path.getComponent("/windowName").test();
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3637705
By: rob_chou
sort of working using the following, but is there a way to get an instance of "bsh.Interpreter"?
Window outerWindow = target.getPage().getFellow( "windowName" );
ns = outerWindow.getNameSpace();
interp = new bsh.Interpreter();
ns.invokeMethod( "test", null, interp );
Asked: 2006-03-19 06:16:58 +0800
Seen: 322 times
Last updated: Apr 12 '06