flat assembler
Message board for the users of flat assembler.
Index
> Projects and Ideas > External DialogBox Editor for FASM |
Author |
|
oveja 08 Apr 2006, 19:25
Now, This program contens a GRID for more control on editing
Code: ; ,-------------------------------------------------. ; | Dibuja la Malla de la Plantilla (Template GRID) | ; '-------------------------------------------------' proc dibuja_malla_3bits locals .x dd 0 .y dd 0 endl ; Limpia la pantalla (Clean) invoke SelectObject,[memdc],[obj_pincel_fondo] invoke PatBlt,[memdc],0,0,[max_x],[max_y],PATCOPY ; Inicializa contadores (Start counters) mov [.x],0 mov [.y],0 ; Captura el pincel (Get Pencil) invoke SelectObject,[memdc],[obj_pincel_malla] ; Dibuja las lineas (Paint Rows) .ciclo_lineas: invoke MoveToEx,[memdc],[.x],0,NULL invoke LineTo,[memdc],[.x],[max_y] add [.x],8 mov eax,[max_x] cmp eax,[.x] ja .ciclo_lineas ; Dibuja las columnas (Paint Columns) .ciclo_columnas: invoke MoveToEx,[memdc],0,[.y],NULL invoke LineTo,[memdc],[max_x],[.y] add [.y],8 mov eax,[max_y] cmp eax,[.y] ja .ciclo_columnas ret endp for fit to grid the program uses this instruccion: Code: xor edx,edx mov eax,[lParam] mov dx,ax ;Cursor X shr eax,16 ;Cursor Y and edx,0xfff8 and eax,0xfff8 mov [.cur_x],edx mov [.cur_y],eax ; Vuelve a pintar la malla (Again paint Grid) call dibuja_malla_3bits invoke SelectObject,[memdc],[obj_pincel_cursor] ; Dibuja marcador de cursor invoke MoveToEx,[memdc],[.cur_x],0,NULL invoke LineTo,[memdc],[.cur_x],[max_y] invoke MoveToEx,[memdc],0,[.cur_y],NULL invoke LineTo,[memdc],[max_x],[.cur_y] invoke InvalidateRect,[hWnd],0,TRUE Viva Assembly!!
|
|||||||||||
08 Apr 2006, 19:25 |
|
oveja 09 Apr 2006, 15:31
The next step is select control & can move control with mouse, but I'do know how to make it. someone have a idea?
|
|||
09 Apr 2006, 15:31 |
|
Vasilev Vjacheslav 09 Apr 2006, 16:40
GetCursorPos & MoveWindow?
|
|||
09 Apr 2006, 16:40 |
|
oveja 11 Apr 2006, 20:47
|
|||
11 Apr 2006, 20:47 |
|
cod3b453 13 Apr 2006, 17:42
Another way to move controls is:
ReleaseCapture SendMessage [ControlHandle],WM_NCLBUTTONDOWN,HTCAPTION,0 |
|||
13 Apr 2006, 17:42 |
|
oveja 07 Jul 2006, 18:11
Now, this contain more thinks!
|
|||||||||||
07 Jul 2006, 18:11 |
|
vid 08 Sep 2006, 09:04
is this already in "usable" state?
|
|||
08 Sep 2006, 09:04 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.