[futurebasic] Re: [FB] getting a meaningful number from a font pop-up

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2002 : Group Archive : Group : All Groups

From: Jamin <benjamen@...>
Date: 27 Jan 2002 09:55:00 +1100
Untested:

FontMenuHandle& = FN GETMHANDLE(MenuID%)
LONG IF FontMenuHandle& <> _nil
  CALL GETITEM(FontMenuHandle&, ItemNumber%, FontNameHere$)
  CALL GETFNUM(FontNameHere$, FontNumberForTEXT%)
END IF

Or something like that...

Jamin


On Friday, 25 January 2002 6:38 AM, Bowerbird@... wrote:
>
>ok, i've got a font menu in a pop-up (sorted alphabetically), and
>when it's used, i get the number of the menu-item that was chosen.
>(so the first alphabetical item on the list returns "1" when
>chosen.)
>
>now how do i translate _that_ number into
>the number i would use in a "text" statement?
>
>-bowerbird
>
>--
>To unsubscribe, send ANY message to
><futurebasic-unsubscribe@...>
>