4D v15.4

List box

Accueil

 
4D v15.4
List box

List box 

 

Constante  Type Valeur Comment
Listbox add to selection  Entier long 1 La ligne sélectionnée est ajoutée à la sélection existante. Si la ligne désignée appartient déjà à la sélection existante, la commande ne fait rien.
Listbox all  Entier long 0 La commande agit sur tous les sous-niveaux (valeur par défaut, utilisée si le paramètre est omis).
Listbox background color  Entier long 1  
Listbox background color array  Entier long 1  
Listbox break row  Entier long 2 La commande agit sur le sous-niveau auquel appartient la "cellule" désignée par les paramètres ligne et colonne. A noter que ces paramètres représentent les numéros de ligne et de colonne dans la listbox en mode standard et non dans sa représentation hiérarchique. Si les paramètres ligne et colonne sont omis, la commande ne fait rien. 
Listbox display footer  Entier long 8 0=masqué, 1=affiché
Listbox display header  Entier long 0 0=masqué, 1=affiché
Listbox display hor scrollbar  Entier long 2 0=masquée, 1=affichée
Listbox display ver scrollbar  Entier long 4 0=masquée, 1=affichée
Listbox font color  Entier long 0  
Listbox font color array  Entier long 0  
Listbox footer height  Entier long 9 Hauteur en pixels
Listbox header height  Entier long 1 Hauteur en pixels
Listbox hor scrollbar height  Entier long 3 Hauteur en pixels
Listbox hor scrollbar position  Entier long 6 Position du curseur en pixels
Listbox inherited  Entier long -255  
Listbox last printed row number  Entier long 0 Retourne dans info le numéro de la dernière ligne imprimée. Permet de connaître le numéro de la prochaine ligne à imprimer. Le numéro retourné peut être supérieur au nombre de lignes effectivement imprimées si la list box contient des lignes invisibles ou si la commande OBJECT SET SCROLL POSITION a été appelée. Par exemple, si les lignes 1, 18 et 20 ont été imprimées, info vaut 20. 
Listbox level  Entier long 3 La commande agit sur toutes les lignes de rupture correspondant à la colonne niveau. Ce paramètre désigne un numéro de colonne dans la listbox en mode standard et non dans sa représentation hiérarchique. Si le paramètre niveau est omis, la commande ne fait rien.
Listbox lines  Entier long 1 La hauteur désigne un nombre de lignes. 4D calcule la hauteur d’une ligne en fonction de la police.
Listbox pixels  Entier long 0 La hauteur est un nombre de pixels (défaut)
Listbox printed height  Entier long 3 Retourne dans info la hauteur en pixels de l’objet effectivement imprimé (inclut les en-têtes, filets, etc.). Souvenez-vous que si le nombre de lignes à imprimer est inférieur à la "capacité" de la list box, sa hauteur est automatiquement réduite. 
Listbox printed rows  Entier long 1 Retourne dans info le nombre de lignes effectivement imprimées lors du dernier appel à la commande Print object. Ce nombre inclut les éventuelles lignes de ruptures ajoutées dans le cadre d’une list box hiérarchique. Par exemple, info vaut 10 si la list box contient 20 lignes et que les lignes impaires ont été masquées.
Listbox printing is over  Entier long 2 Retourne dans info un booléen indiquant si la dernière ligne (visible) de la list box a été effectivement imprimée. Vrai = la ligne a été imprimée, Faux sinon.
Listbox remove from selection  Entier long 2 La ligne sélectionnée est supprimée de la sélection existante. Si la ligne désignée n’appartient pas à la sélection existante, la commande ne fait rien.
Listbox replace selection  Entier long 0 La ligne sélectionnée devient la nouvelle sélection et remplace la sélection existante. La commande produit le même effet qu’un clic de l’utilisateur sur une ligne de la list box (l'événement Sur clic n'est toutefois pas généré). Cette action est effectuée par défaut (lorsque le paramètre action n’est pas passé).
Listbox selection  Entier long 1 La commande agit sur les sous-niveaux sélectionnés.
Listbox style array  Entier long 2  
Listbox ver scrollbar position  Entier long 7 Position du curseur en pixels
Listbox ver scrollbar width  Entier long 5 Largeur en pixels


Voir aussi  

LISTBOX COLLAPSE
LISTBOX EXPAND
LISTBOX Get array
LISTBOX Get footers height
LISTBOX Get headers height
LISTBOX Get information
LISTBOX GET PRINT INFORMATION
LISTBOX Get row color
LISTBOX Get rows height
LISTBOX SELECT BREAK
LISTBOX SELECT ROW
LISTBOX SET ARRAY
LISTBOX SET FOOTERS HEIGHT
LISTBOX SET HEADERS HEIGHT
LISTBOX SET ROW COLOR
LISTBOX SET ROWS HEIGHT

 
PROPRIÉTÉS 

Produit : 4D
Thème : Liste des thèmes de constantes

 
HISTORIQUE 


 
UTILISATION DE L'ARTICLE

4D - Langage ( 4D v15.4)
4D - Langage ( 4D v15)
4D - Langage ( 4D v15.3)