ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV and WINDEV Mobile 2024 feature!
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Associating WLanguage code with the right button
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 RightButton property gets and sets the characteristics of a button located on the right side of an Edit control. This button corresponds to a clickable image.
Example
EDT_Edit.RightButton.Image = IMG_Plus
EDT_Edit.RightButton.NbState = 5
EDT_Edit.RightButton.Monochrome = False
EDT_Edit.Process[trtClickButtonEditControlRight] = MyProcedure
Syntax

Getting the characteristics of a button on the right of an Edit control Hide the details

<Result>=<Edit control>.RightButton.<Property name>
<Result>: Type corresponding to the property
Result corresponding to the property used.
<Edit control>: Control name
Name of the Edit control used.
<Property name>:
Name of the property used:
PropertyTypeDescription
HeightIntegerHeight of the clickable image in the input area, expressed in pixels.
ImageString, memoImage used as the button in the input area.
Margin.BottomIntegerBottom margin of the clickable image, expressed in pixels.
Margin.LeftIntegerLeft margin of the clickable image, expressed in pixels.
Margin.RightIntegerRight margin of the clickable image, expressed in pixels.
Margin.TopIntegerTop margin of the clickable image, expressed in pixels.
Margin.ValueInteger
  • Value of the top, bottom, right and left margins expressed in pixels, if these values are the same,
  • -1 if the margins are not identical.
MonochromeBoolean
  • if the image must be monochrome,
  • False otherwise.
NbStateIntegerNumber of image states.
VisibleBoolean
  • True if the clickable image is visible at runtime,
  • False otherwise.
WidthIntegerWidth of the clickable image in the input area, expressed in pixels.

Setting the characteristics of a button on the right of an Edit control Hide the details

<Control used>.RightButton.<Property name> = <New value>
<Control used>: Control name
Name of the control used.
<Property name>:
Name of the property to be applied:
PropertyTypeDescription
HeightIntegerHeight of the clickable image in the input area, expressed in pixels.
ImageString, memoPath to the image used as button in the input area.
Margin.BottomIntegerBottom margin of the clickable image, expressed in pixels.
Margin.LeftIntegerLeft margin of the clickable image, expressed in pixels.
Margin.RightIntegerRight margin of the clickable image, expressed in pixels.
Margin.TopIntegerTop margin of the clickable image, expressed in pixels.
Margin.ValueIntegerValue of the top, bottom, right and left margins, expressed in pixels. Sets all margin properties if the values are the same.
MonochromeBoolean
  • if the image must be monochrome,
  • False otherwise.
NbStateIntegerNumber of image states.
VisibleBoolean
  • True if the clickable image is visible at runtime,
  • False otherwise.
WidthIntegerWidth of the clickable image in the input area, expressed in pixels.
<New value>: Type corresponding to the property
New value for the specified property.
Remarks

Associating WLanguage code with the right button

To associate WLanguage code with the button located on the right of an Edit control , simply use the Process property with the trtClickButtonEditControlRight constant
Minimum version required
  • Version 2024
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/29/2024

Send a report | Local help