`
Par2: Adding popup menu items 1998-12-10 -- Shawn Mason >>Hi, could you let me know how to add choices to the popup updates, I WILL VERY MUCH APPRECIATE IT !!!<< There are two similar methods that will do this. One is the popup.additem method the other is the popup.additemmimic method. They do the same thing in that they add an item to a popup. The difference comes in how they are implemented (for a complete description look in the manuals under the PopUp Class). You must add an event for the "additem" method. For the "additemmimic" simply add a button on the screen (you can even hide it) and reference its USE variable. This will make the popup choice do whatever the button does. I use the latter method for several reasons. 1) I find it easier to implement. 2) I hide the button and place in smack-dab on my listbox control. When I am looking at source I instantly know that there is a hidden popup for this listbox and I even know the name of it. The code is under the embed for the button. It makes coding easier and a little cleaner. Printed November 21, 2024, 6:55 am This article has been viewed/printed 35207 times. |