PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview of the Combo Box control
  • Control in a window, control in a dynamic or static page
  • Creating a Combo Box control
  • To create a Combo Box control:
  • Characteristics of Combo Box control
  • Size of the expanded area
  • Vocabulary
  • Swap
  • Example
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 the Combo Box control

Control in a window, control in a dynamic or static page

The "Combo Box" control is used to display a list of elements and to select an element from this list.
Unlike a List Box control , a Combo Box control is not expanded: it is expanded upon request or when the cursor is positioned on the list.
Versions 16 and later
Linux The Combo Box controls are now available for the WINDEV applications in Linux.
New in version 16
Linux The Combo Box controls are now available for the WINDEV applications in Linux.
Linux The Combo Box controls are now available for the WINDEV applications in Linux.
The elements displayed in a Combo Box control can be defined when creating the control in the editor. These elements:
  • are defined by programming.
  • come from a data file or from a query.
Creating a Combo Box control

To create a Combo Box control:

  1. In the window or page editor, click Creating a Combo Box control (or select "Insert .. Control .. Combo box").On the "Creation" pane, in the "Usual controls" group, click "Combo Box".
  2. Click the position where the control must be created in the page or window. The wizard for creating a Combo Box control is automatically started.
To display the control characteristics, select "Description" from the popup menu of control.
Characteristics of Combo Box control
WEBDEV - Server code

Size of the expanded area

The size of the expanded area varies according to the browser being used. If there are more elements in the Combo Box than those that can be displayed in the list, the scrolling is automatically managed: the expanded area has a vertical scrollbar.
Vocabulary
To easily handle a Combo Box control, you must be familiar with the following vocabulary:
Name Definition
Selection barAllows you to view the selected element in the expanded area. A specific color is used in most cases.
Browsing combo boxThe Combo box control is based on a data file or query. The control elements correspond to the file records.
Two types of browsing Combo box controls are available:
  • Browsing combo box "loaded in memory": The content of the control is loaded in memory then it is displayed in the control. Access to the Combo box control's elements is faster. This mode is reserved for the data files containing less than 100 000 records.
  • Browsing combo box in "direct access (no limit)": The control directly displays the content of the data file or query. The current record corresponds to the selected element. Each move in the control involves an access to the linked data file. This type of combo box is reserved for data files containing more than 100,000 records.
Memory combo boxThe Combo box control is not based on a data file or a query. The elements displayed in the Combo Box control are defined by the developer (in the description window or by programming).
Editable Combo BoxThe user can enter text in the edit control associated with the Combo Box. If "Assisted input" is selected, the user can easily select the element by typing the first letters: the letters typed are automatically completed with the corresponding element.
Non-editable combo boxThe user selects an element in the expanded area via the selection bar.
WEBDEV - Server code Note: "Editable combo box" and "Non-editable combo box" do not apply to WEBDEV.
Swap
Example
Several preset Combo Box controls are proposed in the "Wizards, Examples and Components" pane:
  1. Click the "Controls" button found in the "Wizard, Examples and Components" pane.
  2. In the list of controls, click "Pre-fill control".
To include one of these controls in your window or page, simply drag the control from the "Wizards, Examples and Components" pane and drop it in your window or page.
Related Examples:
The Combo Box control Unit examples (WINDEV): The Combo Box control
[ + ] Using a Combo Box control
WD Managing a computer fleet Complete examples (WINDEV): WD Managing a computer fleet
[ + ] This example presents the management of a computer fleet with WINDEV.
The following topics are presented in this example:
1/ the printed reports,
2/ the graphic representation of the location of the computer,
3/ the automatically filled combo boxes.
Summary of the example supplied with WINDEV:
This example is used to manage a computer fleet.
For each computer, you will be able to define its characteristics, its components, the person who is using it as well as its location in the offices.
The EyeMagnet Unit examples (WINDEV): The EyeMagnet
[ + ] Using the "eYe magnet" mechanism (also called conditional formatting)
The "eYe magnet" consists in modifying the visual aspect of a control in order to attract the user's attention to this control. WINDEV allows you to automatically modify this visual aspect according to a set of conditions.
Minimum required version
  • Version 9
This page is also available for…
Comments
Digitação da combo e apos dar enter para pesquisar desmarca seleção
//Exemplo vai no evento sair do campo ou dar enter

UI_CargaComboClientes("Win_AgendamentoTarefas.COMBO_QRY_Clientes_Ativos") // faz a query no banco

COMBO_QRY_Clientes_Ativos.Open() // abre a cortina

SendKey("{RIGHT}",COMBO_QRY_Clientes_Ativos) // desmarca a seleção do texto

//Assim fica show!!!!
https://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/3152-informatica-exemplo-combo-com-abertura-cortina-busca-filtrada/read.awp
BOLLER
Apr. 05 2019
Video sobre combos
YOUTUBE Bollerzito
BOLLER
Apr. 05 2019
Video Combox query
https://youtu.be/WYKA6-i4Rl0
amarildo
Aug. 06 2018
Is like Save Value
Minha Dica hoje,
é como Guardar Valor,
sem precisar fazer nada de programação no WinDev

My Tip today,
Is like Save Value,
Without having to do any programming on WinDev

//Blog com Video e Exemplo

http://windevdesenvolvimento.blogspot.com.br/2017/03/aula-1088-windev-dicas-019-guardar-valor.html

https://www.youtube.com/watch?v=OarZ2jc_l9U

De matos
Mar. 14 2017
Exemplo Combox+Glink
ListDeleteAll(COMBO_cliente)
FOR EACH cliente
ListAdd(COMBO_cliente,cliente.nome+gLink(cliente.clienteID))
END

//frances
ListeSupprimeTout(COMBO_cliente)
POUR TOUT cliente
ListeAjoute(COMBO_cliente,cliente.nome+gLien(cliente.clienteID))
FIN

//Blog com Video e Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/03/curso-windev-combox-005-combox-glink.html

De matos AMARILDO
Mar. 25 2016
Exemplo Combox Ordem
ListDeleteAll(COMBO_cliente)
FOR EACH cliente
ListAdd(COMBO_cliente,cliente.nome)
END
//Coloca em Ordem
ListSort(COMBO_cliente,True,ccLexicographicOrder)

//Frances
ListeSupprimeTout(COMBO_cliente)
POUR TOUT cliente
ListeAjoute(COMBO_cliente,cliente.nome)
FIN
//Coloca em Ordem
ListeTrie(COMBO_cliente,Vrai,ccOrdreLexicographique)

//Blog com Video e Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/03/curso-windev-combox-004-combox-ordemsort.html
De matos AMARILDO
Mar. 24 2016
Exemplo Combox Editavel
//Blog com video e exemplo Combox Editavel
http://windevdesenvolvimento.blogspot.com.br/2016/02/curso-windev-combox-003-combox-editavel.html
De matos AMARILDO
Feb. 07 2016
Exemplo Combo - preencher Manual
ListDeleteAll(COMBO_meses)
ListAdd(COMBO_meses,"marco")
ListAdd(COMBO_meses,"janeiro")
ListAdd(COMBO_meses,"fevereiro")
ListAdd(COMBO_meses,"abril")
ListAdd(COMBO_meses,"maio")
ListAdd(COMBO_meses,"junho")
ListAdd(COMBO_meses,"julho")
ListAdd(COMBO_meses,"agosto")
ListAdd(COMBO_meses,"setembro")
ListAdd(COMBO_meses,"outubro")
ListAdd(COMBO_meses,"novembro")
ListAdd(COMBO_meses,"dezembro")
//Blog com Video e exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/02/curso-windev-combox-001-preencher.html
De matos AMARILDO
Feb. 07 2016
Exemplo Selecionar Combo
//EM INGLES
SAI_resultado1=COMBO_meses // vai mostrar 1 para Janeiro
SAI_resultado2=COMBO_meses..StoredValue // Vai mostrar JANEIRO
//EM FRANCES
SAI_resultado1=COMBO_meses // vai mostrar 1 para Janeiro
SAI_resultado2=COMBO_meses..ValeurMémorisée // Vai mostrar JANEIRO
//Blog com Video e Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/02/curso-windev-combox-002-selecionar.html



De matos AMARILDO
Feb. 07 2016