delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/02/18:52:34

From: "DeHackEd" <notgiven AT out DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <19990302005337 DOT 13611 DOT 00002287 AT ng-fx1 DOT aol DOT com>
Subject: Re: dat file help :(
Lines: 43
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.0810.800
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800
Message-ID: <5c_C2.2353$j4.158@cabot.ops.attcanada.net>
Date: Tue, 02 Mar 1999 23:08:49 GMT
NNTP-Posting-Host: 142.194.222.181
X-Trace: cabot.ops.attcanada.net 920416129 142.194.222.181 (Tue, 02 Mar 1999 23:08:49 GMT)
NNTP-Posting-Date: Tue, 02 Mar 1999 23:08:49 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I don't know if this is typing error, but look at this...


>DIALOG drawingtools_dialog[] =
>{

Did you count this when setting your dialog? I hope not...
> /*(dialog proc)  (x) (y) (w) (h) (fg) (bg) (key) (flags) (d1) (d2) (dp)*/

This is dialog[0]
> {d_clear_proc,    0,  0,  1024,   768  , 15, 15,  0,      0,   0,   0,    0 },

This is dialog[1]
> {d_icon_proc,    2,  2,  16, 16,  0,   0,    0,    0,      0,   0,   NULL },

THIS is dialog[2]
> {NULL}

>};
>
>void drawscrn()
>{
> DATAFILE *dat;
>
>   dat = load_datafile("tools.dat");
>    if (!dat) {
>    /* report error! */
>     return;
>     }
>     scrbmp = (BITMAP *)dat[arrow].dat;

Which offset is 2 as shown on the next line?
>     drawingtools_dialog[2].dp=scrbmp;

>    /* unload_datafile(dat);*/ - disabled looking to see if bitmap was loaded
>}

I think this could be a source of problem. I don't do much with dialogs myself,
so this is the only major problem I can find.




- Raw text -


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