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: "TJ Hanson, PhD" <TJHanson@forestmgt.com>
Date: Mon, 29 Jun 2009 08:11:03 -0700
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
I accomplish this outside of the listbox. At the top of the window I have the various fields to enter; some are editfields and some are popup menus. After all fields are entered, the user clicks an "Add" pushbutton on the far right and the data appears in the listbox below.

To update data, the user clicks on a line in the listbox, and the data
from that line appears below the listbox in editfields and popup
menus. As each field is edited and the user tabs to the next field, the database is updated and the listbox is redrawn. I also have a "Delete" pushbutton. So the user can select a line in the listbox, click Delete and that record is deleted from the database. The listbox is then redrawn and the record is not there.

There are probably more elegant ways to add, change and delete database records, while allowing users to view all records in a listbox, but the above method works for me.

Let me know if you want me to send you a screen shot -- in case you want to see an example.

TJ


On Jun 29, 2009, at 6:45 AM, Robert Steely wrote:

From reading the language reference listbox entry, this doesn't appear
currently possible.
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?

Bob
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


_______________________________________________
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>