[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl-Toolbox] Popup menus in dialogs?



Hi,

I'm attempting to put a Mac face on a existing Perl script. In order to do
this I'd like to use a dialog from Mac::Dialogs. The contents of the dialog
are dynamically generated from a list of available options and inserted into
the dialog using MacDialogItems->add_item which ultimately gets passed to
MacDialog->new.

All of this is working fine for the standard dialog controls (edit fields,
checkboxes, etc.), but now I need to add a popup menu to the dialog.

I haven't been able to find a sample of how to do this anywhere... Does
anyone have a working sample of a popup menu in a dialog? MPPE discusses
popups only briefly and then says they require a resource (I presume a CNTL
resource) which won't work for my purpose (because the menu is generated
from data inside the script). I see references from others in the list
archives with similar questions but the general claim seems to be that
popups are unstable and lists should be used instead.

Am I looking at a rewrite to use standard windows with controls (losing the
benefits of the Dialog Manager)? Are popups usable with dynamic menus or
must I use a list? If I use a list am can I embed the list control into the
dialog, or is a regular window the way to go?

Any help greatly appreciated,

Thanks,

Alex



==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-toolbox-request@macperl.org