ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Control functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The following functions are used to manipulate controls:
ActiveXEventAssociates a procedure written in WLanguage with an event of ActiveX control.
AddLinkAdds a link to a text section in an edit control.
AssistedInputAddAdds a row to the list of values available in the input suggestions of an Edit control.
AssistedInputCloseCloses the list of input suggestion of an Edit control.
AssistedInputDeleteAllClears the values in the suggestion list of an Edit control.
AssistedInputOpenOpens the list of suggestions of an Edit control
AttachPointAddDefines an attach point for one of the two extremities of a Wire control.
AttachPointDeleteAllDeletes all the connection points for a control.
ChangeStyleModifies the style of a control dynamically.
ConfigureSpellCheckConfigures the spelling checker for the edit controls and for the Table control columns in the whole application.
ControlAliasGets, modifies or restores the data binding to a control or group of controls.
ControlCloneCreates a new control from an existing control.
ControlContextMenuIdentifies the control on which the context menu was opened.
ControlCreateCreates a new control (of any type) in a window through programming.
ControlCurrentReturns the name of the control currently in edit.
ControlDeletePermanently deletes a control from a window, page or report.
ControlEnabledEnables a control or a group of controls in a window. An animation can be set on the controls during this operation.
ControlErrorCustomizes the value displayed in the controls when the value cannot be displayed.
ControlExistChecks the existence of a control (or group of controls) in a window, in a page or in a report.
ControlFirstIndicates the name of the first field specified in the tab order for the specified window.
ControlGrayedGrays a control or a group of controls. An animation can be set on the controls during this operation.
ControlInfoXYReturns the name of the control located at a given position.
ControlInOutReasonIndicates the origin of the entry in the control.
ControlInvisibleMakes a control (or a group of controls) invisible in a window. An animation can be set on the controls during this operation.
ControlNextReturns the name of the next control in input mode.
ControlNoSpaceSpecifies whether the space characters on the right of the value found in the control are deleted.
ControlOverIdentifies the control hovered over with the mouse cursor.
ControlPreviousSpecifies the name of control that was in edit before the current control.
ControlTypeInfoReturns the icon corresponding to the specified type of control.
ControlVisibleMakes a control (or a group of controls) visible in a window. During this operation, an animation can be performed on the controls.
CoordinateEditorToScreenConverts a size or a position specified in the reference dpi in the editor (160 dpi) to the native dpi of screen on the device where the application is run.
CoordinateImageControlToImageConverts the coordinates of a rectangle in the Image control to the original image coordinate system.
CoordinateImageToImageControlConverts the coordinates of a rectangle in the original image to the Image control coordinate system.
CoordinateScreenToEditorConverts a size or a position specified in the native dpi of the screen on the device where the application is run to the reference dpi in the editor (160 dpi).
CountReturns the number of occurrences of a control in a window, in a page or in a group of controls.
CurrentColumnReturns:
  • the index of the current indexed column in a Table control (based on a data file or populated programmatically).
  • the number of the column currently in edit mode in the specified Table control (based on a data file or populated programmatically).
CurrentIndexDepending on the specified control, returns:
  • the number of the current row displayed in the current Table control,
  • the number of the option with focus in a Check Box control,
  • the number of the current row in the current Looper control,
  • the index of the current indexed control.
DeleteParameterDeletes a parameter (or a set of parameters) saved either by SaveParameter, or automatically via the persistence of data in the controls.
DictionaryLoadIndicates and loads the dictionary corresponding to a given language.
EditCaretModifies the standard hover cursor for all the edit controls of the application.
EnumControlReturns the name of Nth control found in the specified element.
HTMLNavigateStarts navigation in an HTML Display control.
InitParameterInitializes the management of persistent values.
LinkColorModifies the color of links in the edit controls and in the Static controls.
LoadParameterReads a persistent value.
NextIndexReturns the number of the next row displayed in the current Table control.
OpenContextMenuAutomatically opens a context menu for the current control, window or page.
ParentObjectIdentifies the "parent" of a graphic object: control, column, window, page, ...
ResetReinitializes:
  • all the controls found in the current window or page (including the groups of controls, the supercontrols and the internal windows).
  • the controls found in a group of controls, a supercontrol, an internal window or an internal page.
ReturnToCaptureStops the current process and forces the input in the specified control, window or page.
SaveParameterSaves a persistent value in the registry or in another file specified by InitParameter.
ScreenFirstDefines the next control that will be in edit in the current window.
ScrollbarIsVisibleUsed to find out whether the scrollbar of a control in a WINDEV application is visible.
ScrollbarMaxPositionRetrieves the maximum position of one of the horizontal or vertical scrollbars found in a control of a WINDEV application.
ScrollbarPositionUsed to manage the position of scrollbars:
  • Modifies or retrieves the position of one of the horizontal or vertical scrollbars found in a control of a WINDEV or WINDEV Mobile application.
  • Retrieves the position of one of the horizontal or vertical scrollbars found in a control of a WEBDEV site.
ScrollBarShowDisplays (or not) a scrollbar in a WINDEV control (edit control or list box) even if no scrollbar was specified during the control description.
SelectionColorChanges the characteristics of the selection bar in a Table control, Combo Box control or List Box control.
SetFocusSet focus:
  • to a control (found in a window, in a page or in a frameset).
  • to a window.
ShapePolygonModifies the shape currently displayed in a Shape control to get a custom shape (by specifying the coordinates of polygon points).
ShowToolTipEnables or disables the mechanism for displaying the control tooltips.
TextEllipsisReturns the text with ellipsis displayed in an Edit, Combo Box or Static control.
TextHeightCalculates the height (in pixels) of the text displayed in an edit control, in a Static control or in a Combo Box control.
TextWidthCalculates the width (in pixels) of the text displayed in an edit control, in a Combo Box control or in a Static control.
ToolTipColorModifies the colors used for displaying the tooltips.
ToolTipDelayUsed to modify:
  • the timeout before displaying the tooltips.
  • the display duration of the tooltips.
ToolTipMarginModifies the margin of the text in the tooltips.
TooltipMaxWidthModifies the maximum width of tooltips.
Related Examples:
The ControlClone function Unit examples (WINDEV): The ControlClone function
[ + ] Using ControlClone and ControlDelete.
WD Persistence Training (WINDEV): WD Persistence
[ + ] This example presents the use of InitParameter, LoadParameter and SaveParameter.
These functions are used to configure the backup of controls, variables and other parameters.
This example is divided into three parts:
- The configuration
- The manual management of variables (SaveParameter and LoadParameter)
- The optimization
1°) Configuration

The configuration window enables you to modify the location of the backup of parameters (registry, INI file, XML file) as well as its path (registry key or file path).
2°) Manual management of the variables
The manual management enables you to save the content of the variables via SaveParameter and to restore them via LoadParameter. Each parameter is identified by a name. These values are saved at the location defined in the configuration window.
3°) The optimization
This window explains how to optimize your code to avoid the slowness caused when the saved values are restored. Indeed, when restoring the value of a control, its modification code is run. If you have long processes (queries with parameters for instance), this window shows you how to speed up the loading of the window.
The AssistedInput functions Unit examples (WINDEV): The AssistedInput functions
[ + ] Using the WLanguage AssistedInput functions.
These functions are used to easily implement an assisted input on the controls.
Minimum version required
  • Version 9
This page is also available for…
Comments
PROCEDURE evento_lista_objetos_gpw(ninstancia)
//variaiveis auxiliares
i is int = 1
objs_form is string = ""
sControlName is string = ""
sControles is string = ""

ninstancia = ninstancia

<COMPILE IF Configuration<>"iOS application" AND Configuration<> "Android application">

IF ninstancia = 0 THEN

RESULT ""

ELSE

NomeForm is string = m_Tabela[ninstancia].gs_nomeJanela

WHEN EXCEPTION IN

sControlName = gpwEnumControl(NomeForm, i)

LOOP(5000)

// Process the control
Trace(sControlName)

// Next control
i++

sControlName = gpwEnumControl(NomeForm, i)

IF sControlName <> "" AND sControlName <> Null AND sControlName <> 0 AND sControlName <> VK_EREOF THEN
indirection is string = NoSpace(NomeForm) +"."+ NoSpace(sControlName)
IF ControlExist(sControlName) = True
sControles += indirection + "; "
END
ELSE
BREAK
END

END

RESULT sControles


DO
IF ExceptionInfo(errCode) THEN
RESULT sContro
Boller
02 Sep. 2023

Last update: 12/21/2023

Send a report | Local help