News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

I like emoticons! Update.

Started by Bill Cravener, July 28, 2008, 04:10:11 PM

Previous topic - Next topic

Bill Cravener

UPDATE 08/22/08: I was asked how one could round the corners of the custom window in my example below. I have added the code required and commented the change.

Those of you who have read my posts here on the board may have noticed that I like using emoticons. I visit a half dozen or so message boards on a daily bases and find that most board default emoticons are lacking emotion. I'm fortunate enough that I have my own website where I can store emoticons, smilies, pictures and such. Now with this little utility I wrote I can easily use my own graphics by using the board's img tags and simply clicking on the url link of the graphic I want to use to express myself.

PasteIt.asm shows how you can:

(1) Create a simple custom bitmap window with rounded corners.
(2) How to drag the custom bitmap window.
(3) Create a simple bitmap exit button.
(4) Create a simple double click listbox.
(5) Create a window procedure for the listbox.
(6) Read in a list of items from a text file.
(7) Parse all items read from the text file.
(8) Fill the listbox with all parsed items.
(9) Copy clicked on item to Windows clipboard.

I have a link to this little utility in my quick links bar and with one click it loads. I then double click on the url emoticon link I wish to use then click on the boards img tag right click between the start and end img tags and paste the link between them. Quick and simple!

Anyway, I thought others might find it interesting.


[attachment deleted by admin]
My MASM32 Examples.

"Prejudice does not arise from low intelligence it arises from conservative ideals to which people of low intelligence are drawn." ~ Isaidthat

hutch--

Bill,

I wondered where you were getting them from, some of them look great and they are cheeky enugh for general use.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Bill Cravener

Hi Steve,

Yes there are lots of free emoticons out there on the web and I'm slowly collecting a good number of them. I tend to collect those I find the most, well, emotional!

I know on my family message board the emoticons are 15x15 where as most of the ones I have collected are 20x20 and I don't know if the board software handles that size or not. I've never bothered to investigate as to rather phpbb supports that size. I know the 20x20's tend to space the lines of text farther apart then the 15x15's do.
My MASM32 Examples.

"Prejudice does not arise from low intelligence it arises from conservative ideals to which people of low intelligence are drawn." ~ Isaidthat

shankle

Hi CS,
Incredimail has tons of emoticons that you might want to look at.
JPS
The greatest crime in my country is our Congress

Bill Cravener

Thanks shankle, I'll have a look see.  :bg









My MASM32 Examples.

"Prejudice does not arise from low intelligence it arises from conservative ideals to which people of low intelligence are drawn." ~ Isaidthat

shankle

Hi CS,
You would probably howl for a week if you could see me trying to get the nat off of my screen.
I thought it was on the outside and then I realized it must be on the inside.
Then I realized it must be from you. Clever.....
JPS
The greatest crime in my country is our Congress

Bill Cravener

My MASM32 Examples.

"Prejudice does not arise from low intelligence it arises from conservative ideals to which people of low intelligence are drawn." ~ Isaidthat

Bill Cravener

I was asked how one could round the corners of the custom window in my example above. I have added the code required and commented the change.
My MASM32 Examples.

"Prejudice does not arise from low intelligence it arises from conservative ideals to which people of low intelligence are drawn." ~ Isaidthat

hutch--

Bill,

I just downloaded the example and ran it. Looks great.  :thumbu
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Bill Cravener

Thanks buddy, it's fun making these little gizmos. Wish I had more time to play! :bg
My MASM32 Examples.

"Prejudice does not arise from low intelligence it arises from conservative ideals to which people of low intelligence are drawn." ~ Isaidthat

hutch--

I have been playing with a fully skined window using the non client message and I have it almost working properly. Its a POPUP window that draws its own title bar, status bar and side borders and is sizeable, maximise and minimise etc ...

I will post it shortly and by using 1 pixel wide bitmaps with LoadImage, you can keep the size down as well.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

hutch--

Bill,

There is something wrong with this code, I can actually understand it.  :P Not only do I use you fade technique, but I will shortly have a play with this one as well.

Thanks for posting it.  :U
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Bill Cravener

Quote from: hutch-- on August 22, 2008, 03:03:47 PM
I have been playing with a fully skined window using the non client message and I have it almost working properly. Its a POPUP window that draws its own title bar, status bar and side borders and is sizeable, maximise and minimise etc ...

I will post it shortly and by using 1 pixel wide bitmaps with LoadImage, you can keep the size down as well.

Please do Steve, the thing I enjoy the most when coming here to the board is when someone posts some code that I can read over. You know your a bit geeky (I'm speaking of myself here) when you enjoy reading assembly code as much as I do.
My MASM32 Examples.

"Prejudice does not arise from low intelligence it arises from conservative ideals to which people of low intelligence are drawn." ~ Isaidthat

Bill Cravener

Quote from: hutch-- on August 23, 2008, 07:10:52 AM
Bill,

There is something wrong with this code, I can actually understand it.  :P Not only do I use you fade technique, but I will shortly have a play with this one as well.

Thanks for posting it.  :U

Your welcome Steve, I got a giggle out of your comment above.   Its a habit of mine to lay out my source code in an easily readable orderly fashion. I have a utility I author and sale that contains over 6500 lines of assembly source code. If I wasn't neat about my programming style I'd get completely lost when I need to correct or change something.

I have some over examples I'll get around to posting when I can take a little time to clean them up a bit. I need to fix a couple of my examples you include in your masm32 package also. The volume example and the registry example do not work in Vista. Just haven't had the free time to fix them.
My MASM32 Examples.

"Prejudice does not arise from low intelligence it arises from conservative ideals to which people of low intelligence are drawn." ~ Isaidthat

hutch--

Bill,

Here is the new "skins" example I have been playing with, it uses 3 1 pixel wide bitmaps loaded with LoadImage to make the top and botom strips and the two side strips. I wanted it to be free of the standard sizing border so I made it a POPUP window and trapped the WM_NCHITTEST message to return the valus to do the sizing off the displayed border.

It is still a bit rough around the edges, the top right system buttons are a bit flickery on fast resizing but most of it is doing what I had in mind.

[attachment deleted by admin]
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php