delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/01/10/17:29:35

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
To: Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU>
Cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: windres and an icon in a dialog
References: <200001102159 DOT PAA22820 AT hp2 DOT xraylith DOT wisc DOT edu>
From: Sascha Ziemann <szi AT khs-ag DOT de>
Date: 10 Jan 2000 23:29:35 +0100
In-Reply-To: Mumit Khan's message of "Mon, 10 Jan 2000 15:59:04 -0600"
Message-ID: <m3ln5xd0hc.fsf@intra.do.khs-ag.de>
Lines: 40
User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.4
MIME-Version: 1.0

Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU>:

| I'll fix the incompatibility for the next release, but till then, you
| can do the following (works for MS compiler as well):
| 
|  ICON "ABOUT1", IDC_STATIC, 7, 7, 21, 20, 0
| 
| where the last 0 just "or"s 0 to the list of current styles. FYI, this
| is equivalent to:
| 
|  ICON "ABOUT1", IDC_STATIC, 7, 7, 21, 20, SS_ICON | WS_CHILD | WS_VISIBLE

Thank you.  Now windres compiles the resource file.  But the program
still does not work: the dialog does not contain any icon.  When I try
to open the executable created by gcc with a Windows icon editor
(AX-Icons 4.5) the program says, that my executable does not contain
any icons.  

I have defined the icon:

ABOUT1 ICON DISCARDABLE "icon5.ico"

And then I use it:

ABOUT_WINDOW DIALOG DISCARDABLE 32, 32, 180, 100
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION
FONT 8, "MS Sans Serif"
BEGIN
  DEFPUSHBUTTON  "Ok", IDOK, 66, 80, 50, 14
  ICON           "ABOUT1", IDC_STATIC, 7, 7, 32, 32, 0
  CTEXT          "text one", IDC_STATIC, 40, 12, 100, 8
  CTEXT          "text two", IDC_STATIC, 7, 52, 166, 8
END

But it is missing in the dialog.  The strings and the button are there
and windres does not report any errors.

Is the anything missing, that should have be done?

Sascha


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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