Class PmpUiModelFluent
- Namespace
- Hymma.Solidworks.Addins.Fluent
- Assembly
- Hymma.Solidworks.Addins.Fluent.dll
controls the general settings/Events of property manger page
public class PmpUiModelFluent : PmpUiModel, IWrapSolidworksObject<IPropertyManagerPage2>, IReleaseSolidworksObject, IPmpUiModelFluent
- Inheritance
-
PmpUiModelFluent
- Implements
-
IWrapSolidworksObject<IPropertyManagerPage2>
- Inherited Members
Constructors
PmpUiModelFluent(ISldWorks, string)
base class for making property manager page UI models and controls
public PmpUiModelFluent(ISldWorks solidworks, string title)
Parameters
solidworksISldWorkstitlestringthe title of the property manager page that appears on top of it in solidWORK
Remarks
the title of the property manger page has to be a unique value for each add-in
Methods
AddCheckableGroup(string)
Add a checkable group to this property manager page
public IPmpGroupFluentCheckable AddCheckableGroup(string caption)
Parameters
captionstring
Returns
AddGroup(string)
Add a group that hosts controls in a property manager page
public IPmpGroupFluent AddGroup(string caption)
Parameters
captionstringcaption of the group as appears in solidworks
Returns
AddMenuPopUpItem(PopUpMenuItem)
Adds a menu item to the pop-up menu for this PropertyManager page. that appears in the right mouse menu button while the property manager page is displayed
public IPmpUiModelFluent AddMenuPopUpItem(PopUpMenuItem item)
Parameters
itemPopUpMenuItem
Returns
AddTab(PmpTab)
adds a tab to this property manager page
public IPmpUiModelFluent AddTab(PmpTab tab)
Parameters
tabPmpTabthe tab to add to this property manager page
Returns
AddTab(string, Bitmap)
add a tab to this property manager page
public IPmpTabFluent AddTab(string caption, Bitmap icon = null)
Parameters
captionstringtext that appears on the tab
iconBitmapThe Bitmap argument allows you to place a bitmap before the text on the tab
Any portions of the bitmap that are RGB(255,255,255) will be transparent, letting the tab background show through. this will be resized to 16x18 pixels
Returns
AddTab<T>()
adds a tab to this property manager page
public IPmpUiModelFluent AddTab<T>() where T : PmpTab, new()
Returns
Type Parameters
T
Remarks
use this method to share a tab between different property manager pages
AddTab<T>(Action<T>)
creates a tab to this property manager page and configures it before adding it
public IPmpUiModelFluent AddTab<T>(Action<T> Config) where T : PmpTab, new()
Parameters
ConfigAction<T>
Returns
Type Parameters
T
Remarks
use this method to share a configured tab between different property manager pages
OnAfterActivation(EventHandler<EventArgs>)
action to take after the property manager page is activated
public IPmpUiModelFluent OnAfterActivation(EventHandler<EventArgs> action)
Parameters
actionEventHandler<EventArgs>
Returns
OnAfterClose(EventHandler<PmpCloseEventArgs>)
define void() to invoke after the property manager page is closed
public IPmpUiModelFluent OnAfterClose(EventHandler<PmpCloseEventArgs> doThis)
Parameters
doThisEventHandler<PmpCloseEventArgs>void to invoke
Returns
OnClosing(EventHandler<PmpCloseEventArgs>)
Action to invoke while the property manger page is closing
public IPmpUiModelFluent OnClosing(EventHandler<PmpCloseEventArgs> doThis)
Parameters
doThisEventHandler<PmpCloseEventArgs>
Returns
SavePropertyManagerPage(out PropertyManagerPageX64)
builds this property manager page and adds it to the AddinUserInterface
use the PropertyManagerPageX64.Show() method in a AddinCommand callback function so users of your addin can actually see the property manger page once they clicked on a button
public IAddinModelBuilder SavePropertyManagerPage(out PropertyManagerPageX64 propertyManagerPage)
Parameters
propertyManagerPagePropertyManagerPageX64
Returns
WithCursorStyle(PmpCursorStyles)
Sets the cursor after a selection is made in the SOLIDWORKS graphics area.
public IPmpUiModelFluent WithCursorStyle(PmpCursorStyles cursorStyles)
Parameters
cursorStylesPmpCursorStyles
Returns
WithIconInTitle(Bitmap)
The recommended size for bitmaps is a square from 18- to 22-cells wide.
public IPmpUiModelFluent WithIconInTitle(Bitmap icon)
Parameters
iconBitmap
Returns
Remarks
The recommended size for bitmaps is a square from 18- to 22-cells wide. However, the bitmap can be any size, as long as it fits on the title bar. The bitmap appears transparent by mapping any white(RGB(255,255,255)) cells to the current PropertyManager page title bar background color.Remember the special use of this color as you design your bitmap.
WithMessage(string, string, swPropertyManagerPageMessageVisibility, swPropertyManagerPageMessageExpanded)
Sets the message in this PropertyManager page.
public IPmpUiModelFluent WithMessage(string caption, string message, swPropertyManagerPageMessageVisibility messageVisibility, swPropertyManagerPageMessageExpanded pageMessageExpanded)
Parameters
captionstringmessagestringmessageVisibilityswPropertyManagerPageMessageVisibilitypageMessageExpandedswPropertyManagerPageMessageExpanded
Returns
WithPmpOptions(PmpOptions)
bitwise option as defined in PmpOptions default has okay, cancel, push-pin buttons and page build is disabled during handlers
public IPmpUiModelFluent WithPmpOptions(PmpOptions options)
Parameters
optionsPmpOptions