Article View: comp.os.ms-windows.programmer.misc
Article #1753Re: Bitmaps on Buttons wish BC++
From: Steven J. Loyola
Date: Tue, 22 Dec 1992 17:37
Date: Tue, 22 Dec 1992 17:37
31 lines
1661 bytes
1661 bytes
In article <1h76k1INNflb@ceres.kingston.ac.uk> ee_d270@ceres.kingston.ac.uk (Richie Poo's) writes:
>
>Hi.
>
>I am trying to put pictures on buttons in dialog boxes will the
>resource workshop supplied with BCC++.
>
>Does anyone know how to do this as I cant get it to work.
>
>Thanks a lot
>
>ee_d270@king.ac.uk
>
First, look in the file BWCCAPI.RW (it should be in your DOC subdirectory). It
and the other .RW files can be helpful sometimes. In general, you need to:
1) define the button class as "BorBtn" (ctrl-dblclick to get this dlg box)
2) create 3 bitmaps for each button (copy & paste helps here)
Button Control Id + 1000: Normal VGA image
" + 3000: Pressed VGA image
" + 5000: Focused VGA image
(add 1000 to each for EGA)
Your bitmaps should include the frame and shadow for each button (use the
Resource Workshop on itself to see how Borland makes theirs.
I may be forgetting some details, so check those .RW files. Also, I can't
overemphasize how helpful it can be to use the Resource Workshop to look at the
resources in an .exe file.
Hope this helps,
Steve Loyola
Technical Details
Message-ID:
<1h7jnvINNk37@girtab.usc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!usc!chaph.usc.edu!girtab.usc.edu!not-for-mailReferences:
<1h76k1INNflb@ceres.kingston.ac.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!usc!chaph.usc.edu!girtab.usc.edu!not-for-mail From: sloyola@girtab.usc.edu (Steven J. Loyola) Newsgroups: comp.os.ms-windows.programmer.misc Subject: Re: Bitmaps on Buttons wish BC++ Date: 22 Dec 1992 09:37:03 -0800 Organization: University of Southern California, Los Angeles, CA Lines: 31 Distribution: world Message-ID: <1h7jnvINNk37@girtab.usc.edu> References: <1h76k1INNflb@ceres.kingston.ac.uk> NNTP-Posting-Host: girtab.usc.edu