Hi Mikhil,
I just need to know the control and its methods which are used for showing the status in file ViewerControlMainForm.cs file (viewer control demo).
Thanks,
Shiv
Need to know the control and its method
Moderators: SDS, support, admin
Re: Need to know the control and its method
Hello Shiv,
CADViewerControl uses the .NET StatusBar control to display a status of the drawing (the file name, current zoom value, CAD coordinates of the point which is under a mouse cursor). The status bar control can be accessed through a CADViewerControl.StatusBarPanel property.
Mikhail
CADViewerControl uses the .NET StatusBar control to display a status of the drawing (the file name, current zoom value, CAD coordinates of the point which is under a mouse cursor). The status bar control can be accessed through a CADViewerControl.StatusBarPanel property.
Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
-
- Posts: 32
- Joined: 20 Jun 2019, 16:40
Re: Need to know the control and its method
Thank you for your reply, Mikhail. If possible for you Could you please share the code for the same I want to implement the same thing in my code as well.
Regards,
Shiv
Regards,
Shiv
Re: Need to know the control and its method
Hello Shiv,
Please take a look at the ViewerDemo project, it uses a separate StatusBar control for displaying the status. Just open the C# code file ViewerMainForm.cs in Visual Studio and search for "stBar" using Quick Find option.
Mikhail
Please take a look at the ViewerDemo project, it uses a separate StatusBar control for displaying the status. Just open the C# code file ViewerMainForm.cs in Visual Studio and search for "stBar" using Quick Find option.
Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
-
- Posts: 32
- Joined: 20 Jun 2019, 16:40
Re: Need to know the control and its method
Thank you for quick reply Mikhail,
I could not find anything with text "stBar" in the Viewercontrolmainform.cs file. However, I have found the control with the name "StatusBarPanelVisible", is this the correct control you were telling me about?
Regards,
Shiv
I could not find anything with text "stBar" in the Viewercontrolmainform.cs file. However, I have found the control with the name "StatusBarPanelVisible", is this the correct control you were telling me about?
Regards,
Shiv
Re: Need to know the control and its method
shivajitheboss wrote: ↑17 Jul 2019, 20:29I could not find anything with text "stBar" in the Viewercontrolmainform.cs file.

If you mean the property public bool StatusBarPanelVisible, it determines whether the status bar panel is visible. I talked about the .NET StatusBar control.shivajitheboss wrote: ↑17 Jul 2019, 20:29However, I have found the control with the name "StatusBarPanelVisible", is this the correct control you were telling me about?
Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
-
- Posts: 32
- Joined: 20 Jun 2019, 16:40
Re: Need to know the control and its method
Thank you for your help, Mikhail. I am so sorry I was referring the wrong project.
Regards,
Shiv
Regards,
Shiv