[futurebasic] Re: [FB] carbon pop-ups

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

From: George Beckman <gbeckman@...>
Date: Mon, 29 Apr 2002 06:26:09 -0700
>> In standard fb3 I used, SETITEM. For carbon I've changed to SETITEMTEXT but
>> it's nor showing the new text in the pop-up on screen.
>> 
>> Why doesn' t this work in carbon?
>> 
>> mHndlf&=FN installPop (118)
>> LONG IF mHndlf&
>> CALL SETmenuITEMtext(mHndlf&,1, std.sPsheet13$)
>> FN deletePop(mHndlf&)
>> END IF
> 
> 
> SetItem is merely the old name for SetMenuItemText; it makes no difference
> which you write in FB^3.
> 
> Are you sure you are getting the menu handle (more correctly known in Carbon
> as the MenuRef)?
> 
> 
> mHndlf&=FN installPop (118)
> LONG IF mHndlf&
> CALL SetMenuItemText(mHndlf&,1, std.sPsheet13$)
> xelse
> stop "installPop returned 0"
> END IF
> 
> Robert P.


Gang,

Bruce and Robert had a discussion about a month ago.

I have checked and I am getting a menu handle.

I am not getting any menu items here:

gStandardsMenu$(0,gFileNumber%)="No Standard"'4/30/01
FOR x=0 TO gAssignmentEntryStandard%(0,gFileNumber%)
localStr$=gStandardsMenu$(x,gFileNumber%)
IF localStr$="" THEN localStr$=" "
MENU _StandardMenu,x+1,_enable,localStr$

'CALL SETmenuITEMtext(StandardHndl&,x+1, localStr$)
NEXT x


The loop is running and LocalStr$ is correct.  As you can see, I have tried
Robert's suggestion to Bruce, SETmenuITEMtext, about a month ago. (now
remmed out)

Any help is appreciated
-- 
Best Wishes,

George
mailto: gbeckman@...
http://www.pggp.com