[futurebasic] Re: [FB] Ext menu name

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

From: Bernie Wylde <bernie@...>
Date: Tue, 11 Dec 2001 20:18:28 +0000
Alain replied:

> menu items are numbered from 1, it seems to me that you want to
> retrieve the menu title, try this:
> 
> gMenuName$ = menuH..menuData$

Thanks Alain, that works a treat.


Now, if I want to change the menu title?

I've tried the following but it changes the rsrc id to 32 and leaves the
title unchanged:

menuH = FN GET1INDRESOURCE (_"MENU",m)
attrs% = FN GetResAttrs (menuH)
GETRESINFO (menuH,rsrcnum%,rsrctype&,rsrcname$)
menuH..menuData$ = gMenuName$
SETRESINFO (menuH,attrs%,rsrcname$)

Cheers
Bernie