i made a bugy example of owner drawn check boxes ..

were is the bug ?



wm_init:

mov dword ,0

.
.
.
;-- ------------
wmdrawitem:

mov ebx, ;--- lParam points to DRAWITEMSTRUCT
call CreateCompatibleDC,
mov , eax
mov eax,
and eax, ODS_SELECTED
jne near .endif ; if no button selection go out !
;------ see button flag !
cmp dword ,0
jne .kk
movd ,1
jmp .putON
.kk
movd ,0
jmp .putOFF
.putON
;--put state on
call SelectObject, ,
jmp .endif
.else
.putOFF
;--put state off
call SelectObject, ,
.endif
mov ebx,
call BitBlt, , , ,,, , 0,0, SRCCOPY
call DeleteDC,

.out
Posted on 2003-03-31 13:03:48 by Nguga
mov ebx, [lparam] 

mov eax, [ebx+DRAWITEMSTRUCT.rcItem+RECT.right]
mov ecx, [ebx+DRAWITEMSTRUCT.rcItem+RECT.bottom]
sub eax, [ebx+DRAWITEMSTRUCT.rcItem+RECT.left]
sub ecx, [ebx+DRAWITEMSTRUCT.rcItem+RECT.top]
call BitBlt, [ebx+DRAWITEMSTRUCT.hDC], [ebx+DRAWITEMSTRUCT.rcItem+RECT.left], [ebx+DRAWITEMSTRUCT.rcItem+RECT.top], eax, ecx, [hDCmem], 0,0, SRCCOPY
Posted on 2003-03-31 23:32:37 by comrade
i ne znaio no i budo cmotrit icli rabotaiete bolchoi spaciva
vam!

marxism !
Posted on 2003-04-01 12:17:16 by Nguga
Aaaa, Nguga, a mi kaza che ne razbirash ot programirane. :/
Posted on 2003-04-03 04:46:14 by Ultrano
Hi , i post here the working version of owner drawn flag
buttons 2 states ON OFF example:






here the example with source code
Posted on 2003-04-04 08:30:55 by Nguga
i want to use the WM_DRAWITEM aproach to resolve the
task , i do not want to use a general bitmap as and the
draw text.

to Ultrano , i?m wating for your TUTORIALS !

i admire you , as a coder, us a person you
are a young boy .

lot to learn :)
Posted on 2003-04-04 08:35:49 by Nguga

to Ultrano , i?m wating for your TUTORIALS !
i admire you , as a coder, us a person you
are a young boy .
lot to learn


uhm, well, with the Lesson1 I think I gave out all the technology. ;)
it's really nothing much. As I wrote, learn Flash, and you'll get to understand all things about GUI and animation even better than me. I am currently very busy - I have almost finished the sequencer (only two features left to add), and I need to finish it. In the same time, I'm working on a stupid VB program, making a Perl site (10,000 lines approximately) that is linked with Flash in a seamless combination (sort of new tech for me), and the three national competitions tire me - I've written 50 pages of documentation so far, including snapshots and demo songs.... aww I've got to have some sleep now, I've drunk 5 coffees today :/

what can I teach you? I don't have any idea. The tech that I haven't revealed is tightly connected with Dreamer, and cannot be used at other places.
Posted on 2003-04-04 11:50:50 by Ultrano
ULTRANO

tutorial on how to build a radial knob :)

Posted on 2003-04-05 09:35:18 by Nguga
hey :) this is a a thing that is directly related to Dreamer tech.
But anyways, I'll give a hint. Download ReBirth2.01 demo. Or if you have the DR0.130, you can view it. See its resources. See ? nice and easy. The programming part of the drawing consists of no more than a hundred lines.
But it can take you one to thirty hours to draw a decent 3D knob, make its shadows, render it angle by angle, save to disk, clip, edit, combine, compress, include..... aww. The knobs in DR1.0->Musahi->big_knobs took me 40 hours, as I also edited them pixel by pixel, to improve the visibility and shadows! Not a very nice thing to cope with. Not to mention that only rendering the array of images takes one or two hours, and nothing goes well from the first time...

below is a plane with several of the latest knobs I created. These knobs took me 6 hours to make, and I have finished only 50% of the process - the post-processing, arrangement and zoom-in editing is to be done.
Posted on 2003-04-05 12:34:37 by Ultrano