Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
TEXTAREA - Draganddrop
French only sorry...
LE GLISSE / DEPLACE DANS UNE TEXTAREA

Bonjour,
Aujourd'hui nous allons expérimenter le Drag and drop (glisser déplacer) de texte entre deux applications, un binaire linux et une application graphique Gambas.
Créons simplement une application avec un Form, une textarea et un bouton Quitter dont voici le code:


' Gambas class file

PUBLIC SUB _new()

END

PUBLIC SUB Form_Open()
ME.Center
END

PUBLIC SUB Button1_Click()
ME.Close
END

PUBLIC SUB TextArea1_Drop()
TextArea1.Insert(Drag.Text & Chr$­(10))
END

Maintenant, nous allons faire des essais avec Trois applications assez généralistes :
-Gedit editeur de texte
-Firefox
-Nautilus de gnome

A)GEDIT
ouvrons un fichier texte  puis séléctionnons le texte entier et faisont le glisser dans notre application comme ci dessous :


dragon1.png



dragon2.png



Nous pouvons constater deux choses :

- devant notre texte il y a un numero.
- les caracteres speciaux sont remplacés par un codage hexadecimal

B)FIREFOX
ouvrons au hasard un site internet. Par exemple http://gambaslinux.eg2.fr puis faisons glisser un texte dans notre application. Nous remaquons que le lien est ecrit dans notre aire de texte.


dragon4.png

C)Nautilus
Faisons glisser une icone de notre bureau sur notre application.On remarque le chemin complet dans le texte copié.


dragon3.png



Voila pour aujourd'hui





Creation date : 21/03/2010 @ 16:53
Last update : 21/03/2010 @ 16:53
Category : TEXTAREA
Page read 5246 times


Print the article Print the article


react.gifReactions to this article

Nobody gave a comment yet.
Be the first one to do it!


QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^