Here's some test code I tried in a movie script that still doesn't work,
even though it's just a popup List in a window, nothing else:
global gMUI
on startMovie me
gMUI=new(xtra "MUI")
if not(objectP(gMUI)) then
gMUI=0
alert "ERROR: Xtra instance failure"
halt
end if
--
lsWindow=gMUI.getWindowPropList()
lsWindow.name="My Dialog Box"
lsWindow.callback="myCallback"
lsWindow.xPosition=-1
lsWindow.yPosition=-1
lsWindow.width=0
lsWindow.height=0
--
lsDialog=[]
--
formatter=gMUI.getItemPropList()
formatter.type=#windowBegin
lsDialog.append(formatter.duplicate())
--
widget=gMUI.getItemPropList()
widget.type=#PopupList
widget.attributes=[#popupStyle:[#normal],#valueList:[1,2,3],#layoutStyle:[#c
enterH]]
widget.value=1
lsDialog.append(widget.duplicate())
--
formatter=gMUI.getItemPropList()
formatter.type=#windowEnd
lsDialog.append(formatter.duplicate())
--
initialize gMUI, [#windowPropList:lsWindow, #windowItemList:lsDialog]
run gMUI
end
I do everything exactly like it says in the articles and documentation I
have, but it doesn't work. I did try a dialog box without a popup list,
with only a text label and "OK" and "Cancel" buttons, and it worked fine.
But as soon as I added the popupList, the whole window wouldn't work.
This happened to me earlier on Windows, and I discovered it was because my
attributes list for the popupList wasn't formatted correctly, but this time
it is formatted correctly, at least according to the documentation.
Could anybody test the above code on MX, OSX and see if they can get it to
work?
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!]