![]() |
How to display DateTimeSlider through APIs? |
Post Reply
|
| Author | |
azam
Visitor
Joined: September 21 2008 Location: Dubai Online Status: Offline Posts: 20 |
Post Options
Quote Reply
Topic: How to display DateTimeSlider through APIs?Posted: July 13 2010 at 6:52am |
|
Hi,
I want to display Date Time Slider on TE 3D Window through APIs. We are using TE3DWindow Control in our application. Please suggest how to do this? With SGAPI i know this can be done using globe = new SGWorld(); globe.window.showControls(globe.window.getControls() | sgControlDateTime); // Turn on the time control but i want to do it using COM APis in C# Thanks Azam
Edited by azam - July 13 2010 at 7:40am |
|
![]() |
|
azam
Visitor
Joined: September 21 2008 Location: Dubai Online Status: Offline Posts: 20 |
Post Options
Quote Reply
Posted: July 13 2010 at 11:15am |
|
:) I have found the solution. Here it is for other users
internal void ShowTimeSlider(Boolean show) { if (m_objTE == null || m_objTE.FlyName == "NO_FLY") return; if (show) { Object objParam = m_objTE.GetParam(1000); m_objTE.SetParam(1000, (Int32)objParam | 64); } else { Object objParam = m_objTE.GetParam(1000); // Reset the slider m_objTE.SetParam(1000, (Int32)objParam & ~64); } } Skyline support please let us know is this the correct way to do it? Regards Azam
Edited by azam - July 13 2010 at 11:15am |
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |