At 08:45 AM 6/29/2009, you wrote:
I need to add a popup menu temporarily to a listbox cell to ensure the user
populates the cell with a valid string value. Once the user selects an item
from the popup menu, I would remove the popup and place the corresponding
string in the cell as non-editable.
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 efficient
to me.
How have others solved this problem?
I use Alex Restapo's CustomListBox and made my own PopupMenu cell
class. I still have to refine it a bit (Windows doesn't look like a
Mac PopupMenu; column resizing) but it works great. If you want it
I'll send it to you.
A PopupMenu within a ListBox seems like a real common request.
The CustomListBox is great, but don't accept it "as-is", it can be
extended very easily. I have a repository of custom cells that I'm
made and it's my standard ListBox I use in my projects. At the very
least it's got alternating row color built in and I want that to look Mac-ish.
http://homepage.mac.com/alexrestrepo/indexmain.html
Alex hasn't made anything of late, but when he did he seemed to tap
(into at least mine) some clear omissions in RB's feature set. Check
out his other projects, you might find them handy (and donate
something if you use them).
* * * * * * * * * * * * * * * * * * * * * * * * * * *
| Garth Hjelte |
| Customer Service Representative, President |
| Chicken Systems, Inc, Rubber Chicken Software Co. |
| 714 5th Street SE |
| Willmar, MN 56201 USA |
| |
| 800-8-PRO-EPS Toll Free Order Line (US Only) |
| 320-235-9798 Tech Support, Sampler Questions |
| International Line |
| 360-838-7689 Fax |
| Product Sales: sales@chickensys.com |
| Product Support: support@chickensys.com |
| Sampler Q+A: qa@chickensys.com |
| Web Page: www.chickensys.com |
* * * * * * * * * * * * * * * * * * * * * * * * * * *
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|