RKM Example Program
6 messages in this thread
Can anyone tell me why the example program from the new RKM Libraries and
Devices at page 8, a simple demonstration of a screen and a window, comes
up with an orange screen title bar with no screen title, even though the
program's NewScreen structure calls for standard DetailPen and BlockPen and
has a valid string entered in the NewScreen.Title field? I've checked my
typing of the source code several times and can find no reason why this
should happen. Where should I look besides the NewScreen structure? I am
using Lattice 5.04 with the compiler switches suggested in the book. I
also have a 2630 card, but the program does the same thing compiled and run
under both 68030 and 68000. Thanks for any suggestions.
Darron
Darron,
It's just a hunch, but check how you're setting up the color constants. I
had a problem once that I traced to the constants compiling to the wrong
type. Check out the Compiler_Headers/intuition/screens.h file for the
proper types.
David
David,
Thanks for the suggestion; I'll check it out and let you know what
happens.
Darron
Darrin,
CBM set the DetailPen and BlockPen in the NewScreen struct to -1,
supposedly to get the default colors. Unfortunately, this only works for
windows, not screens. Change those two numbers (try 0 and 1, respectively)
and your in business.
– Dave
Dave,
I discovered that one cannot get default DetailPen and BlockPen values
for a screen by setting them to -1 in the NewScreen structure after getting
your last message. I suppose it shouldn't have taken me so long to figure
it out, but I had sorta figured that the RKM wouldn't lead me astray on
simple stuff like this. I guess it's just further proof that documentation
is _never_ fully accurate!
Thanks again for your interest and help.
Darron
Actually I was rather surprised at the error. Given the bit in the new RKM
intro about how all the examples had been compiled in Lattice C, I guess I
just assumed they had attempted to run them as well 🙂 Kind of shakes you
when the first example doesn't work. Still, the new RKM is a definite
improvement over the old version.
– Dave