VENAPP: TEXTMENU

Use this forum to post Vensim related questions.
Post Reply
apix
Senior Member
Posts: 64
Joined: Wed Mar 16, 2011 3:31 pm

VENAPP: TEXTMENU

Post by apix »

HI!

Daily question about venapp:
when I click on a textmenu, its region becomes black ("highlighted") and doesn't desappear if I change slide and then go back to the one where I clicked the textmenu.
(Actually, when I click on the textmeu, the highlighted region is bigger than the textmenu itself. Only if I chenge slide and go back, the black region corresponds to the actual size of the textmenu.)

It's not so nice to see.

What can I do to prevent it?

Many thanks.
Administrator
Super Administrator
Posts: 4620
Joined: Wed Mar 05, 2003 3:10 am

Re: VENAPP: TEXTMENU

Post by Administrator »

Can you upload the venapp so we can take a look?
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
apix
Senior Member
Posts: 64
Joined: Wed Mar 16, 2011 3:31 pm

Re: VENAPP: TEXTMENU

Post by apix »

Happy new year!!

The problem with the textmenus depends on its size.
If I specify the width and height, I get a bad visualization (when I change slide and then go back).
Where the textmenu is a text with 0x0 size, the interface works well.

I use textmenu as transparent button over a bitmap.

For example:

Code: Select all

TEXTMENU," ",65,12,8,4,,,"",SCHEMA1
The size 8x4 corresponds to the size of the bitmap area I want to make clickable.

Is there another way to have transparent buttons?
Administrator
Super Administrator
Posts: 4620
Joined: Wed Mar 05, 2003 3:10 am

Re: VENAPP: TEXTMENU

Post by Administrator »

Can you upload/email what you have so I can take a look?
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
apix
Senior Member
Posts: 64
Joined: Wed Mar 16, 2011 3:31 pm

Re: VENAPP: TEXTMENU

Post by apix »

I modified the vcd file from the MAINT1 example in order to have a clean template.

There are two linked views.

On the first one two links are available:
- the original textmenu (on the left) that shift to the second view
- a textonly (on the right) that covers a transparent textmenu (with fixed dimensions), to represent the "map image" I have in my interface.

On the second view there is just the textmenu that shift back to the first view.

If you click on the original textmenu on the left of the first view, everything works fine:
you are moved to the second view and clicking on the "back" textmenu, you can see that the first clicked texmenu is highlighted as expected.

Now try clicking the second link on the right (textonly + transparent textmenu region), holding the mouse button:
the highlighted region is bigger than the real textmenu region.
You are correctly shifted to the second view. When you go back to the first view, the actual region of the transparent textmenu keeps being highlighted.
Next, move to the other textmenu by pressing the arrow keys: another region of the view, not related to any textmenus, gets highlighted.
Attachments
MAINT1.zip
(428 Bytes) Downloaded 207 times
Administrator
Super Administrator
Posts: 4620
Joined: Wed Mar 05, 2003 3:10 am

Re: VENAPP: TEXTMENU

Post by Administrator »

I'll raise this as a bug. There is no workaround at the moment.
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
apix
Senior Member
Posts: 64
Joined: Wed Mar 16, 2011 3:31 pm

Re: VENAPP: TEXTMENU

Post by apix »

Ok :-( thanks!
Post Reply