Hi. When I invoke a lookup table for the first time after starting a java vensim application, the table appears behind all other windows currently opened. However, after the first time, the table will be opened in the front, which is what I want. Is there a way to set the lookup pop-up windows always on top in the java application? I'm using "SIMULATE>1TABCHG|varname" to invoke the lookup table. Many thanks.
maxin
Lookup Table
-
- Super Administrator
- Posts: 4827
- Joined: Wed Mar 05, 2003 3:10 am
Re: Lookup Table
Have you called the vensim_set_parent_window function? Call this and pass in the window handle to your main app window and it should work fine.
http://vensim.com/documentation/index.html?26240.htm
http://vensim.com/documentation/index.html?26240.htm
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Re: Lookup Table
Hi. Yes, it does not seem to work. The vensim manual mentioned this command does not work in java environment? However I observed an interesting behavior and let me describe it to you. On Windows 7 machine, when open my application (.vpa) for the first time, a .jar (caller) will be extrated. The main screen of my application has several "buttons" for invoking the lookup table. When first lookup table is invoked, the table is behind the main screen. Interestingly, after that, the invoked table will appear correctly, which is in front of the main screen. If you close the application, and reopen the application, even the first lookup table invoked will go to the back. Also, I tested on Windows XP, the lookup tables all appear in front of the main screen with no problem. Any suggestions? Many thanks.
maxin
maxin
Re: Lookup Table
Another observation, if the vensim DSS is installed, the lookup tables all appear in front of the main screen, in both Windows 7 and XP environment.
maxin
maxin
-
- Super Administrator
- Posts: 4827
- Joined: Wed Mar 05, 2003 3:10 am
Re: Lookup Table
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Re: Lookup Table
Dear Administrator,
Thanks again. I've sent an email to you.
maxin
Thanks again. I've sent an email to you.
maxin