How can I use popupmenu?

In this category you can exchange your programming questions and solutions.
Post Reply
PaPi
Posts: 114
Joined: Wed May 16, 2007 11:55 am

How can I use popupmenu?

Post: # 50Post PaPi
Fri Jun 15, 2007 10:38 am

I did not see any example of POPUPMENU. And, I did not use it.  Help me!
PaPi

Marco
Site Admin
Posts: 246
Joined: Sat Sep 15, 2018 8:41 pm

How can I use popupmenu?

Post: # 51Post Marco
Fri Jun 15, 2007 9:04 pm

Hi,
can you get something with this:
kind regards


object f as form
 object m as  popupmenu
   object s as menuitem
     caption="sub1"
     onclick=clicked
   end object
   object s2 as menuitem
     caption="sub2"
     object s3 as menuitem
        caption="subsub3"
        onclick=clicked
     end object
   end object
 end object
end object
f.ShowModal

sub clicked(sender as menuitem)
   showmessage sender.caption+" clicked"
end sub



Post Reply