Lookup Table

Use this forum to post Vensim related questions.
Post Reply
maxin454
Member
Posts: 35
Joined: Tue Jul 13, 2010 3:17 am

Lookup Table

Post by maxin454 »

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
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Lookup Table

Post by Administrator »

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
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
maxin454
Member
Posts: 35
Joined: Tue Jul 13, 2010 3:17 am

Re: Lookup Table

Post by maxin454 »

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
maxin454
Member
Posts: 35
Joined: Tue Jul 13, 2010 3:17 am

Re: Lookup Table

Post by maxin454 »

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
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Lookup Table

Post by Administrator »

Can you email the vpa to me for testing?

vensim@vensim.com
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
maxin454
Member
Posts: 35
Joined: Tue Jul 13, 2010 3:17 am

Re: Lookup Table

Post by maxin454 »

Dear Administrator,

Thanks again. I've sent an email to you.

maxin
Post Reply