www.skylinesoft.com Homepage
Forum Home Forum Home > SkylineGlobe Enterprise Products > TerraExplorer Pro for Developers
  New Posts New Posts RSS Feed: How to display DateTimeSlider through APIs?
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

How to display DateTimeSlider through APIs?

 Post Reply Post Reply
Author
Message
azam View Drop Down
Visitor
Visitor
Avatar

Joined: September 21 2008
Location: Dubai
Online Status: Offline
Posts: 20
Post Options Post Options   Quote azam Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
azam View Drop Down
Visitor
Visitor
Avatar

Joined: September 21 2008
Location: Dubai
Online Status: Offline
Posts: 20
Post Options Post Options   Quote azam Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.078 seconds.