It is currently Thu May 23, 2013 8:43 am


All times are UTC - 7 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Disabling mouse events on invisible objects
PostPosted: Tue Apr 29, 2008 4:18 am 

Joined: Fri Jul 20, 2007 7:13 am
Posts: 16
Location: Germany
Hello Tom,

how can I disable an invisible object completely?

There is a button defined, which should be displayed or not displayed in dependent of an incoming signal from simulink.
Although the button is hide, you can click on its area and then the button's function is invoked. I thought, I can disable this functionality in the button control but it doesn't function.
How should I do that?

Thx again.

Merinus


Top
Offline Profile  
 
 Post subject:
PostPosted: Tue Apr 29, 2008 8:24 am 
V.P. of Engineering

Joined: Wed Aug 02, 2006 3:15 pm
Posts: 67
Location: Altia Colorado Springs HQ
Hello Merinus,

To allow disabling of a button completely, put the button in card 0 of a Deck object from the decks.dsn models library. Then, to disable it, change the Deck's card animation to 1 (or any value other than 0). Then the button is not shown and it cannot be pressed.

The Deck object from decks.dsn has a "Deck Current Card" animation that you can link to a signal from Simulink if a signal determines when the button should be available or not available.

If the Simulink signal is 1 to make the button available and 0 to hide it, then put the button in card 1 of the Deck instead of card 0.

The Deck object from decks.dsn has a group in its card 0 through card 9 and the group just contains text instructions for novice users. After entering a card, just delete this group containing the instructions.

_________________
Tom Walton
Altia, Inc.


Top
Offline Profile  
 
 Post subject:
PostPosted: Wed Apr 30, 2008 3:06 am 

Joined: Fri Jul 20, 2007 7:13 am
Posts: 16
Location: Germany
Hello Tom,

I think your suggestion may not help me, because the button I want to show/hide is a tab, which should display/not display a deck :-(

When the incoming signal from simulink is 1, the tab should have the normal view and function (that means pressing on that, should change into the deck refered to this tab). When the signal is 0, this tab should change its view (for example grayed out) and should not be pressable anymore (that means there is no deck changing possible).

I hope, you have a solution for me anyhow (as always) :)

Thank you very much.

Merinus


Top
Offline Profile  
 
 Post subject:
PostPosted: Wed Apr 30, 2008 5:39 am 
V.P. of Engineering

Joined: Wed Aug 02, 2006 3:15 pm
Posts: 67
Location: Altia Colorado Springs HQ
Hello Merinus,

You can still put the contents of the "tab" in its own deck different from the deck it is controlling. So card 1 of the tab's Deck shows the normal view of the tab. This card contains the normal view of the graphics. The stimulus to press on the tab is on one or more of the objects in this card. Then card 0 contains graphics for the disabled look for the tab and no stimulus to press on it.

Do you mean you are using a Tab Bar object for the tabs (from the tabbars.dsn models library)? If so, then it is a matter of "catching" the tabSelected event with a control WHEN block and forcing it to change back to the previously selected option. The full capabilities of the Tab Bar object are described in the Altia Design User's Guide, Chapter 6 - Models Libraries, Section 6.6.11 - Tab Bar Object.

If none of this is making sense, you may want to send an email to support@altia.com to ask for more help if you have support for your Altia Design software.

_________________
Tom Walton
Altia, Inc.


Top
Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net