🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #26701

HELP!

#26701
From: John "Tushie" Ogawa
Date: Fri, 08 May 1987 07:57
56 lines
2901 bytes
<<< 8'en thank you. Urp! >>>

Help! I'm *almost* done with my do-most-of-what-you-want-it-
to-do-except-one-thing desk accessory, except, I've run into a
problem. I use a Resource file, since the dialogs I use are fairly
involved. I created the .rsc file with Kuma-Resource. BUT, I found
that you can only have one Resource in memory at once (kinda dumb,
just name them and let you have lots I say). So, if I want to run
any application that uses a Resource file, then I have to use
rsrc_free() and give up my resource. It works fine that way, but
every time I want to use the desk accessory I have to load the .rsc
file in again! Anoying! So, I want to write my object tree into my
code instead of keeping a .rsc file. Larger, I know, but faster. The
problem here is that K-Resource does not have a code output option
(one of my only complaints, but a big one). So, not wanting to make
a huge dialog by hand, I am writing to ask if anyone has info on:
	- the structure (exact) of the .rsc files that
	  K-Resource puts out.
	- the structure of .rsc files in general (may not be
	  different from above).
	- any program to uncode a .rsc file
  I know that the coordinates in a .rsc file must be modified, I have
routines to do that. I just need to read the file and write a
program to translate it into C code.
  The faster I can solve this problem, the faster I get this stupid
thing out into the world.
  As an aside, writing this desk accessory has taught me a LOT about
GEM, the ST, and programming both.
  Ah, and just to tantilize (maybe) you, the features in the DA as
of this writing are:
	- set key click, bell on/off, double click rate
	- set screen colors to one of 3 combinations
	- shows free RAM
	- shows date
	- RS232 flush
	- coldboot
	- set date/time with minimal effort (I am lazy)
	- sets time from IKBD clock on re-boot if IKBD is
	  set to later than 1981, otherwise it asks you for
	  date and gets from file attributes first. Either
	  way it sets TOS clock.
	- set verify on/off
	- set seek rate
  That is probably what it will end up being. I am still pkaying with
the date setting, but everything else works. It is around 8K now,
plus 6K for the .rsc file.

AtDhVaAnNkCsE

John Ogawa

GEnie: TUSHIE
NET: ps136sag@sdcc13.ucsd.edu <or> ...ucbvax!sdcsvax!sdcc13!ps136sag

PLEASE SEND MAIL TO ADDRESS ABOVE!
Technical Details
Message-ID: <853@sdcc13.ucsd.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!esosun!ucsdhub!sdcsvax!sdcc6!sdcc13!hi2cah

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!esosun!ucsdhub!sdcsvax!sdcc6!sdcc13!hi2cah
From: hi2cah@sdcc13.ucsd.EDU (John "Tushie" Ogawa)
Newsgroups: comp.sys.atari.st
Subject: HELP!
Message-ID: <853@sdcc13.ucsd.EDU>
Date: Fri, 8-May-87 03:57:23 EDT
Article-I.D.: sdcc13.853
Posted: Fri May  8 03:57:23 1987
Date-Received: Sat, 9-May-87 18:09:41 EDT
Organization: University of California, San Diego
Lines: 56
Keywords: Resource files, Kuma, desk accessory, etc.