[R] Bug avec $WS_VSCROLL, $ES_MULTILINE + $ES_WANTRETURN ?

Aide sur les Interfaces Graphique Utilisateurs (GUI).
Règles du forum
.
Répondre
Avatar du membre
arrkhan
Niveau 8
Niveau 8
Messages : 528
Enregistré le : sam. 17 nov. 2007 03:30
Status : Hors ligne

[R] Bug avec $WS_VSCROLL, $ES_MULTILINE + $ES_WANTRETURN ?

#1

Message par arrkhan »

Tout est dans le titre, je vous passe le bout de code:

Code : Tout sélectionner

#include<GuiConstants.au3>
GUICreate ( "" , 200 , 200 , - 1 , - 1 , $WS_OVERLAPPEDWINDOW )
GUICtrlCreateEdit ( "" , 10 , 10 , 85 , 180 , $ES_AUTOVSCROLL + $ES_MULTILINE + $ES_WANTRETURN )
GUICtrlCreateEdit ( "" , 105 , 10 , 85 , 180 , $WS_VSCROLL , $ES_MULTILINE + $ES_WANTRETURN )
GUISetState ( @SW_SHOW )
While 1
$msg = GUIGetMsg ( )
If $msg = - 3 Then ExitLoop
Sleep ( 10 )
WEnd
donc le probleme, c'est que j'aimerai obtenir un edit avec return possible et vscroll mais apparement ca justifie a droite, bug ou je code comme un manche ? =Þ
Modifié en dernier par arrkhan le mer. 06 févr. 2008 16:47, modifié 1 fois.
ani
Niveau 11
Niveau 11
Messages : 1826
Enregistré le : lun. 23 juil. 2007 12:31
Localisation : Bureau
Status : Hors ligne

Re: […] Bug avec $WS_VSCROLL, $ES_MULTILINE + $ES_WANTRETURN ?

#2

Message par ani »

hello arrkhan :)

Code : Tout sélectionner

#include<GuiConstants.au3>
GUICreate("",200,200,-1,-1,$WS_OVERLAPPEDWINDOW)
GUICtrlCreateEdit("",10,10,85,180,($ES_WANTRETURN + $ES_AUTOVSCROLL + $ES_MULTILINE))
GUICtrlCreateEdit("",105,10,85,180,($WS_VSCROLL + $ES_MULTILINE + $ES_WANTRETURN))
GUISetState(@SW_SHOW)
While 1
$msg = GUIGetMsg()
If $msg = -3 Then ExitLoop
Sleep(10)
WEnd
ou encore

Code : Tout sélectionner

#include<GuiConstants.au3>
GUICreate("",200,200,-1,-1,$WS_OVERLAPPEDWINDOW)
GUICtrlCreateEdit("",10,10,85,180,bitor($ES_WANTRETURN,$ES_AUTOVSCROLL,$ES_MULTILINE))
GUICtrlCreateEdit("",105,10,85,180,bitor($WS_VSCROLL,$ES_MULTILINE,$ES_WANTRETURN))
GUISetState(@SW_SHOW)
While 1
$msg = GUIGetMsg()
If $msg = - 3 Then ExitLoop
Sleep(10)
WEnd
Avatar du membre
arrkhan
Niveau 8
Niveau 8
Messages : 528
Enregistré le : sam. 17 nov. 2007 03:30
Status : Hors ligne

Re: […] Bug avec $WS_VSCROLL, $ES_MULTILINE + $ES_WANTRETURN ?

#3

Message par arrkhan »

tout ca a cause de parentheses............. :'(

Merci "ani le novice"
Répondre