Desktop Application Object (PRIM_APPL)

Desktop application component

Ancestors - Application Object (PRIM_APP) Object (PRIM_OBJT)

Details

Desktop application component defining features of Visual LANSA Application.
 
At runtime, use the #SYS_APPLN variable name to access the object that represents your running application.

Properties

NameDescription
AllowWindowsDragDropAllow the application to respond to a Windows drag and drop
AppearanceConfigure the default appearance of the application
ComponentClassNameComponentClassName is the name of the component's class. Inherited from Object (PRIM_OBJT)
ComponentFormsCollection of all forms in the application
ComponentMembersComponentMembers provides access to all the member components of this component Inherited from Object (PRIM_OBJT)
ComponentPatternNameComponentPatternName is used to qualify the class of the component. Inherited from Object (PRIM_OBJT)
ComponentTagGeneric space allowing a value to be stored for the instance Inherited from Object (PRIM_OBJT)
ComponentTypeComponentType gives you access to the type information about the component Inherited from Object (PRIM_OBJT)
ComponentTypeNameComponentTypeName is the fully qualified name of the component's class. Inherited from Object (PRIM_OBJT)
CursorsCollection of system defined cursors
EnsureVisibleFormsEnsure forms show on correct monitor
FocusControlReference to the current focus control
GlassEnabledTrue if the application is using the Glass feature of forms
HelpHandlerUse the Help Handler to override the default F1 behavior
HintDurationNumber of milliseconds that a hint will stay visible
ImagesCollection of system defined images
MonitorsCollection of monitors available
NameName identifies the component Inherited from Object (PRIM_OBJT)
NumericEditStyleNumericEditStyle controls insert and overtype data entry styles for numbers
OperatingSystemThe name of the current desktop operating system
OwnerOwner owns this component Inherited from Object (PRIM_OBJT)
ParentThe component instance to which this instance is attached. The visual container for a control or the collector of a set of child instances Inherited from Object (PRIM_OBJT)
PartitionShortCharLengthReturns the partition Short Char setting Inherited from Application Object (PRIM_APP)
PartitionShortCharLevelReturns the partition Short Char setting Inherited from Application Object (PRIM_APP)
PrimaryMonitorReference to the Primary Monitor
RenderStyleRender style determined from the runtime parameter and main form
ScalingFactorHorHorizontal scaling factor
ScalingFactorVerVertical scaling factor
ScreenHeightHeight of the screen in pixels
ScreenWidthWidth of the screen in pixels
ServicesManagerLANSA Internal Use Inherited from Application Object (PRIM_APP)
StyleStyle to be applied to the whole application
StylesCollection of styles to be applied to the whole application
ThemeTheme property
Theme2003Color1Theme2003Color property
Theme2003Color2Theme2003Color property
Theme2003ColorsTheme2003Color property
ThemedFormsApply theme colors to all forms
ThemedReadOnlyShow a readonly background for readonly edits in a themed application
TraceHandlerUser defined trace handler Inherited from Application Object (PRIM_APP)
UxThemeEnabledEnabled/Disable LANSA use of Windows UxTheme.dll
VirtualScreenHeightHeight of the available screen space across all monitors
VirtualScreenLeftLeft position in pixels for all monitors
VirtualScreenTopTop position in pixels for all monitors
VirtualScreenWidthWidth of the available screen space across all monitors
WheelOnMouseOverScroll controls when the mouse is over the control without being focus

Events

NameDescription
CreateInstanceCreateInstance is signalled when an instance of a component is created Inherited from Desktop Application Object (PRIM_APPL)
DestroyInstanceDestroyInstance is signalled when an instance of a component is about to be destroyed Inherited from Desktop Application Object (PRIM_APPL)
FocusControlChangedFired when the Focus Control changes
Control
IdleFired every 5 seconds when there is no user input from the keyboard or mouse
Seconds
IdleEndFired if already in idle state and there is keyboard or mouse input

Methods

NameDescription
CaptureDesktopCapture a bitmap screen print of the desktop as a file
Result, FileName
CaptureWindowCapture a bitmap screen print of a window as a file
Result, FileName, Control
CloseAllFormsClose all open forms
ColorToRGBCovert a LANSA color name to an RGB color
Result, Color, R, G, B
ControlAtPointReturns the control at the specified location
Control, Left, Top, ControlPart
CreateBitmapCreate an instance of a bitmap (Prim_bmp)
Result, FileName, Exists
CreateColorDialogCreate an instance of the Color Picker
Result
CreateFileOpenDialogCreate an instance of the File Open dialog
Result
CreateFileSaveDialogCreate an instance of the File Save dialog
Result
CreateFolderBrowseDialogCreate an instance of the Folder Browser dialog
Result
DisableProcessGhostingPrevent Windows from replacing a busy form
ShowHelpEquivalent to pressing F1
Handled, Context, Requestor, TagString
TraceMessageDataSend a string to the user defined Trace Handler Inherited from Application Object (PRIM_APP)
Source, Value1, Value2, Value3, Value4, Value5, Value6, Value7, Value8, Value9
TraceMessageTextSend multiple strings to the user defined Trace Handler Inherited from Application Object (PRIM_APP)
String1, String2, String3, String4

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2