QMedical Command Reference
![]() |
![]() |
QMed_SetAreaStyle(areaRef; displayFormat; frameStyle; focusRing):error | |||
![]() |
areaRef | Longint | QMedical area reference |
![]() |
displayFormat | Longint | Display format |
![]() |
frameStyle | Longint | Frame style |
![]() |
focusRing | Longint | Focus ring style |
![]() |
error | Longint | Error result |
Configures the visual appearance of a QMedical plug-in area.
The QMedical plug-in area is specified by areaRef. If areaRef is not a valid QMedical plug-in area reference, qmed_paramErr is returned.
Parameter displayFormat specifies how the plug-in area displays its content. Set displayFormat to qmed_PictScrolling to configure the area as scrollable, or use any other constant to emulate 4D's picture display formats:
qmed_PictScrolling | 0 | Picture has scrollbars |
qmed_PictTruncCentered | 1 | Picture is truncated to the area rectangle size and centered in it |
qmed_PictScaledToFit | 2 | Picture is scaled up or down separately across each dimension to fit the current area rectangle |
qmed_PictTruncNonCenter | 4 | Picture is truncated to the area rectangle size and placed top left |
qmed_PictScaledToFitProp | 5 | Picture is scaled down proportionally to fit the current area rectangle and placed top left |
qmed_PictScaledToFitPropCenter | 6 | Picture is scaled down proportionally to fit the current area rectangle and centered |
Parameter frameStyle specifies the area frame style. Use one of the following constants:
qmed_PlainFrame | 0 | Puts a black one-pixel frame around the area |
qmed_SunkenFrame | 1 | Puts a sunken-style frame around the area |
qmed_NoneFrame | 3 | No frame |
Parameter focusRing specifies the style of the area focus ring. Use one of the following constants:
qmed_NoFocus | 0 | No focus indication |
qmed_SmokedFocus | 1 | Cool, smoke-style focus indication |
Example
`Set the plugin area to scrollable, shunken, no focus C_LONGINT($error) C_LONGINT($displayFormat;$frameStyle;$focusStyle) $displayFormat:=qmed_PictScrolling $frameStyle:=qmed_SunkenFrame $focusStyle:=qmed_NoFocus $error:=QMed_SetAreaStyle (gAreaRef;$displayFormat;$frameStyle;$focusStyle) |
Related commands
QMed_GetAreaStyle | Returns the visual appearance configuration of a QMedical plug-in area |