Jump to: navigation, search

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


m (Text replacement - "{{UBIKCLIENT}}" to "{{UBIK Client}}")
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
An Icon can be added to a [[MetaClass]] to offer easier understanding in [[UBIK_Studio_Basics|Ubik Studio]] as well as on the [[UBIK_Client_Basics|Ubik Client]].
+
An icon can be assigned to a [[MetaClass]] so that objects of these class are represented by a small graphical symbol in {{UBIK Studio}} as well as on the {{UBIK Client}}.
  
# Navigate to the [[MetaClass]] DISPLAYDATACUSTOMCLASS in the ''[[Class Browser]]''<br/>[[File:UI_DisplaydataCustomMetaClass_01.PNG|330 px|border|alt=DisplaydataCustomClass|DisplaydataCustomClass]]
+
# Navigate to the MetaClass [[DISPLAYDATAMETACLASS|DISPLAYDATACUSTOMCLASS]] in the ''[[Class Browser]]''<br/>[[File:UI_DisplaydataCustomMetaClass_01.PNG|330 px|border|alt=DisplaydataCustomClass|DisplaydataCustomClass]]
# Create a new instance using the ''[[Bulk Editor]]''<br/>[[File:UI_DisplaydataCustomMetaClass_02.PNG|880px|border|alt=DisplaydataCustomClass|DisplaydataCustomClass]]
+
# Create a new instance of DISPLAYDATACUSTOMCLASS using the ''[[Bulk Editor]]''<br/>[[File:UI_DisplaydataCustomMetaClass_02.PNG|880px|border|alt=DisplaydataCustomClass|DisplaydataCustomClass]]
# It is required to assign an icon of the DisplaydataCustomClass attribute either by
+
# Select an icon file by double-clicking the '''ICON''' attribute, which opens a dialog to select the desired file
#* selecting the desired icon from the dialog appearing after double-clicking the cell
+
# It is recommended to set at least name and description.
# It is recommended to set at least name and description
+
# Save the changes for the instance of DISPLAYDATACUSTOMCLASS with {{key press|Ctrl|S}} or the save command
# Save the changes with {{key press|Ctrl|S}} or the save command
+
 
The object needs to be added to the DispalyData of the according MetaClass:
+
The newly created [[DISPLAYDATACUSTOMCLASS|Display Data Object]] needs to be related to the '''DisplayData''' property of the according MetaClass:
:*The DisplayData object can be added directly via dragging and dropping to the MetaClass using the [[Object Explorer#Drag & Drop|Object Explorer]].<br/>[[File:UI_DisplaydataCustomMetaClass_03.PNG|440 px|border|alt=DisplaydataCustomClass|DisplaydataCustomClass]]
+
# 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]]
  
 
[[Category:How-To]]
 
[[Category:How-To]]
[[Category:UBIK Studio]]
 

Latest revision as of 18:34, 11 May 2015

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

  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
  2. Drag and drop the created custom DisplayData instance onto the DisplayData property
    DisplaydataCustomClass