The MASM Forum Archive 2004 to 2012

General Forums => The Laboratory => Topic started by: donkey on February 06, 2005, 08:00:25 AM

Title: About Box
Post by: donkey on February 06, 2005, 08:00:25 AM
I was recently asked for the About Box code from TBPaint. Now,I had thought that I had posted it already but a quick perusal shows that I was mistaken. So, here it is for anyone that might want it or just like to take a look at it. It is fairly simple to follow and is general purpose enough to use in any application. Feel free to use it anyway you like...


[attachment deleted by admin]
Title: Re: About Box
Post by: Jibz on February 06, 2005, 09:37:15 AM
Nice work :U.

One little issue though -- if I press the down arrow on the scrollbar, the about dialog disappears, and the main program is locked (the button disappears, no reaction to trying to close it). Running Win2K.

Edit: I tried under Win98SE with the same result.
Title: Re: About Box
Post by: donkey on February 06, 2005, 10:25:29 AM
That is the weirdest thing I have ever seen. The scroll button just sends the program into an endless loop, sending WM_COMMAND over and over again for ever. I really hate flat scrollbars, they have the quirkiest, buggiest behavior I have ever seen, if I published a control that bad I would be ashamed...
Title: Re: About Box
Post by: donkey on February 06, 2005, 10:33:53 AM
Fixed it by ignoring the buttons, they seem to send a WM_COMMAND directly to the parent window with the same ID as the edit control they are attached to. A very annoying "feature" of FSBs I guess.
Title: Re: About Box
Post by: donkey on February 07, 2005, 12:02:56 PM
Hi All,

Another scrollbar problem. As pbrennick pointed out if you held down the scroll button past the end of the timer it would cause the about box to hang. Sometimes you have to wonder about why you choose a particular control. Anyway the solution was to release the mouse capture prior to sending the quit message using a WM_CANCELMODE.
Title: Re: About Box
Post by: pbrennick on February 08, 2005, 02:52:07 PM
Hi All,
The attached zip is a conversion of Donkey's About Box to masm32 syntax.  It is, as far as I can tell, a completed work, but I must report that it is a bit 'touchy' in terms of the contents of szVersion for some reason.  The current string in that declaration works, but be warned that some changes in this declaration will cause a crash when the email link is clicked.  I suspect that there is some problem in the code that builds the Subject field, but I was unable to make it work with any degree of success.

Paul


[attachment deleted by admin]
Title: Re: About Box
Post by: Relvinian on February 08, 2005, 04:20:56 PM
Paul,

Unless my eyes are mistaken, your attachment doesn't have the source. Just the resource files.

Relvinian
Title: Re: About Box
Post by: pbrennick on February 08, 2005, 06:04:06 PM
Relvinian,
The source is embedded in the batch file.

Paul