Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  General Topics    About alpws (AlwaysVisible)

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
Hi my friends,

I can apply different opacity value to particular objects by applying the code like below:
<OnClick Action="MTSSetProperty" Target="Instance.somename:Red Facepac" Value="0.5"/>

My Question is:
How to pass value to "AlwaysVisible" whose prop is "alws".
I created different widgets for different objects by using layerData . e.g.
<MTSInstance Name="layer_g" >
<LayerData Text="green" Font="Arial" TextSize="18" TextColor="0 0 0" WidgetLine="1" Radius="100" AlwaysVisible="0"/>
</MTSInstance>

Please notice that I used AlwaysVisible="0" to hide it first.

Now I want to make it appear by using OnClick event.
How to write the code?

I tried codes like this:
<OnClick Action="MTSSetProperty" Target="Instance.layer_g::alws" Value="1"/>

But it doesn,t workFrown

Any advice are appreciated Smile Thanks
 
Posts: 181 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
EnIgMaTiCScOrPioN
Member
Picture of e_phoenix13
Posted Hide Post
Use the code as below...

<MTSInstance Name="layer_g_PARENT" Collapsed="0" >
    <LayerData Name= "myLayer" Text="green" Font="Arial" TextSize="18" TextColor="0 0 0" WidgetLine="1" Radius="100" AlwaysVisible="1"/>
</MTSInstance>

To Hide...
<OnClick Action="MTSSetProperty" Target="MTSInstance.layer_g_PARENT::clps" Value="1"/>

To Show...
<OnClick Action="MTSSetProperty" Target="MTSInstance.layer_g_PARENT::clps" Value="0"/>


To access layerdata properties, use the following syntax...
Layerdata.myLayer::someProperty


Hope this helps.

Cheers,
Anup
 
Posts: 557 | Location: India | Registered: February 12, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Hi e_phoenix13,

Thank you for your help. I can understand your code. By using that codes, I can collapse the widget by clicking the object. But the widget will appear again if the mouse touch the object.

How to hide it until next click action.
---------------------------------------
BTW, Can you have a look atmy last post:
http://viewpoint.infopop.cc/eve/forums/a/tpc/f/6432928096/m/9831097123

Have you ever been met this kind of problems?
I sent email to viewpoint, but no feedback.
---------------------------------------------

Thank you, my friend
 
Posts: 181 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  General Topics    About alpws (AlwaysVisible)