Hello All,
How can I add a PICT using Dialog Director?
I understand that a pict resource needs to be created, the problem that I am having is incorporating the PICT into my script. Please look at my sample posted below.
The DD manual has the following sample
Set pic1 to {class:pict, bounds:[10,90,10+198,90+47],contents:131}
What are the +'s used for?
Thank you,
Damon
set Language to DoMenu(["English", "French", "German", "Spanish"]) -- "Italian", "Japanese" to be added
if Language is "English" then
set lang to "En" else if Language is "French" then
set lang to "FR" else if Language is "Italian" then
set lang to "IT" else if Language is "German" then
set lang to "GR" else if Language is "Spanish" then
set lang to "SP" else if Language is "Japanese" then
set lang to "JP" end if
on DoMenu(theLanguage)
set [_next, _cancel, _choice] to dd auto dialog {size:[390, 240], contents:[¬
{class:push button, bounds:[320, 210, 380, 230], name:"Next"}, ¬
{class:push button, bounds:[240, 210, 300, 230], name:"Cancel"}, ¬
{class:radio group, bounds:[10, 45, 130, 61], button offset:[120, 50], max down:3, contents:theLanguage}, ¬
{class:pict, bounds:[10, 10, 250, 26], contents:101} ¬
], timeout after:200000} with grayscale
if _next then
return theLanguage's item _choice
else if _cancel then
error number -128
end if
end DoMenu