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 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.
Buttons in a window
WindowsLinux

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,
  • image,
  • text and image.
WINDEV and WINDEV Mobile feature many possibilities for customizing buttons, their style or effect.
You can:
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