🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.atari16
Article #1059

RCS problems with icons, bit images.

#1059
From: TPC862
Date: Mon, 02 Jun 1986 21:54
47 lines
2450 bytes
OPTIONS: NOACK    LOG    SHORT     NOTEBOOK ALL




Date: 2 June 1986, 16:53:50 EST
From: Ton van Overbeek          +31 1719 83041       TPC862   at ESTEC
To:   INFO-ATARI16 at SU-SCORE.ARPA
Subj: RCS problems with icons, bit images.

hmm@unido.bitnet writes:
> Did you ever try to incorporate multiple icons in your resource
> file using RCS  ?  It screws up
> the resource file completeley, and you have to remove the complete
> object tree which contains these icons.
>
>   Hans-Martin Mosner (hmm@unido.uucp, hmm@unido.bitnet)
>   University of Dortmund

I found the following when trying to make a dialogue box with the Resource
Construction Set. The dialog box included both text and an image (bitblk).
Sometimes it worked, sometimes three boms appeared when trying to open
the dialog box (that happened both in the RCS and in the apllication using
the resource). It turned out that the problem is the generation of the
.RSC file by the RCS. First the resource header (as defined in one of
the header files) is generated. Then all the strings used in menu's,
TEDINFO's, alertboxes, etc. After that follow the bit images of the
images and the icons.

These images have to start on a word boundary ||||||||||||

When the total number of bytes in all the strings (including the ending
nulls) is odd you will have a problem.

The remedy is simple. Construct your resource. Save it. Load it again.
Try to open something with an image or icon in it. If boms occur, change
one of the strings (doesn't matter which one) by adding or deleting
one character (a space probably). And, magic, it works.

Ton van Overbeek
European Space Research and Technology Centre (ESTEC)
Control Systems Section
P.O.Box 299
2200 AG Noordwijk, The Netherlands.
Phone: +31 1719 83041
Email: TPC862%ESTEC.BITNET@WISCVM.WISC.EDU  (ARPA)
       TPC862@ESTEC                         (EARN/BITNET)
Technical Details
Message-ID: <8606021501.AA12141@ucbvax.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!lll-crg!nike!cad!ucbvax!ESTEC.BITNET!TPC862

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!lll-crg!nike!cad!ucbvax!ESTEC.BITNET!TPC862
From: TPC862@ESTEC.BITNET
Newsgroups: net.micro.atari16
Subject: RCS problems with icons, bit images.
Message-ID: <8606021501.AA12141@ucbvax.Berkeley.EDU>
Date: Mon, 2-Jun-86 17:54:00 EDT
Article-I.D.: ucbvax.8606021501.AA12141
Posted: Mon Jun  2 17:54:00 1986
Date-Received: Wed, 4-Jun-86 07:25:15 EDT
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The ARPA Internet
Lines: 47