| To: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
|---|---|
| Subject: | Re: Popup Menus in Listbox Cells |
| From: | Karen <keatk@verizon.net> |
| Date: | Mon, 29 Jun 2009 12:20:49 -0400 |
| Authentication-results: | mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com |
| Delivered-to: | listarchive@realsoftware.com |
| In-reply-to: | <4c8d6c440906290645r4a97bee0y2af0b236c3c5bfd8@mail.gmail.com> |
| References: | <4c8d6c440906290645r4a97bee0y2af0b236c3c5bfd8@mail.gmail.com> |
| Reply-to: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
| Sender: | realbasic-nug-bounces@lists.realsoftware.com |
On Jun 29, 2009, at 9:45 AM, Robert Steely wrote: I suppose, I could put text in the cell telling the user to <click here to add item> and then bring up a separate dialog allowing the user to select a valid entry from a listbox, but that doesn't seem very elegant or efficientto me. How have others solved this problem? This is easy to do.Draw a disclosure widget (Filled triangle) say at the left side of the cell (or in a column next to it with just the widget). On MouseDown check if the user clicked in it. If they did, show a contextual(popup) menu at that spot. In the language reference see MenuItem and MenuItem.Popup. You can even make popup menu hierarchical. Doing it yourself will help you learn RB and the listbox better. - Karen _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Anyone else catch this tidbit? - Ex-Borland's Delphi owner re-ignites cross-platform dream, Mike Reno |
|---|---|
| Next by Date: | Re: Popup Menus in Listbox Cells, Karen |
| Previous by Thread: | Re: Popup Menus in Listbox Cells, Rubber Chicken Software Co. |
| Next by Thread: | Re: Popup Menus in Listbox Cells, Jérémie Leroy |
| Indexes: | [Date] [Thread] [Top] [All Lists] |