I had the same problems in 8.5, and I double checked the Xtra version, and
it is the MX xtra.  Here's the code I'm using to build the dialog box.  It
works fine on Windows:

gMUI=0
gMUI=xtra("MUI").new()
lwindow=gMUI.GetWindowPropList()
lwindow.name="Programs"
lwindow.callback="chooseProgramCallback"
lwindow.mode=#Data
lwindow.xPosition=-1
lwindow.yPosition=-1
lwindow.width=300
lwindow.height=150
lwindow.closebox=true
--
litem1=gMUI.GetItemPropList()
litem1.type=#windowBegin
--
litem2=gMUI.GetItemPropList()
litem2.type=#groupVBegin
--
litem3=gMUI.GetItemPropList()
litem3.type=#label
litem3.value="Choose a program:"
--
litem4=gMUI.GetItemPropList()
litem4.type=#PopupList
LProgramList=gProgramList.duplicate()
LProgramList.addAt(1, " ")
litem4.attributes=[#popupStyle:[#normal], #valueList:LProgramList,
#layoutStyle:[#centerH]]
litem4.value=LProgramList[1]
litem4.title="programListPopup"
--
litem45=gMUI.GetItemPropList()
litem45.type=#groupHBegin
--
litem5=gMUI.GetItemPropList()
litem5.type=#defaultPushButton
litem5.title="OK"
--
litem53=gMUI.GetItemPropList()
litem53.type=#pushButton
litem53.title="Cancel"
--
litem57=gMUI.GetItemPropList()
litem57.type=#groupHEnd
--
litem6=gMUI.GetItemPropList()
litem6.type=#groupVEnd
--
litem7=gMUI.GetItemPropList()
litem7.type=#windowEnd
--
ldialogItems=[litem1, litem2, litem3, litem4, litem45, litem5, litem53,
litem57, litem6, litem7]
--
gMUI.initialize([#windowPropList : lwindow , #windowItemList :
ldialogItems])
gMUI.run()
gMUI=0


I've run the debugger and can see that the Xtra appears to be instantiating
itself, but that's as much as I can tell.  The initialize() and run()
functions fail silently.

Charlie Fiskeaux II
Media Designer
The Creative Group
www.cre8tivegroup.com
859/858-9054x29
cell: 859/608-9194

----- Original Message ----- 
From: "Tab Julius" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Lingo-L Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 11, 2003 12:55 PM
Subject: Re: <lingo-l> MUI Xtra on OSX


>
> Works fine for me - just tried a quick fileOpen, and then an alert with an
> alert list.  Didn't try building a whole one from scratch, though.  Does
> your same code work properly in D8.5?
>
>
>
> At 12:24 PM 6/11/03, Charlie Fiskeaux II wrote:
> >Has anybody used the MUI Xtra on OSX?  I'm trying to port an app I
created
> >on Windows to OSX and the MUI is the only thing not working.  The Xtra is
> >initialized fine and I set up the dialog, but the initialize() and run()
> >functions don't do anything, as if there's no Xtra really there.  It does
> >this in authoring and projector mode.  I've tried a couple of different
> >types of dialogs, but still to no avail.
> >
> >Charlie Fiskeaux II
> >Media Designer
> >The Creative Group
> >www.cre8tivegroup.com
> >859/858-9054x29
> >cell: 859/608-9194
> >
> >
> >
> >[To remove yourself from this list, or to change to digest mode, go to
> >http://www.penworks.com/lingo-l.cgi  To post messages to the list, email
> >[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L
> >is for learning and helping with programming Lingo.  Thanks!]
>
> [To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is
for learning and helping with programming Lingo.  Thanks!]
>


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to