Viewpoint Forums
Viewpoint Forums
General Topics
About alpws (AlwaysVisible)|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Member |
Hi my friends,
I can apply different opacity value to particular objects by applying the code like below: <OnClick Action="MTSSetProperty" Target="Instance.somename: 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 work Any advice are appreciated |
||
|
|
EnIgMaTiCScOrPioN Member |
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 |
|||
|
|
Member |
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 |
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|
Viewpoint Forums
Viewpoint Forums
General Topics
About alpws (AlwaysVisible)
