New topic: Right click picture for popup menu
<http://forums.realsoftware.com/viewtopic.php?t=33742> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message grechcj Post subject: Right click picture for popup menuPosted: Tue May 11, 2010 11:23 am Joined: Sun Feb 14, 2010 11:19 pm Posts: 14 I'm trying to convert a vb6 project which contains 6 picture boxes. When you right click a box a popup menu gives you a list of several options. My RS project contains a control array of 6 imageWells. I was thinking of hiding a popup menu control off the form and dynamically creating the popup when an imageWell is right clicked. How can I write code for the right click mouse up event of the imageWell? For Example in vb6 it is Private Sub pictureBox_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single) If Button = vbRightButton Then PopupMenu mnuOptions 'using a hidden menu created in design mode I think I will also need to store the index of the imageWell clicked on and position the menu accordingly. Or is it better to position the menu in relation to the x and Y of the mouse click? Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
