PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Properties specific to the description of picText variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The picText type is used to define all the advanced characteristics of a Text layer. The characteristics of this Text layer can be defined and modified using different WLanguage properties.
Caution: This type of variable is only used with picLayer variables.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
Example
sFichier is string = fExeDir() + ["\"] + "ImgSource.jpg"
MonWDPic is WDPic = sFichier
 
CalqueFiligrane is picLayer
CalqueFiligrane.Name = "Filigrane"
CalqueFiligrane.Width = MonWDPic.Width
CalqueFiligrane.Height = MonWDPic.Height
CalqueFiligrane.Type = typeLayerText
CalqueFiligrane.Text.Font.Name = "Arial"
CalqueFiligrane.Text.Font.Size = 100
CalqueFiligrane.Text.Font.Orientation = -45
CalqueFiligrane.Text.Font.Color = iDarkBlue
CalqueFiligrane.Text.HorizontalAlignment = haCenter
CalqueFiligrane.Text.VerticalAlignment = vaMiddle
CalqueFiligrane.Text = "Mon texte de test"
 
ArrayAdd(MonWDPic.Layer, CalqueFiligrane)
 
// Affichage dans le champ Editeur d'images
EI_SansNom1 = MonWDPic
 
Info("A suivre ...")
 
// Récupération du calque et modification du texte
CalqueFiligrane<-MonWDPic.Layer["Filigrane"]
CalqueFiligrane.Text = "Mon filigrane"
 
// Affichage dans le champ
EI_SansNom1 = MonWDPic
 
Info("A suivre ...")
 
// Sauvegarde de l'image dans un fichier wdpic
sNouveauFichier is string = fExeDir() + ["\"] + "ImgDestination.wdpic"
MonWDPic.Save(sNouveauFichier)
 
// chargement du nouveau fichier
MonNouveauWDPic is WDPic = sNouveauFichier
 
// Récupération du calque et modification du texte
CalqueFiligrane<-MonNouveauWDPic.Layer["Filigrane"]
CalqueFiligrane.Text.Font.Orientation = 30
CalqueFiligrane.Text.Font.Size = 150
CalqueFiligrane.Text.Font.Color = iDarkRed
CalqueFiligrane.Text = "Mon filigrane version 3"
 
// Affichage dans le champ
EI_SansNom1 = MonNouveauWDPic
Remarks

Properties specific to the description of picText variables

The following properties can be used to manipulate a Text layer:
Property nameType usedEffect
HorizontalAlignmentInteger constantHorizontal alignment of text in the layer:
  • haCenter (Default value): The Toast message is displayed in the center.
  • haRight: The Toast message is displayed on the right.
  • haLeft: The Toast message is displayed on the left.
VerticalAlignmentInteger constantVertical alignment of text in the layer:
  • vaBottom (Default value): The Toast message is displayed at the bottom.
  • vaTop: The Toast message is displayed at the top.
  • vaMiddle: The Toast message is displayed in the middle.
OpacityIntegerText opacity percentage. This percentage goes from 0 (completely invisible) to 100 (completely opaque).
FontFont variableCharacteristics of the font used for the text.
TextCharacter stringText of the text layer.
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment