🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.mac.oop.macapp3
1 messages
1 total messages Started by Victor Consulting, Ken Victor,PA... Thu, 31 Dec 1992 02:12
Re2: TPopup not drawing proper
#67
Author: Victor Consulting, Ken Victor,PA...
Date: Thu, 31 Dec 1992 02:12
69 lines
2894 bytes
here's a copy of the response i got from matt clark (thank you) and my response
to him.
 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Item    6800549                         29-Dec-92        09:18PST
 
From:   D3423                           MapPower, Victor Siegle,PRT
 
To:     KVICTOR                         Victor Consulting, Ken Victor,PAS
 
------------------------------------------------------------------------------
 
Sub:    Re: TPopup not drawing properl
 
I  have had this problem in the past.  I remember it beling related to not
having the Popup 'MENU' resource number listed under the 'MBAR' resource.
Here's a snippet from an application of ours.
 
//  file: App.h
#define mPreferences   28    //Preferences
#define mHlpFontName   1000  //help font name
#define mHlpFontSize   1001  //help font size
 
//  file: MApp.r
resource 'MBAR' (kMBarHierarchical, "kMBarHierarchical")) {
   { //pull-right menus
     mPreferences;
     //popups
     mHlpFontName; mHlpFontSize;       //   LIST ALL POPUPS USED HERE
   }
};
 
Also, don't forget to make the MenuID equal to the menu resource number
(modifiable using ResEdit).
 
Good luck.
 
Matt Clark, MapPower, AppleLink:D3423
 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Item    0598836                         30-Dec-92        18:04PST
 
From:   KVICTOR                         Victor Consulting, Ken Victor,PAS
 
To:     D3423                           MapPower, Victor Siegle,PRT
 
------------------------------------------------------------------------------
 
Sub:    Re2: TPopup not drawing proper
 
Matt,
 
thanx for your link re: popups not drawing properly.  it fixed my problem!!!
 
The real problem was that my popups had a menuID and resource number <
mLastMenu.  When I increased this to 1000+ it solved my problem.
 
BTW, in MacAPP 2, popups needed to be in the kMBarNotDisplayed MBAR resource
and NOT in the kMBarHierarchical resource.  If they were, you would get
unexplained crashes when dismissing a dialog that had popups.  I haven't looked
at the MacApp 3 code to know if this is still the case.  But, they seem to work
properly in kMBarNotDisplayed.  (They also seemed to work in kMBarHierarchical
as in your example, but i personally feel more comfortable with them in
kMBarNotDisplayed).
 
Thanx again,
Ken Victor
 
 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads