I got the Delphi Icon I loaded for the project.
Myles.

> -----Original Message-----
> From: Chris Crowe [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, September 07, 1999 4:20 PM
> To:   Multiple recipients of list Delphi
> Subject:      [DUG]:  ** HUGE RES File problem **
> 
> Hi all,
> 
>   I have a rather WEIRD problem that I have tracked down to a .RES file.
> 
>   If any of you have a couple of minutes to try this I would appreciate it
> as it does fail for me and I would like to know what it does for you.
> 
>   1) Download the .RES file in question from (it is 2.5KB)
> 
>      http://www.adrock.com/Delphi/Problems/Res/addatetm.res
> 
>   2) Load up Delphi 2 or 3 or 4 or 5
>   3) Create a New Application
>   4) Change the Projects ICON, under Project-Options-Application, click
> the
> Load ICon and load ANY icon that you have. DO NOT USE THE DOWNLOADED
> VERSION.
>   5) Now goto Form1, and in the code you will see some lines like this
> 
>      var
>        Form1: TForm1;
> 
>       implementation
> 
>       {$R *.DFM}
> 
>   6) Add another line below the {$R *.DFM} line and add {$R ADDATETM.RES}
> so
> that you end up with
> 
>      var
>        Form1: TForm1;
> 
>       implementation
> 
>       {$R *.DFM}
>       {$R ADDATETM.RES}
> 
>   7) Save the project somewhere
>   8) Copy the downloaded ADDATETM.RES file to the project directory and
> run
> it.
> 
>   When the MainForm loads do you get the Delphi default project icon (I
> think it is from D2 or D3) or do you get the Icon that you used at step 4?
> 
>   9) If it does show you the wrong icon then change the line {$R
> ADDATETM.RES} to
> 
>      { $ R ADDATETM.RES}
> 
>      This will comment it out, and then run it again.
> 
>   Looking at the .RES File with Image Editor, and Microsoft Visual C++
> there
> are 5 Bitmap contained in there.
> 
>   TADROCKDATETIMEEDIT_BITMAP
>   TADROCKDATETIMEEDIT_ARROW_BITMAP
>   TADROCKDATETIMEEDIT_1ARROW95_BITMAP
>   TADROCKDATETIMEEDIT_DATE_BITMAP
>   TADROCKDATETIMEEDIT_ARROW95_BITMAP
> 
>   Can anyone explain to me what is going on here?, those bitmaps do not
> contain a copy of the Delphi (2 or 3) defualt project icon, so where is it
> coming from?
> 
>   Thanks for your time, and please let me know the results.
> 
>   Chris
> 
> --------------------------------------------------------------------------
> -
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to