Text: Implemented Bold and Italic, redid the screen layout.

GUI: Generalized the system that right-clicking an input area empties it while
entering edit mode, since it was indeed a very good idea, it saves a lot of time
once you do it intuitively. (Esc still cancels and restores)
Added a bitmap font, GrafX2_Classic.gif. Helpful for prototyping GUI screens.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@353 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2008-11-17 23:44:19 +00:00
parent 3c06848a8f
commit 54ca84e094
5 changed files with 73 additions and 57 deletions

View File

@@ -153,9 +153,11 @@ byte Readline_ex(word Pos_X,word Pos_Y,char * Chaine,byte Taille_affichee,byte T
// Mise à jour des variables se rapportant à la chaîne en fonction de la chaîne initiale
strcpy(Chaine_initiale,Chaine);
if (Type_saisie==1)
// Si on a commencé à editer par un clic-droit, on vide la chaine.
if (Mouse_K==A_DROITE)
Chaine[0]='\0';
else if (Type_saisie==1)
snprintf(Chaine,10,"%d",atoi(Chaine)); // On tasse la chaine à gauche
// Chaine[0]='\0'; // On efface la chaîne si c'est valeur numérique
Taille=strlen(Chaine);