delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/17/15:15:14

From: "23yrold3yrold" <cbarry AT pangea DOT ca>
Newsgroups: comp.os.msdos.djgpp
References: <39c41012_4 AT spamkiller DOT newsfeeds DOT com> <969175865 DOT 827425 AT shelley DOT paradise DOT net DOT nz>
Subject: Re: Allegro GUI query
Date: Sun, 17 Sep 2000 14:02:05 -0500
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: spamkiller
Message-ID: <39c51495_4@spamkiller.newsfeeds.com>
X-Comments: This message was posted through Newsfeeds.com
X-Comments2: IMPORTANT: Newsfeeds.com does not condone, nor support, spam or any illegal or copyrighted postings.
X-Comments3: IMPORTANT: Under NO circumstances will postings containing illegal or copyrighted material through this service be tolerated!!
X-Report: Please report illegal or inappropriate use to <abuse AT newsfeeds DOT com> You may also use our online abuse reporting from: http://www.newsfeeds.com/abuseform.htm
X-Abuse-Info: Please be sure to forward a copy of ALL headers, INCLUDING the body (DO NOT SEND ATTACHMENTS)
Organization: Newsfeeds.com http://www.newsfeeds.com 73,000+ UNCENSORED Newsgroups.
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Edmund Horner" <ejrh AT paradise DOT net DOT nz> wrote in message
news:969175865 DOT 827425 AT shelley DOT paradise DOT net DOT nz...
> Yep, the problem is a _pain_, but it's obvious.
>
> In your DIALOG definition table, you copy the uninitialised value of Bmp
> into the d_icon_proc() record.  It's only later that Bmp gets set to what
> you want.  d_icon_proc() is still referring to the junk value it started
out
> with.
>
> Solution: Before you call do_dialog(), you need to have a line like (in
this
> case):
>
> the_dialog[5].dp = Bmp;
>
> I know how annoying it is, trust me!  But there's not really much you can
do
> about it without radically changing your program.
>
> Edmund.

Since posting, I also failed at putting bitmaps up. What you suggested fixed
all that.

You're right, it is annoying. But now I see how that's necessary, and I
probably wouldn't have thought of that for at least a week :) Thank you.


Chris


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019