[futurebasic] Re: Problem with SubMenu Insertion (Solved)

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2001 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Fri, 30 Mar 2001 05:29:09 -0500 (EST)
>Robert Covington wrote:
>
>> I am trying to insert a submenu in a non-resource menu, with the below. But
>> I will be darned if I can get it to show up in actual use, unlike my other
>> submenu's do using the exact same approach . Any ideas how to fix it?
>>
>> ID has been changed as a test here and there, still no showing up of the
>> submenu once built.
>>
>> Thanks,
>>
>> Robert Covington
>>
>> MENU 4,0, _enable,    "Frame"
>> //
>> MENU 4,1, 100,     "Ratio/"+ CHR$(&1B)
>> <snip of other items below>
>>
>> CALL INSERTMENU(FN NEWMENU(100,""), -1)
>>
>> MENU 100,1, _enable,   "1 : 1"
>> MENU 100,2, _enable,   "2 : 3"
>> MENU 100,3, _enable,   "2 : 4"
>> MENU 100,4, _enable,    "3 : 4"
>> MENU 100,5, _enable,    "3 : 5"
>> MENU 100,6, _enable,    "4 : 5"
>> MENU 100,7, _enable,   "Custom..."
>> MENU 100,8, _enable,   "-"
>> MENU 100,9, _CheckMark,"Natural"
>>
>>
>
>Your code works here on my machine.
>If you are very low on memory, perhaps the NewMenu call could fail.

>Cheers
>
>Alain


Joe,

Alain,

I found the problem. (great night, eh?)

When my app starts up, it checks the prefs and sorts the checkmarks for the
items in Menu 4 according to the selected colors below the submenu. Problem
is, I was using DEF CheckOneItem, and that wiped out the submenu, at least
in the popup sense.


So, I don't know if that is a bug with Def CheckOneItem in a menu with a
submenu, or if this is a predictable natural result of combining
incompatible processes.

Anyway, that is the problem. Took that DEF CHECKONEITEM thing out of there
as a test, and there was that submenu all rationed as one would expect.

Might be a good note for the FB^3 Reference manual.

Robert