Propriétés GraphicInfo incompatibles
- Last UpdatedSep 24, 2024
- 2 minute read
Si vous invoquez la fonction ShowGraphic() avec une combinaison incompatible de propriétés GraphicInfo, le message d'avertissement suivant s'affiche pendant l'exploitation :
ShowGraphic <Nom Identité>. <Nom graphique>.<nom script > paramètres conflictuels dans le script : <Paramètre1>, <Paramètre2>
Par exemple, les propriétés incompatibles suivantes ont pour résultat une fenêtre de largeur et hauteur égales à 0<:hs>:
graphicInfo.WindowRelativePosition = aaGraphic.WindowRelativePosition.WindowXY;
graphicInfo.RelativeTo = aaGraphic.RelativeTo.Desktop;
Dans cet exemple, la position relative (propriété WindowRelativePosition) à la fenêtre (WindowXY) n'est pas compatible avec une taille relative (propriété RelativeTo) au bureau (Desktop).
Le tableau suivant montre les combinaisons de propriétés incompatibles. Des cellules en gris indiquent des combinaisons incompatibles de propriétés GraphicInfo en plus de celles spécifiées dans la colonne Propriétés Incompatibles.
|
Position relative de la fenêtre |
Taille : |
Propriétés incompatibles |
Remarques |
|---|---|---|---|
|
Desktop |
Graphique |
X O Largeur Hauteur |
|
|
Desktop |
Desktop |
X O Largeur Hauteur |
|
|
Desktop |
CustomizedWidthHeight |
X O ScalePercentage |
|
|
Fenêtre |
Graphique |
X O Largeur Hauteur |
|
|
Fenêtre |
Desktop |
X O Largeur Hauteur |
RelativeTo sur Window |
|
Fenêtre |
CustomizedWidthHeight |
X O ScalePercentage |
|
|
Zone client |
Graphique |
X O Largeur Hauteur |
|
|
Zone client |
Desktop |
X O Largeur Hauteur |
RelativeTo sur ClientArea |
|
Zone client |
CustomizedWidthHeight |
X O ScalePercentage |
|
|
ParentGraphic |
Graphique |
X O Largeur Hauteur |
|
|
ParentGraphic |
Desktop |
X O Largeur Hauteur |
RelativeTo sur ParentGraphic |
|
ParentGraphic |
CustomizedWidthHeight |
X O ScalePercentage |
|
|
ParentElement |
Graphique |
X O Largeur Hauteur |
|
|
ParentElement |
Desktop |
X O Largeur Hauteur |
|
|
ParentElement |
CustomizedWidthHeight |
X O ScalePercentage |
|
|
Souris |
Graphique |
X O Largeur Hauteur StretchWindow StretchWindow |
|
|
Souris |
Desktop |
X O Largeur Height StretchWindow StretchWindow |
RelativeTo sur Desktop |
|
Souris |
CustomizedWidthHeight |
X O Largeur Height StretchWindow StretchWindow |
|
|
DesktopXY |
Graphique |
Largeur Hauteur StretchWindow StretchWindow |
|
|
DesktopXY |
Desktop |
Largeur Hauteur StretchWindow ToScreenWidth StretchWindow ToScreenHeight |
Conflit entre les positions relatives à la fenêtre |
|
DesktopXY |
CustomizedWidthHeight |
ScalePercentage StretchWindow StretchWindow |
|
|
WindowXY |
Graphique |
Largeur Hauteur StretchWindow StretchWindow |
|
|
WindowXY |
Desktop |
Largeur Hauteur StretchWindow StretchWindow |
Conflit entre les positions relatives à la fenêtre |
|
WindowXY |
CustomizedWidthHeight |
ScalePercentage StretchWindow StretchWindow |
|
|
ClientAreaXY |
Graphique |
Largeur Hauteur StretchWindow StretchWindow |
|
|
ClientAreaXY |
Desktop |
Largeur Hauteur StretchWindow StretchWindow |
Conflit entre les positions relatives à la fenêtre |
|
ClientAreaXY |
CustomizedWidthHeight |
ScalePercentage StretchWindow StretchWindow |