Hi

> spose i have a filed, i want when i start my movie
> all the fonts which is currently in the system should
> show in that filed. is it possible?
>
> just like director font window.

here comes a very simple behavior to drop on a #field to get the list you're
looking for:

-- list fonts

on beginSPrite me
  tempFont    = new(#font)
  listOfFonts = tempFont.fontList()
  erase tempFont
  sprite(me.spritenum).member.text = me.miListToString(listOfFonts)
end


on miListToString (me, itemList)

  if not listP(itemList) then return ""

  str = ""
  endVal = itemList.count
  repeat with i = 1 to endVal
    str = str & RETURN & itemList[i]
  end repeat
  delete char 1 of str
  return str
end

hth,
.seb

[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