---
title: "GraphicClass"
canonical: "https://docs.cuesystem.com/space/CVCHELP/508985366/GraphicClass"
format: markdown
---
> Macro (toc)

---

# GraphicClass  

GraphicClass is a special type of class. It must inherit from a BaseGraphicClass, directly or indirectly. 

#### Syntax 

```visualbasic
[Accessibility] GraphicClass Name Inherits [BaseGraphicClass | ChildOfBaseGraphicClass][WithAttributes {Attribute1[, Attribute2, ..., AttributeN]}]
```

#### Attribute: DisplayName 

|  |  |  |
| --- | --- | --- |
| Value type | Meaning | Example |
| Text | Name displayed in IDE. | DisplayName := "Button"<br>DisplayName := "MessageBox" |

#### Attribute: ObjectCode 

|  |  |  |
| --- | --- | --- |
| Value type | Meaning | Example |
| Text | Code displayed in IDE. | ObjectCode := "OB0007-001" |

#### Attribute: DefaultWidth 

|  |  |  |
| --- | --- | --- |
| Value type | Meaning | Example |
| Long | Default width of an object. | DefaultWidth := 320 |

#### Attribute: DefaultHeight 

|  |  |  |
| --- | --- | --- |
| Value type | Meaning | Example |
| Long | Default height of an object. | DefaultHeight := 240 |

#### Attribute: Info 

|  |  |  |
| --- | --- | --- |
| Value type | Meaning | Example |
| Text | Text which will be visible in a tooltip window for this class. | Info := "Any text " |

#### Example 

```visualbasic
Public GraphicClass MessageBox Inherits BaseGraphicWindow WithAttributes 
{ 
  DisplayName := "MessageBox", 
  ObjectCode := "OB0007-001", 
  DefaultWidth := 320, 
  DefaultHeight := 240 
}
```