realbasic-nug
[Top] [All Lists]

Re: Popup Menus in Listbox Cells

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Popup Menus in Listbox Cells
From: "Rubber Chicken Software Co." <support@chickensys.com>
Date: Mon, 29 Jun 2009 09:50:52 -0500
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; domainkeys=neutral header.From=support@chickensys.com
Delivered-to: listarchive@realsoftware.com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=chickensys.com; h=Received:X-Mailer:Date:To:From:Subject:In-Reply-To:References:Mime-Version:Content-Type:X-Identified-User; b=OzWvqO6w7DA9ET7y+IaafR3mkAXVhm+HNRd0V2BYisCYbcCv47W+joYywZas6GsxS54SSrOflxwvhED5lsPp0Ia8IKpNb6htmVAaPCoIplml41PnMEZI8sofnEJ3azvx;
Domainkey-status: unknown
In-reply-to: <4c8d6c440906290645r4a97bee0y2af0b236c3c5bfd8@mail.gmail.co m>
References: <4c8d6c440906290645r4a97bee0y2af0b236c3c5bfd8@mail.gmail.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
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>


<Prev in Thread] Current Thread [Next in Thread>