Interface IPmpUiModelFluent
- Namespace
- Hymma.Solidworks.Addins.Fluent
- Assembly
- Hymma.Solidworks.Addins.Fluent.dll
create a new property manager page UI which hosts a number of controls
public interface IPmpUiModelFluent
Methods
AddCheckableGroup(string)
Add a checkable group to this property manager page
IPmpGroupFluentCheckable AddCheckableGroup(string caption)
Parameters
captionstring
Returns
AddGroup(string)
Add a group that hosts controls in a property manager page
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
IPmpUiModelFluent AddMenuPopUpItem(PopUpMenuItem item)
Parameters
itemPopUpMenuItem
Returns
AddTab(PmpTab)
adds a tab to this property manager page
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
IPmpTabFluent AddTab(string caption, Bitmap icon = null)
Parameters
captionstringcaption 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
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
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
IPmpUiModelFluent OnAfterActivation(EventHandler<EventArgs> action)
Parameters
actionEventHandler<EventArgs>
Returns
OnAfterClose(EventHandler<PmpCloseEventArgs>)
define void() to invoke after the property manager page is closed
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
IPmpUiModelFluent OnClosing(EventHandler<PmpCloseEventArgs> doThis)
Parameters
doThisEventHandler<PmpCloseEventArgs>
Returns
OnKeyStroke(EventHandler<PmpKeyStrokeEventArgs>)
Processes a keystroke that occurred on this PropertyManager page
IPmpUiModelFluent OnKeyStroke(EventHandler<PmpKeyStrokeEventArgs> doThis)
Parameters
doThisEventHandler<PmpKeyStrokeEventArgs>Action that takes two params, first one is the sender which would be the PmpUiModel and second one is the event argument for this keystroke
Returns
Remarks
WithPmpOptions(PmpOptions) should have the HandleKeystrokes for this action to work
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
IAddinModelBuilder SavePropertyManagerPage(out PropertyManagerPageX64 propertyManagerPage)
Parameters
propertyManagerPagePropertyManagerPageX64
Returns
WithCursorStyle(PmpCursorStyles)
Sets the cursor after a selection is made in the SOLIDWORKS graphics area.
IPmpUiModelFluent WithCursorStyle(PmpCursorStyles cursorStyles)
Parameters
cursorStylesPmpCursorStyles
Returns
WithIconInTitle(Bitmap)
The recommended size for bitmaps is a square from 18- to 22-cells wide.
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.
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
IPmpUiModelFluent WithPmpOptions(PmpOptions options)
Parameters
optionsPmpOptions