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
WORKSPACE - Use Workspace
french only, sorry..
WORKSPACE OU FENETRE MDI

Ce widget  bien pratique permet de faire une application multi fenêtre.
nous allons réaliser un petit exemple avec trois Form ,un principal nommé Fmain et deux autres Form1 et Form2 qui seront inclu dans Fmain.

CREATION PROJET
creer le projet nommé myworkspace et trois Form comme ceci :

workspace1.png

inserez trois menus
-un menu formulaire
un  sous menu Form1
-un sous menu Form2
comme ceci :

workspace2.png

maintenant allons dans propriété pour cocher le composant workspace soit GB.FORM.MDI



workspace3.png

retournons dans notre projet et maintenant dans la boite de widget l'onglet special, nous voyon maintenant le widget WORKSPACE. choisissez le et dessinez en un :

workspace4.png

Voila notre interface créée, il nous faut passer au code :

workspace5.png

lors d'un clic sur le menu Form1, nous allons inserer la fenetre form1 dans le workspace (ou espace de travail en francais) par la commande :

'clic sur sous menu Form1
PUBLIC SUB Menu2_Click()
Workspace1.Add(Form1)
END

puis faisons de même avec form2

PUBLIC SUB Menu3_Click()
Workspace1.Add(Form2)
END

Notre application etant terminée nous pourrons réaliser de grand projets tongue

A bientôt







Creation date : 12/07/2009 @ 21:53
Last update : 12/07/2009 @ 21:55
Category : WORKSPACE
Page read 5657 times


Print the article Print the article


react.gifReactions to this article


Reaction #1 

by lapenduledargent 14/07/2009 @ 10:31

Merci, ça répond exactement à mes besoinswink

Pierre

QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^