[futurebasic] Re: [FB] FN MakeHeirMenu

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

From: Brian Heibert <heibert@...>
Date: Thu, 21 Jan 2010 20:53:52 -0500
Thanks Stu,

There's this...
local fn MakeHierMenu(parentMenuID,parentMenuItem,itemString 
$,childMenuID)
title$ = "!"+chr$(childMenuID)+itemString$ + "/" + chr$(&1B)
menu parentMenuID, parentMenuItem,, title$
call InsertMenu(fn NEWMENU(childMenuID,""),-1)
end fn

it errors out on ...
title$ = "!"+chr$(childMenuID)+itemString$ + "/" + chr$(&1B)

also parentMenuID, parentMenuItem gets a warning it defaults to short

What do I do now?

On Jan 21, 2010, at 8:19 PM, Stu Cram wrote:

>
> On 21-Jan-10, at 6:58 PM, Brian Heibert wrote:
>
>> I want to make a hierarchical menu
>>
>> I found this but don't know what I need to change
>>
>> local fn MakeHierMenu(_ToolsMenu,parentMenuItem,¬
>>   itemString$,childMenuID)
>> title$ = "!"+chr$(childMenuID)+itemString$ + "/" + chr$(&1B)
>> menu parentMenuID,parentMenuItem,,title$
>> call InsertMenu(fn NEWMENU(childMenuID,""), -1)
>> end fn
>>
>> I want a sub menu I have 2 popup menus Pen Color and Pen Size
>> and I want to also have a Pen Color and Pen Size submenu in the  
>> Tools menu
>>
>> What do I need to change in MakeHierMenu to do this?
> ______________________________________________________________
>
> See the example in the FB5 Reference Manual under "MENU".
> That's always the first place you need to look.
> -Stu
> --
> To unsubscribe, send ANY message to: futurebasic-unsubscribe@...
>