PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Overview of Button control
  • Control in a window or in a page (static or dynamic page)
  • Buttons in a window
  • Button control in a window
  • Buttons in a page
  • Button control in a page
  • Creating a Button control
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview of Button control

Control in a window or in a page (static or dynamic page)

The Button control allows the user or the Web user to run a specific action with a simple click.
Versions 15 and later
Android This type of control is now available for Android applications.
New in version 15
Android This type of control is now available for Android applications.
Android This type of control is now available for Android applications.
Versions 16 and later
Linux This type of control is now available for WINDEV applications in Linux.
New in version 16
Linux This type of control is now available for WINDEV applications in Linux.
Linux This type of control is now available for WINDEV applications in Linux.
Versions 17 and later
iPhone/iPad This type of control is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This type of control is now available for iPhone/iPad applications.
iPhone/iPad This type of control is now available for iPhone/iPad applications.
Versions 18 and later
Android Widget This type of control is now available for Android Widget windows.
Universal Windows 10 App This type of control is now available for applications in Windows Store Apps mode.
New in version 18
Android Widget This type of control is now available for Android Widget windows.
Universal Windows 10 App This type of control is now available for applications in Windows Store Apps mode.
Android Widget This type of control is now available for Android Widget windows.
Universal Windows 10 App This type of control is now available for applications in Windows Store Apps mode.
Versions 21 and later
Universal Windows 10 App This type of control is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This type of control is now available in Universal Windows 10 App mode.
Universal Windows 10 App This type of control is now available in Universal Windows 10 App mode.
Buttons in a window
WindowsLinuxAndroidAndroid Widget iPhone/iPadUniversal Windows 10 AppWindows MobileJava

Button control in a window

The Button control allows the user to run a specific action with a simple click.
A Button control can contain:
  • text,
    Java Buttons cannot have multiline text.
  • image,
  • text and image.
WINDEV and WINDEV Mobile feature many possibilities for customizing buttons, their style or effect.
You can:
  • define the type of button. Each type of button is used to perform a specific action.
  • create On/Off buttons.
  • Versions 17 and later
    WINDEV create buttons with arrow.
    New in version 17
    WINDEV create buttons with arrow.
    WINDEV create buttons with arrow.
  • define images to illustrate the button or customize its shape. See Images and buttons for more details.
  • create animated buttons. See Images and buttons for more details.
  • Versions 20 and later
    WINDEV use RTF to format the button caption.
    Remark: To use RTF in a Button control, check "RTF" in the "General" tab of the control description. The RTF configuration bar appears above the caption of the control in order to configure it easily. You also have the ability to directly copy a RTF code in the control caption.
    New in version 20
    WINDEV use RTF to format the button caption.
    Remark: To use RTF in a Button control, check "RTF" in the "General" tab of the control description. The RTF configuration bar appears above the caption of the control in order to configure it easily. You also have the ability to directly copy a RTF code in the control caption.
    WINDEV use RTF to format the button caption.
    Remark: To use RTF in a Button control, check "RTF" in the "General" tab of the control description. The RTF configuration bar appears above the caption of the control in order to configure it easily. You also have the ability to directly copy a RTF code in the control caption.
Buttons in a page
WEBDEV - Server codeWindowsLinuxPHP

Button control in a page

A Button control can have different aspects:
  • text
  • Fixed image or image with hover
One or two images are associated with the button:
  • an image for the button in its "normal" state,
  • an image for its "hover" state (when hovered by the mouse).
In this case, independent images are used.
  • Images with several states
Different drawings are associated with the button. These drawings are grouped together in one image called "image set". You can use up to 5 drawings. The drawings correspond to the following button states: normal / pressed / grayed / focus / hover.

The appearance of the Button control can be defined in the "Style" tab of the control description window, in "Button (Images)".
Various aspects allow you to define the action of the button and the different events run when the Button control is clicked:
Creating a Button control
To create a Button control:
  1. On the "Creation" pane, in the "Usual controls" group, click "Button" (or click ).
  2. Click where the control will be created in the window or page. The control appears in the editor.
Tip: You can also create a "preset" Button control (that may contain code where necessary) by expanding "Button". The list of available Button controls is displayed with the project skin template. Simply click the desired Button control to create it in the editor.
To display the control characteristics, select "Description" in the control popup menu.
Related Examples:
The Button control Unit examples (WINDEV): The Button control
[ + ] Using a Button control
Displaying a popup menu Unit examples (WEBDEV): Displaying a popup menu
[ + ] This example presents the display of a "popup menu" when a click is performed on a button.
Minimum version required
  • Version 9
This page is also available for…
Comments
Video Trocar Tab por Enter
https://youtu.be/4FRXaA6-AY4

https://windevdesenvolvimento.blogspot.com/2019/03/dicas-2045-windev-comandos-47-button.html
amarildo
15 Mar. 2019
Video Button
https://youtu.be/mobOu04Oo58

https://windevdesenvolvimento.blogspot.com/2019/03/dicas-2040-windev-dicas-88-button.html


// BTN ENSINANDO CONFIGURAR BUTTON

BTN_ENSINANDO_CONFIGURAR_BUTTON..Caption="NOVO TEXTO"
BTN_ENSINANDO_CONFIGURAR_BUTTON..BrushColor=DarkGreen
BTN_ENSINANDO_CONFIGURAR_BUTTON..Color=DarkYellow
BTN_ENSINANDO_CONFIGURAR_BUTTON..FontBold=True

amarildo
11 Mar. 2019