Devices > 
Device layouts
 
 
 

FBDeviceLayout manages the device UI.

It can be created and destroyed several times during the lifetime of the device object. For example, once a device is inserted into the I/O panel, switching back and forth from the Statistics tool to your device tool creates and destroys your device layout. This has implications when coding your layout and device classes. A layout may assume that the device object is always present, but it actually has a property (Device) that is the pointer to the device. The reverse is not true. When coding a device layout class, you cannot assume that a layout is present.

In FBDevice::IconFilename you can set a 50x50 pixel TIFF icon for the device button in the I/O panel.