News:

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

Image button demo.

Started by hutch--, August 08, 2011, 01:40:36 AM

Previous topic - Next topic

dedndave

works here, Yves

Hutch,
those are the CommonControl versions that i have
x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww_1382d70a
x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9
x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83
x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5705_x-ww_36cfed49

ToutEnMasm

Here is the source code
Added code to test version of dll

dedndave

i am learning that it doesn't always help to see the source   :lol

ToutEnMasm


Quote
i am learning that it doesn't always help to see the source   

The source code of the windows has been tested here a number of time.That is what I call learn something.
It is good,I keep it and I re-use it.
Many details (styles,extended styles,functions,proc ..) can change if you create your code at each time you need it.
It is what is missing in the masm32 package , some good code to made a good window at the fist time.
What i call a good code,is a code modify and  tested further times.
The question is how learn something when all is changed at each time ???

dedndave

i wasn't refering to the code so much, Yves
i was refereing to the use of French for function and variable names   :bg
i can only imagine how hard it must have been for you to learn the API
it's ok if full words are used, like "CreateWindow" - at least you can split that one up and use google translate   :P
but, i often use shortened words in function and variable names, like "MkBgImg" or something   :'(

Hutch has a tool that he has posted under the names "CodeGen" and "ProStart"
as you mentioned, it would be cool if it used external text files to build from
that way, you could modify them as time goes on and make improvements or get different window types, styles, and so on
i guess you really don't need a program for that - just start a collection

when i first started learning GUI programming, i used those programs, along side Iczelion's tutorials
they did help me learn a lot   :U

hutch--

Templating systems that are configurable are technically trivial to make but are a disaster for people who do not understand the code in detail. The two code generators in MASM32 are binary files to ensure that the written code cannot be messed up. The later scripting engine in QE is easily capable of producing complete working templates including the binary files like icons and toolbar bitmaps but I don't think many have bothered as it involves learning how to use the scripting engine language.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

dedndave

hmmmm - that sounds interesting
i may have to look into it   :U

vanjast

I've been messing around with that, but editing the template result in a big way.
Maybe it might be an idea to further advance the template with regard to the visual I/F...
- including the resource editor, icon/bmp editor for toolbar and app icons..

Just an idea
:8)

ToutEnMasm

Quote
The later scripting engine in QE is easily capable of producing complete working templates including the binary files like icons and toolbar bitmaps but I don't think many have bothered as it involves learning how to use the scripting engine language.
The more simple way is to copy the files from one folder to another.NO SCRIPT and the files in the folder can be easily modify if needed.

hutch--

Yves,

The script is much faster, names everything correctly and dumps it where you want.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

ToutEnMasm

Quote
The script is much faster, names everything correctly and dumps it where you want
In this case,a tool to made a script with  the files project in a directory could be useful.
I think it isn't too much hard to do and useful.