4D View v16PV GET BORDER STYLE |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D View v16
PV GET BORDER STYLE
|
PV GET BORDER STYLE ( zone ; bordure ; style ; couleur ) | ||||||||
Paramètre | Type | Description | ||||||
zone | Entier long |
![]() |
Zone 4D View | |||||
bordure | Entier long |
![]() |
Bordure du cadre | |||||
style | Entier long |
![]() |
Style de la bordure | |||||
couleur | Entier long |
![]() |
Couleur de la bordure | |||||
La commande PV LIRE STYLE ENCADREMENT récupère le style et la couleur de bordure courants pour la zone 4D View.
Pour définir le paramètre bordure, utilisez les constantes du thème PV Bordures :
Constante | Type | Valeur |
pv border edge bottom | Entier long | 8 |
pv border edge inner hor | Entier long | 16 |
pv border edge inner vert | Entier long | 32 |
pv border edge left | Entier long | 1 |
pv border edge right | Entier long | 4 |
pv border edge top | Entier long | 2 |
La valeur retournée dans le paramètre style peut être comparée aux constantes du thème PV Style bordure :
Constante | Type | Valeur |
pv border style 1 | Entier long | 1 |
pv border style 111 | Entier long | 7 |
pv border style 112 | Entier long | 9 |
pv border style 2 | Entier long | 2 |
pv border style 211 | Entier long | 8 |
pv border style 212 | Entier long | 10 |
pv border style 222 | Entier long | 11 |
pv border style 232 | Entier long | 12 |
pv border style 3 | Entier long | 3 |
pv border style 4 | Entier long | 4 |
pv border style 5 | Entier long | 5 |
pv border style 6 | Entier long | 6 |
pv border style half | Entier long | 14 |
pv border style none | Entier long | 0 |
pv border style quarter | Entier long | 13 |
Pour plus d'informations, reportez-vous à la commande PV FIXER STYLE ENCADREMENT.
Vérifions si le style d'encadrement en place dans la zone 4D View correspond à notre souhait. Notez que nous n'encadrons rien du tout : le code ci-dessous permet uniquement de modifier les caractéristiques des prochains encadrements à réaliser avec PV FIXER ENCADREMENT PLAGE.
C_LONGINT($Style;$Couleur) `Attributs de style
`Récupération des infos sur le style
PV GET BORDER STYLE(Zone;pv border edge bottom;$Style;$Couleur)
`Est-ce le style et la couleur souhaités ?
If($Style#pv border style 111)|($Couleur#PV Index to color(Light blue)) `Hélas non
PV SET BORDER STYLE(Zone;pv border edge bottom;pv border style 111;
PV Index to color(Light blue)) `Style et couleur du cadre
End if
Produit : 4D View
Thème : PV Encadrement
Numéro :
15868
Créé : 4D View 6.8
4D View - Langage ( 4D View v16)