The common methods for windows, dialogs and objects

AnimateWindow

Produces special effects when showing or hiding windows.

ArrangeIconicWindows

Arranges all the minimized (iconic) child windows.

AutoSizingByActualSize

Force update windows size and position.

AutoSizingReinitMySize

Makes the current sizes of windows as initial

BeginWaitCursor

Call this function to display the cursor as an hourglass when you expect a command to take a noticeable time interval to execute.

BringWindowToTop

Brings window to the top of a stack of overlapping windows.

CalcWindowRect

Call this member function to compute the required size of the window rectangle based on the desired client-rectangle size.

CenterWindow

Centers a window relative to its parent.

ChangeWindowSize

Changes the dimensions of window

ClientToScreen

Converts the client coordinates of a given point or rectangle on the display to screen coordinates.

CreateCaret

Creates a new shape for the system caret and claims ownership of the caret.

DeleteKeyProc

Restore standard key processing.

DoChildsMethod

Execute method for all direct childs.

DoChildsMethodEx

Execute method for all childs.

DoMethods

Executes set of methods.

DrawAnimatedRects

Draws a wire-frame rectangle and animates it to indicate the opening of an icon or the minimizing or maximizing of a window.

DrawMenuBar

Redraws the menu bar.

EnableScrollBar

Enables or disables one or both arrows of a scroll bar.

EnableWindow

Enables or disables mouse and keyboard input.

EndWaitCursor

Call this function after you have called the BeginWaitCursor member function to return from the hourglass cursor to the previous cursor.

FlashWindow

Flashes the given window once.

FlashWindowEx

Flashes the given window.

GetActiveWindow

Retrieves a pointer to the active window.

GetCapture

Retrieves the window that has the mouse capture.

GetCaretPoS

Retrieves the client coordinates of the caret's current position

GetChangedValue

Returns not empty array if value changed. First element of array is result of GetCurrentValueCRC, second elemen is result of GetCurrentValue turned down on one level.

GetChildsText

Retrieves texts of child objects

GetClassCursor

Retrieves a name of the established cursor

GetClassName

Returns a classname to which posesses interesting window

GetClassStyle

Retrieves the window-class style

GetClientOffset

Retrieves the difference between the upper left corner of the control's rectangular area and the upper left corner of its client area.

GetClientRect

Copies the client coordinates of the window client area into the structure pointed to by lpRect.

GetCommonStyle

Retrieves objects common styles.

GetCurrentValue

Retrieves current value. Or retrieves values of all child objects (DIALOG, FRAME, DLGBAR).

GetCurrentValueCRC

Returns CRC of result of GetCurrentValue

GetDirectOutput

Retrieves direct output mode.

GetExStyle

Returns the window's extended style.

GetFocus

Retrieves a pointer to the window that currently has the input focus.

GetForegroundWindow

Returns a pointer to the foreground window (the window with which the user is currently working).

GetHWND

Retrieves object windows handler

GetLastActivePopup

Determines which pop-up window owned by window was most recently active.

GetNextDlgGroupItem

Searches for the previous or next control within a group of controls in a dialog box.

GetNextDlgTabItem

Retrieves a pointer to the first control that was created with the WS_TabSTOP style and that precedes or follows the specified control.

GetNextWindow

Searches for the next (or previous) window in the window manager's list.

GetObjectType

Returns a object type

GetOwner

Retrieves a pointer to the owner of the window.

GetParent

Call this function to get a pointer to a child window's parent window (if any).

GetScrollInf

Call this member function to retrieve the information that the ScrollInfo structure maintains about a scroll bar.

GetScrollLimit

Call this member function to retrieve the maximum scrolling position of the scroll bar.

GetScrollPos

Retrieves the current position of the scroll box of a scroll bar.

GetScrollPosFlag

Returns current scroll flags.

GetScrollRange

Retrieves the scroll bar range.

GetStyle

Returns the current window style.

GetTopWindow

Searches for the top-level child window that belongs to window .

GetWindow

Returns a pointer to the window requested

GetWindowContextHelpID

Call this member function to retrieve the help context identifier, if any, associated with the window.

GetWindowInfo

Retrieves information about the window.

GetWindowPlacement

Retrieves the show state and the normal (restored), minimized, and maximized positions of a window.

GetWindowRect

Copies the dimensions of the bounding rectangle of the window object to the structure.

GetWindowText

Gets the window's title to the specified text.

GetWindowTextEX

Gets the window's title to the specified text.

GetZOrder

Gets a dynamic array which contains the list of identifiers of windows in Z-order

HideCaret

This method hides the caret by removing it from the display screen.

HTMLHelp

Call this member function to invoke the HTMLHelp application.

Invalidate

Invalidates the entire client area of window.

InvalidateParent

Invalidates the entire client area of parent window.

InvalidateRect

Invalidates the client area within the given rectangle by adding that rectangle to the window update region.

IsIconic

Specifies whether window is minimized (iconic).

IsWindowEnabled

Specifies whether window is enabled for mouse and keyboard input.

IsWindowVisible

Determines the visibility state of the given window.

IsZoomed

Determines whether window has been maximized.

KeyDown

Emulates pressing of a key WM_SETHOTKEY

LockWindowUpdate

Disables drawing in the given window.

MapWindowPoints

Converts (maps) a set of points from the coordinate space of the window to the coordinate space of another window.

MoveWindow

Changes the position and dimensions.

MoveWindowEx

Changes the position and dimensions relative current position and dimensions

MoveWindowRelative

Moves window relative other object or Desktop.

PrintWnd

Prints a visual window into the specified device, typically a printer.

ODCMethod

MethodName MethodParameters Prints a visual window into the specified device, typically a printer.

RedrawWindow

Updates the specified rectangle or region in the given window's client area.

RestoreClassCursor

Restores a name of the cursor with which the object was created

ScreenToClient

Converts the screen coordinates of a given point or rectangle on the display to client coordinates.

ScrollWindow

Scrolls the contents of the client area of the current window object.

ScrollWindowEx

Scrolls the contents of the client area of the current window object.

SetActiveWindow

Makes window the active window.

SetCapture

Causes all subsequent mouse input to be sent to the current window object regardless of the position of the cursor.

SetCaretPos

Sets the position of the caret.

SetCheckPoint

Sets current state as checkpoint. Later You can retrieve only changed values.

SetClassCursor

Sets the cursor for a class of objects

SetClassStyle

Sets the window-class style

SetCursor

Associates a new cursor image with the window.

SetDirectOutput

Set direct output mode state and style.

SetDrawContext Sets OwnerDrawContext name for this object

SetFocus

Claims the input focus.

SetFocusNextTab

Moving on positions TabStop

SetForegroundWindow

Puts the thread that created the window into the foreground and activates the window.

SetHScrollMask

Set mask for horisontal scroll. Locks concrete scroll message

SetIcon

Call this member function to set the handle to a specific icon, as identified by hIcon.

SetIgnoreSelChangeOnTAB

Disables selection changing during TABSTOP navigation.

SetKeyProc

Reassign keyboard keys, define methods and configure event.

SetNextParent

Sets the following parental window

SetOwner

Sets the current window's owner to the specified window object.

SetParamDelimiter

Sets a separator for the following calls

SetParent

Changes the parent window of a child window.

SetScrollInfo

Call this member function to set the information that the ScrollInfo structure maintains about a scroll bar.

SetScrollPos

Sets the current position of a scroll box and, if requested, redraws the scroll bar to reflect the new position of the scroll box.

SetScrollPosFlag

Sets scroll flags. Such as position automatic update.

SetScrollRange

Sets minimum and maximum position values for the given scroll bar.

SetScrollTimeout

Sets timeout betveen SCROLL events. Timeout in ms. Default value is 100ms.

SetValChangeCheckPoint

Sets Checkpoint for next OnValChange event. This method not execute SetCheckPoint. Returns previous and current CRC.

SetVScrollMask

Set mask for vertical scroll. Locks concrete scroll message

SetWindowContextHelpID

Call this member function to associate a help context identifier with the specified window.

SetWindowPlacement

Sets the show state and the normal (restored), minimized, and maximized positions for a window.

SetWindowPos

Call this member function to change the size, position, and Z-order of child, pop-up, and top-level windows.

SetWindowSize

Changes the dimensions of window

SetWindowText

Sets the window's title to the specified text.

SetWindowTextEx

Sets the window's title to the specified text.

SetWindowTheme

Causes a window to use a different set of visual style information than its class normally uses.

SetZOrder

Establishes Z-order of display of windows on the screen

ShowCaret

Shows the caret on the screen at the caret's current position.

ShowOwnedPopups

Shows or hides all pop-up windows owned by this window.

ShowScrollBar

Shows or hides a scroll bar.

ShowWindow

Sets the visibility state of the window.

SizerAdd

To add a sizer

SizerRemove

To remove a sizer

SizerSet

Sets  a sizer

SizerSetBrush

Sets brush of sizer

SizerSetIcon

Sets  an icon of sizer

SizerSetRgn

Sets region of sizer

SubclassWindow

Attaches windowless object to any other window

TrackMouseEvent

function posts messages when the mouse pointer leaves a window or hovers over a window for a specified amount of time.

UnlockWindowUpdate

Call this member function to unlock a window that was locked with LockWindowUpdate.

UnsubclassWindow

Detach prevously attached window

UpdateGroup

Updates a state of group

UpdateWindow

Updates the client area by sending a WM_PAINT message if the update region is not empty.

ValidateRect

Validates the client area within the given rectangle by removing the rectangle from the update region of the window.

WindowFromPoint

Retrieves the window that contains the specified point; point must specify the screen coordinates of a point on the screen.

WinHelP Called to initiate the WinHelp application.

 

Implementation of the Drag-and-Drop feature

Implementation of the Drag-and-Drop feature

Methods of Scroller

AddScroller Adds automatic scrolling
DelScroller Removes add automatic scrolling
SetScroller Sets parameters of automatic scrolling
SetScrollerPos Sets a position scrolled windows
EnsureVisibleScroller Ensures visibility of object within parent object with scroller.
UpdateScroller Updates automatic scrolling

Set forth above methods of autoscrolling can be used in objects  DLGBAR, DIALOG, FRAME

 

The call of a method can be made by number.

Format is:   Call GP.DlgObjectSub(1,1,"W<n> <parameters>"),

CALL GP.DLGOBJECTSUB(1,3,"W1 ":KL)
OR
CALL GP.DlgObjectSub(1,3,"SetStyle ":KL)

Call GP.DlgObjectSub(1,1,"SetFocus")
OR
Call GP.DlgObjectSub(1,1,"W3")

Numbers of methods are given in the table:

No. Name No. Name No. Name
18.ArrangeIconicWindows 21.GetWindowRect 41.GetNextWindow
17.BringWindowToTop 5.GetWindowText 42.GetOwner
0.CalcWindowRect 12.GetWindowTextEx 43.SetOwner
6.ClientToScreen 4.Invalidate 44.GetTopWindow
15.FlashWindow 9.InvalidateParent 45. GetWindow
16.FlashWindowEx 19.IsIconic 46.GetLastActivePopup
8.GetClientOffset 20.IsZoomed 47.GetParent
22.GetClientRect 24.MoveWindow 48.SetParent
2.GetExStyle 7.ScreenToClient 49.WindowFromPoint
10.GetFocus 3.SetFocus 50.CenterWindow
11.GetNextDlgTabItem 14.SetForegroundWindow 51.InvalidateRect
1.GetStyle 25.SetWindowPlacement 52.IsWindowVisible
26.GetWindowPlacement 23.SetWindowPos 53.ShowOwnedPopupsP>
27.AnimateWindow 13.ShowWindow 54.EnableScrollBar
28.IsWindowEnabled 29.EnableWindow 55.MapWindowPoints
30.GetActiveWindow 31.SetActiveWindow 56.GetScrollPos
32.GetCapture 33.SetCapture 57.GetScrollRange
34.GetForegroundWindow 35.GetWindowContextHelpId 58.SetScrollPos
36.SetWindowContextHelpId 38.GetZOrder 59.SetScrollRange
39.SetZOrder 40.SetIcon 60.ShowScrollBar
61.SetScrollInfo 62.GetScrollInfo 63.GetScrollLimit
64.ScrollWindow 65.ScrollWindowEx 66.CreateCaret
67.GetCaretPos 68.SetCaretPos 69.HideCaret
70.ShowCaret 71.GetNextDlgGroupItem 72.DrawMenuBar
73.PrintWnd 74.TrackMouseEvent 75.HtmlHelp
76.WihHelp 77.BeginWaitCursor 78.EndWaitCursor
79.SetFocusNextTab 80.SetCursor 81.SetClassCursor
82.GetClassCursor 83.RestoreClassCursor 84.SetDragName
85.SetDropName 86.AddDropName 87.DeleteDropName
88.SetDropDelay 89.SetDropScrollInterval 90.SetDropScrollMargin
91.SetNextParent 92.SizerAdd 93.SizerRemove
94.SizerSet 95.SetWindowText 96.SizerSetIcon
97.SizerSetRgn 98.SizerSetBrush 99.KeyDown
100.SetWindowTextEx 101.SetParamDelimiter 102.AutoSizingReinitMySize
103.GetChildsText 104.LockWindowUpdate 105.UnLockWindowUpdate
106.DrawAnimatedRects 107.RedrawWindow 108.UpdateWindow
109.ValidateRect 110.GetWindowInfo 111.GetClassName
112.GetObjectType 113.MoveWindowEx 114.ChangeWindowSize
115.SetWindowSize 116.AutoSizingByActualSize 117.DoChildsMethod
118.DoChildsMethodEx 119.SubclassWindow 120.UnsubclassWindow
121.GetHWND 122.DoMethods 123.GetClassStyle
124.SetClassStyle 125.SetDirectOutput 126.GetDirectOutput
127.SetHScrollMask 128.SetVScrollMask 129.SetScrollTimeout
130.SetKeyProc 131.DeleteKeyProc 132.SetCheckPoint
133.GetCurrentValue 134.GetCurrentValueCRC 135.GetChangedValue
136.SetValChangeCheckPoint 137.SetIgnoreSelChangeOnTAB 138.GetCommonStyle
139.MoveWindowRelative 140.SetScrollPosFlag 141.GetScrollPosFlag
142.SetWindowTheme 143. 144.