flat assembler
Message board for the users of flat assembler.

flat assembler > Projects and Ideas > External DialogBox Editor for FASM

Author
Thread Post new topic Reply to topic
oveja



Joined: 03 Mar 2004
Posts: 21
Location: Mexico
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!! Twisted Evil


Description:
Download
Filename: editdlg.rar
Filesize: 15.8 KB
Downloaded: 527 Time(s)

Post 08 Apr 2006, 19:25
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
oveja



Joined: 03 Mar 2004
Posts: 21
Location: Mexico
The next step is select control & can move control with mouse, but I'do know how to make it. someone have a idea? Confused
Post 09 Apr 2006, 15:31
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
Vasilev Vjacheslav



Joined: 11 Aug 2004
Posts: 392
GetCursorPos & MoveWindow?
Post 09 Apr 2006, 16:40
View user's profile Send private message Reply with quote
oveja



Joined: 03 Mar 2004
Posts: 21
Location: Mexico
Anyboddy know how to make this
[img]
http://www.geocities.com/ppvision/prop.gif
[/img]
Post 11 Apr 2006, 20:47
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
cod3b453



Joined: 25 Aug 2004
Posts: 619
Another way to move controls is:

ReleaseCapture
SendMessage [ControlHandle],WM_NCLBUTTONDOWN,HTCAPTION,0
Post 13 Apr 2006, 17:42
View user's profile Send private message Reply with quote
oveja



Joined: 03 Mar 2004
Posts: 21
Location: Mexico
Now, this contain more thinks!


Description: Editor de Cajas de Dialogo
Download
Filename: editdlg.zip
Filesize: 35.99 KB
Downloaded: 481 Time(s)

Post 07 Jul 2006, 18:11
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7108
Location: Slovakia
is this already in "usable" state?
Post 08 Sep 2006, 09:04
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2019, Tomasz Grysztar.

Powered by rwasa.