1. Color Cursors
- Posted by Jason Mirwald <mirwalds at SWBELL.NET> Sep 07, 2000
- 632 views
------=_NextPart_000_0095_01C018DD.4B1E7460 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I struggled in vain too for awhile before I stumbled on a solution for a = color cursor. I converted a color bitmap I wanted to use to an Icon file, and used = LoadImage(). I have an include file that will convert 16-color, 256-color and 32-bit = color bitmaps to Icon files if you want. It would not be hard to modify = it to produce cursor files (that's what I read anyway). Jason ------=_NextPart_000_0095_01C018DD.4B1E7460 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>I struggled in vain too for awhile = before I=20 stumbled on a solution for a color cursor.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>I converted a color bitmap I wanted to = use to an=20 Icon file, and used LoadImage().</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>I have an include file that will = convert 16-color,=20 256-color and 32-bit color bitmaps to Icon files if you want. It would = not be=20 hard to modify it to produce cursor files (that's what I read=20 anyway).</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Jason</FONT></DIV> ------=_NextPart_000_0095_01C018DD.4B1E7460--
2. Re: Color Cursors
- Posted by chrissy <tubby.toast at NTLWORLD.COM> Sep 07, 2000
- 534 views
- Last edited Sep 08, 2000
I'd like to see this at some point. I like to distribute my executables with the bitmaps and wave files strapped on to the end (because it's tidier and I don't want people messing with them). I don't know how to do this for a cursor file so I'd like to be able to load it from a bitmap instead. chris. ----- Original Message ----- From: Jason Mirwald <mirwalds at SWBELL.NET> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Thursday, September 07, 2000 9:07 PM Subject: Color Cursors I struggled in vain too for awhile before I stumbled on a solution for a color cursor. I converted a color bitmap I wanted to use to an Icon file, and used LoadImage(). I have an include file that will convert 16-color, 256-color and 32-bit color bitmaps to Icon files if you want. It would not be hard to modify it to produce cursor files (that's what I read anyway). Jason
3. Re: Color Cursors
- Posted by Derek Parnell <dparnell at BIGPOND.NET.AU> Sep 08, 2000
- 571 views
Look at the XPM support in Win32lib or the Eu contributions/archive. ----- Original Message ----- From: "chrissy" <tubby.toast at NTLWORLD.COM> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Friday, September 08, 2000 8:02 AM Subject: Re: Color Cursors > I'd like to see this at some point. I like to distribute my executables > with the bitmaps and wave files strapped on to the end (because it's tidier > and I don't want people messing with them). I don't know how to do this for > a cursor file so I'd like to be able to load it from a bitmap instead. > > chris. > ----- Original Message ----- > From: Jason Mirwald <mirwalds at SWBELL.NET> > To: <EUPHORIA at LISTSERV.MUOHIO.EDU> > Sent: Thursday, September 07, 2000 9:07 PM > Subject: Color Cursors > > > I struggled in vain too for awhile before I stumbled on a solution for a > color cursor. > I converted a color bitmap I wanted to use to an Icon file, and used > LoadImage(). > > I have an include file that will convert 16-color, 256-color and 32-bit > color bitmaps to Icon files if you want. It would not be hard to modify it > to produce cursor files (that's what I read anyway). > > Jason
4. Re: Color Cursors
- Posted by chrissy <tubby.toast at NTLWORLD.COM> Sep 07, 2000
- 639 views
- Last edited Sep 08, 2000
Derek Parnell wrote: > The "A" version is for ASCII and the "W" is for Unicode (Wide-characters). Thankyou. If I just use the ASCII version, will this work all the time? > Look at the XPM support in Win32lib or the Eu contributions/archive. Sorry, I haven't made myself clear here. I don't need XPMs. I take all the bitmaps in my program, concatenate them (I experimented with compressing them as well but it was too slow to load) and tack them on the end of my executable and I load them, using code ripped straight from loadBitmapFromFile2() in win32lib, by poking them to memory. I do the same with wave files. However, I don't know how to load a cursor file in this way so I'd rather do it from a bitmap if possible. It's not critically important though. chris.
5. Re: Color Cursors
- Posted by Bernie <xotron at PCOM.NET> Sep 07, 2000
- 560 views
On Thu, 7 Sep 2000 22:46:47 +0100, chrissy <tubby.toast at NTLWORLD.COM> wrote: Chrissy: Any windows after win95 that contains a parameter that is a STRING will have a "A" ASCII or "W" UNICODE version of the function NAME. The difference is that the ASCII uses 8 bit characters and UNICODE code uses 16 bit characters. UNICODE was added so that international language codes could be passed to windows. There also functions in windows to CONVERT back and forth between ASCII and UNICODE. There are some functions that have the same NAME except one function ends Ex in the function NAME. This stands for EXTRA parameters. If you compare these functions you will see that the Ex contains extra parameters. Bernie >Derek Parnell wrote: > >> The "A" version is for ASCII and the "W" is for Unicode (Wide- characters). > >Thankyou. If I just use the ASCII version, will this work all the time? > >> Look at the XPM support in Win32lib or the Eu contributions/archive. >Sorry, I haven't made myself clear here. I don't need XPMs. I take all the >bitmaps in my program, concatenate them (I experimented with compressing >them as well but it was too slow to load) and tack them on the end of my >executable and I load them, using code ripped straight from >loadBitmapFromFile2() in win32lib, by poking them to memory. I do the same >with wave files. However, I don't know how to load a cursor file in this >way so I'd rather do it from a bitmap if possible. It's not critically >important though. > >chris.
6. Re: Color Cursors
- Posted by chrissy <tubby.toast at NTLWORLD.COM> Sep 08, 2000
- 553 views
Oh right, that's clear now. Thanks! chris. > Chrissy: > > Any windows after win95 that contains a parameter that is a STRING > > will have a "A" ASCII or "W" UNICODE version of the function NAME. > > The difference is that the ASCII uses 8 bit characters and > > UNICODE code uses 16 bit characters. > > UNICODE was added so that international language codes could be passed > > to windows. There also functions in windows to CONVERT back and forth > > between ASCII and UNICODE. > > There are some functions that have the same NAME except one function > > ends Ex in the function NAME. This stands for EXTRA parameters. > > If you compare these functions you will see that the Ex contains > > extra parameters. > > Bernie