🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #37069

CDEF problems

#37069
From: Michael K O'Rourke
Date: Wed, 01 Feb 1989 18:16
34 lines
2169 bytes
HEEELLLLLLPPPPPP!!!!!!

I'm going insane here. And thus far apple has been no help whatsoever. I
posted a request for information about CDEFs here and on AppleLink a
couple weeks ago.  I got a response on AppleLink, even though it did
take a week, but it was a worthless answer.

Therefore, I did some more investigating and have now narrowed my request
to an easy answer.  I am working with CDEFs and hear is my findings so
far.  (My CDEF is a specialized one part PICT button).  If i give my
button a return code corresponding to an indicator > 129 or so, then
the Drag function in the CDEF gets called when I press on the button.
This is no problem cause i can do all my highlighting there. However, it
never sends the appropriate part code back to TrackControl. Thus, I don't
know if the mouse  was released in or out of the button; TrackControl
always gets a zero back.

If, on the other hand, I make the button a part, code <128 or so. Then
drag never gets called. However, it seems that Draw gets called when i
press the mouse inside the button.  Does this mean that I must do the
highlighting in the Draw function? (I don't want to use default
highlighting because one of the CDEF options is no highlighting.)

So is it necessary to do the highlighting in the Draw function? Is
it possible to get TrackControl to return the correct part code/indicator
code when i define the button as an indicator rather than a part?
Please give me a simplistic answer and DON'T refer me to IM 328-332. I
have reread thos pages over and over and still don't understand the
problem.  I also know that there is example code for the standard
button on AppleLink.  However, it is in assembly language and I don't
know assembly language. I am using C and Pascal.

Michael O'Rourke
Clemson University
Technical Details
Message-ID: <4280@hubcap.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!xanth!ukma!gatech!hubcap!mikeoro

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!xanth!ukma!gatech!hubcap!mikeoro
From: mikeoro@hubcap.UUCP (Michael K O'Rourke)
Newsgroups: comp.sys.mac,comp.sys.mac.programmer
Subject: CDEF problems
Keywords: CDEF
Message-ID: <4280@hubcap.UUCP>
Date: 1 Feb 89 18:16:22 GMT
Organization: Clemson University, Clemson, SC
Lines: 34