Share your opinion
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
|
MENU - Show a popup menu
Liittle example to show popu menu
Create project with window clic with right button on the window and event and mousedown (mouse clic) Now write this code ; PUBLIC SUB Form_MouseDown() 'Defini nos variables pour le menu popup DIM hmenus AS Menu DIM hmenu AS Menu 'Define the menu dans fmain hMenus = NEW Menu(FMain) 'crée le menu popup hMenu = NEW Menu(hMenus) AS "hMenu" 'Ajoute le texte au menu hMenu.Text = ("premier item") 'Ajoute un deuxieme texte hMenu = NEW Menu(hMenus) AS "hMenu1" hMenu.Text = ("deuxieme item") IF hMenus THEN hMenus.Popup() END PUBLIC SUB hMenu_Click() message("Vous avez cliqué sur le premier item du menu") END PUBLIC SUB hMenu1_Click() message("Vous avez cliqué sur le deuxieme item du menu") END That's all happy day ! Creation date : 27/05/2009 @ 22:47 Reactions to this article
| QUICK MENU
SEARCH
LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS
visitors visitors online ARCHIVES GAMBAS 1/2
|