Jump to: navigation, search

Difference between revisions of "HowTo:Assign an Icon to a MetaClass"


m (Text replacement - "{{OE}}" to "{{Object Editor}} ")
Line 8: Line 8:
  
 
The newly created [[DISPLAYDATACUSTOMCLASS|Display Data Object]] needs to be related to the '''DisplayData''' property of the according MetaClass:
 
The newly created [[DISPLAYDATACUSTOMCLASS|Display Data Object]] needs to be related to the '''DisplayData''' property of the according MetaClass:
# Connect the MetaClass to the {{OE}} control
+
# Connect the MetaClass to the {{Object Editor}}
 +
control
 
# [[Object_Explorer#Drag_.26_Drop|Drag and drop]] the created custom DisplayData instance onto the DisplayData property<br/>[[File:UI_DisplaydataCustomMetaClass_03.PNG|440 px|border|alt=DisplaydataCustomClass|DisplaydataCustomClass]]
 
# [[Object_Explorer#Drag_.26_Drop|Drag and drop]] the created custom DisplayData instance onto the DisplayData property<br/>[[File:UI_DisplaydataCustomMetaClass_03.PNG|440 px|border|alt=DisplaydataCustomClass|DisplaydataCustomClass]]
  
 
[[Category:How-To]]
 
[[Category:How-To]]

Revision as of 12:53, 20 March 2015

An icon can be assigned to a MetaClass so that objects of these class are represented by a small graphical symbol in UBIKSTUDIO as well as on the UBIKCLIENT.

  1. Navigate to the MetaClass DISPLAYDATACUSTOMCLASS in the Class Browser
    DisplaydataCustomClass
  2. Create a new instance of DISPLAYDATACUSTOMCLASS using the Bulk Editor
    DisplaydataCustomClass
  3. Select an icon file by double-clicking the ICON attribute, which opens a dialog to select the desired file
  4. It is recommended to set at least name and description.
  5. Save the changes for the instance of DISPLAYDATACUSTOMCLASS with Ctrl+S or the save command

The newly created Display Data Object needs to be related to the DisplayData property of the according MetaClass:

  1. Connect the MetaClass to the Object Editor
control
  1. Drag and drop the created custom DisplayData instance onto the DisplayData property
    DisplaydataCustomClass