GUICtrlCreateEdit full texte

Aide et conseils concernant AutoIt et ses outils.
Règles du forum
.
Répondre
YuChan
Niveau 5
Niveau 5
Messages : 113
Enregistré le : jeu. 12 nov. 2020 14:09
Status : Hors ligne

GUICtrlCreateEdit full texte

#1

Message par YuChan »

Bonjour,

J'ai une petite question toute simple.

Pour GUICtrlCreateEdit()
Comment on fait pour retourné a la ligne car la moitié du text est coupé.

CDT
Avatar du membre
walkson
Modérateur
Modérateur
Messages : 1020
Enregistré le : ven. 12 août 2011 19:49
Localisation : Hurepoix
Status : Hors ligne

Re: GUICtrlCreateEdit full texte

#2

Message par walkson »

Code : Tout sélectionner

#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Global $Form1 = GUICreate("Form1", 300, 438)
Global $Edit1 = GUICtrlCreateEdit("", 48, 32, 193, 241, BitOR($ES_WANTRETURN, $WS_HSCROLL))
GUICtrlSetData(-1, "aaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa"&@CRLF&"aaaaaaa"&@CRLF&"aaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaa"&@CRLF&"aaaaaaaaaaaaaa aaaaaaaaaa aaaaaaaaaaaaa aaaaaaaaa")
GUISetState(@SW_SHOW)

While 1
 $nMsg = GUIGetMsg()
 Switch $nMsg
  Case $GUI_EVENT_CLOSE
   Exit

 EndSwitch
WEnd
Cordialement,
Walkson
"Horas non numero nisi serenas " Le canon de midi
(Je ne compte que les heures heureuses)
Répondre