Class vdFramedControl
- Namespace
- vdControls
- Assembly
- vdFramedControl.dll
Provides a comprehensive UI framework for vector drawing applications with integrated property grid, command-line interface, menu, status bar, and layout management capabilities.
public sealed class vdFramedControl : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
- Inheritance
-
vdFramedControl
- Implements
- Inherited Members
Remarks
The vdFramedControl serves as the primary container control for VectorDraw applications, integrating:
- Scrollable base control for drawing operations vdScrollableControl"/>
- A property grid for object property inspection and modification
- A command-line interface for executing drawing commands vdCommandLine"/>
- A menu system loaded from external resources
- Status bar with mode indicators (Grid, Snap, Ortho, Osnap, Paper/Model)
- Coordinate display with cartesian/polar switching
- Progress tracking for long-running operations
Constructors
- vdFramedControl()
Main constructor of the vdFramedControl.
Properties
- BackColor
Get/Set the BackColor of the control's form.
- BackgroundImage
Get/Set the BackGroundImage of the control's form.
- BackgroundImageLayout
Specifies the position of the image of the control's form.
- BaseControl
Get the VectorDrawBaseControl control of the vdFramedControl.This is the main method the gain access to the rest properties and methods of the control like ActiveDocument.
- CommandLine
Get the vdCommandLine control of the vdFramedControl.
- DisplayPolarCoord
Get/Set a boolean value representing the visibility of the polar tracking coordinates.
- Font
Get/Set the Font used in the control's form.
- ForeColor
Get/Set the forecolor of the control's form.
- HistoryLines
Get/Set the number of history lines and resumes the layout of control.
- LoadCommandstxt
Get/Set a boolean value to control whether the Commands.txt file will be loaded.
- LoadMenutxt
Get/Set a boolean value to control whether the Menu.txt file will be loaded.
- PropertyGridWidth
Get/Set the width of PropertyGrid and resumes the layout of control.
- ScrollableControl
Get the vdScrollableControl control of the vdFramedControl.
- vdGrid
Get the vdPropertyGrid control of the vdFramedControl.
Methods
- Dispose(bool)
Clean up any resources being used.
- GetLayoutStyle(LayoutStyle)
Get the visibility of a specified control of the vdFramedControl.
- GetStatusBarOption(StatusBarOptions)
Get the visibility of the specified status bar button.
- LoadCommands()
Load the commands located at the Resources directory.This directory can be set either using the SetResourcesDirectory method of vdSerialize or it is the directory where the VectorDraw assemblies are.
- LoadCommands(StreamReader)
Load all commands from an existing System.IO.StreamReader stream.
- LoadCommands(string, string)
Loads the commands from the specified direcctory and filename.
- LoadMainMenu()
Loads the main menu located at the Resources Directory.This directory can be set either using the SetResourcesDirectory method of vdSerialize or it is the directory where the VectorDraw assemblies are.
- LoadMenu(StreamReader, string, bool, bool)
Loads the specified menu to the control.
- LoadMenu(string, string, bool, bool)
Loads the specified menu to the control.
- OnChangeCoord(short, double, double, double, ref string)
Represents the method that will handle the ChangeCoord event.
- OnGotFocus(EventArgs)
Raises the System.Windows.Forms.Control.GotFocus event.
- OnLoad(EventArgs)
Fires when the control is loaded.
- ProcessCmdKey(ref Message, Keys)
Internally used to process Key input.
- ReloadCommands()
Called in order to reload the commands in case the selected reources files changed
- ReloadMainMenu()
Called in order to reload the menu in case the selected reources files changed
- SetLayoutStyle(LayoutStyle, bool)
Controls the visibility of the various controls of the vdFramedControl.
- SetStatusBarOption(StatusBarOptions, bool)
Set the visibility of the specified button of the status bar.
- ShowMenu(bool)
Controls the visibility of the control's menu.
- UnLoadCommands()
Unloads the commands that are used in the commandline.
- UnLoadMenu()
Unloads and clears the menu of the control.
- UpdateStatusBarButtonsText()
Updates the status bar button's text depending the control's values for Grid,Snap,Ortho and Osnap mode.
Events
- ChangeCoord
Fires just before a message appear on status bar coordinate pane in order to change this message if necessary.