Utilisation de tab dans les editbox

Anacr0x Messages postés 515 Date d'inscription dimanche 25 mai 2003 Statut Membre Dernière intervention 27 avril 2006 - 22 juin 2003 à 18:26
Lord_Patoche Messages postés 196 Date d'inscription mercredi 6 août 2003 Statut Membre Dernière intervention 1 mai 2009 - 1 nov. 2004 à 00:37
Voila, en fait, kan on crée un projet avec vc++, on peut utiliser la touche tab pour naviguer + facilement dans le prog. Mais kan on utilise dev-c++, on ne peut plus... Quelqu'un a une idée pour pouvoir les utiliser kan même ?
merci d'avance

3 réponses

Anacr0x Messages postés 515 Date d'inscription dimanche 25 mai 2003 Statut Membre Dernière intervention 27 avril 2006 2
25 juin 2003 à 01:52
Je repose ma question. Après quelqu recherche, g vu qu'il fo utiliser WS_TABSTOP pour avoir la tabulation, mais ca ne marche pas, a priori, il faudrai mettre un style en plus dans la fenetre principale, mais lequel ?

voici ma fenetre principal :
MainHandle = CreateWindowEx(0, MainClassName, "titre", WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX|WS_GROUP, CW_USEDEFAULT, CW_USEDEFAULT, 550, 415, HWND_DESKTOP, NULL, hInstance, NULL);

et une sous fenetre :
EditHandle = CreateWindowEx(WS_EX_OVERLAPPEDWINDOW, "EDIT", "", WS_TABSTOP|WS_CHILD|WS_VISIBLE|ES_MULTILINE|WS_VSCROLL|ES_AUTOVSCROLL|ES_WANTRETURN, 10, 140, 525, 200, MainHandle, (HMENU)ID_EDITBOX, hInstance, NULL);

Ke fo til ke je change ?
0
drkns Messages postés 22 Date d'inscription mardi 20 janvier 2004 Statut Membre Dernière intervention 10 mars 2009
17 mai 2004 à 20:29
SAlut,

Comme vous je souhaite utiliser la touche tab afin de passer de controle en controle ! Sans pour autant y arriver ! mm avec WS_TABSTOP.

Y ete vous parvenu ???

Si oui.
Pourriez vous m'aidez en me montrant la demarche ??

voici mon bout de prog en question.

// Création de la fenetre
winhWnd = CreateWindowEx(
0,
"App_EditBox",
"ZNconvert",
WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU,
CW_USEDEFAULT,
CW_USEDEFAULT,
400,
300,
HWND_DESKTOP,
NULL,
FirstInstance,
NULL);

if (winhWnd == NULL)
{

MessageBox(NULL, "Erreur lors de la création de la fenêtre.", "Erreur", MB_OK);
return 0;

}
// Création des editbox
HWND edithWnd = CreateWindowEx(0, "EDIT", "", WS_VISIBLE|WS_CHILD | ES_AUTOHSCROLL | ES_NOHIDESEL,
10, 50, 150, 20, winhWnd, (HMENU)ID_EDITBOX, FirstInstance, NULL);

HWND edithWnd1 = CreateWindowEx(0, "EDIT", "", WS_VISIBLE | WS_CHILD | ES_AUTOHSCROLL | ES_NOHIDESEL,
10, 90, 150, 20, winhWnd, (HMENU)ID_EDITBOX1, FirstInstance, NULL);

Dans l'attente de votre aide.

Merci :)
0
Lord_Patoche Messages postés 196 Date d'inscription mercredi 6 août 2003 Statut Membre Dernière intervention 1 mai 2009 3
1 nov. 2004 à 00:37
J'ai le même soucis
Merci de m'informer dès qu'une solution a été trouvée
LaPatoshe
0
Rejoignez-nous