flat assembler
Message board for the users of flat assembler.

Index > Windows > Need your Help, to DialogBox Editor for FASM

Author
Thread Post new topic Reply to topic
oveja



Joined: 03 Mar 2004
Posts: 21
Location: Mexico
oveja
Confused Now, I'm make a Tiny DialogBox Editor, but need your help, I want make:

1- Solve a Bug --> The Coordinates (Left,Right, Top, Bottom) of every control and DialogBox no agree with Real Coordinates of Screen, I do'n know why.
2- Convert this program MDI to SDI
3- Improved this with more thinks for editing.
4- Add more controls.

This Code is yours, and I try make this code easy for your understanding
You can Download it with this Link
www.geocities.com/ppvision/editdlg.zip

Viva el Assembly!!!!


Description: DialogBox Editor
Download
Filename: editdlg.rar
Filesize: 14 KB
Downloaded: 82 Time(s)

Post 06 Apr 2006, 22:23
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2140
Location: Estonia
Madis731
First, wow! Thank you. I think others might appreciate it even more. Good work!

I've made it work with the newest FASM so others can "play along" Wink

1) For your first bug I know that there are different API calls to know the coordinates relative to screen and relative to parent. I don't know which they are, but I hope MSDN or someone on the boards can help out. Why do you need them anyway?

2) ...sorry I don't know what it means...

3) I think other ideas would be to make the labels and buttons editable - now you can only edit textbox, but I need to edit button and label text also. It would be fun to resize them Wink Then I might think about adding more stuff to it.

4) The same as 3

EDIT: Attachment removed, look in the Projects & Ideas section

_________________
My updated idol Very Happy http://www.agner.org/optimize/


Last edited by Madis731 on 08 Apr 2006, 21:40; edited 1 time in total
Post 07 Apr 2006, 07:46
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY
Nice work dude!
I was thinking about creating such project. (in fact, it was really a converter, not designer)
See: http://board.flatassembler.net/topic.php?t=4776

I think we could move this thread to "Projects and Ideas" and make this project get bigger with the help of all FASM users.
We could have some weekly snapshot or something to show the progress. Later it could be integrated in FasmW and Fresh by add a menu item to call the program.

What do you people think?
Post 07 Apr 2006, 17:47
View user's profile Send private message Reply with quote
oveja



Joined: 03 Mar 2004
Posts: 21
Location: Mexico
oveja
With Test and Error( A prueba y error), found that coordinate X relative to DialogBox is 1.5 to coordenate X relative of Screen, And the coordinate Y relative to DialogBox is 1.625 to coordenate Y of Screen, that is:


Coordenate_Dialog_X = (Coordenate_Screen_X)/ 1.5
Code:
proc coordenate_x, x
                        push    edx ecx
                        xor     edx,edx
                        mov     eax,[x]
                        shl     eax,1
                        mov     ecx,3
                        div     ecx
                        pop     ecx edx
                        ret
endp
    


Coordenate_Dialog_Y = (Coordenate_Screen_Y)/ 1.625
Code:
proc coordenate_y, y
                        push    edx ecx
                        xor     edx,edx
                        mov     eax,[y]
                        shl     eax,3
                        mov     ecx,0x0d
                        div     ecx
                        pop     ecx edx
                        ret
endp                     
    

Quote:
2) ...sorry I don't know what it means...


First, Thanks Madis731 for your contribution, I want means that my program MDI (Multiple Document Interface) convert it to SDI(Single Document Interface), that is, In MDI layout is easy programming MultiWindow, but I do'n know how to programming MultiWindow with SDI, someone know?

In this thread JohnFound wrote that MDI layout as better as SDI layout, and for me is better in behavior for design
http://board.flatassembler.net/topic.php?t=2537

Quote:
I think we could move this thread to "Projects and Ideas" and make this project get bigger with the help of all FASM users.

Ozzy You are right!


Description:
Download
Filename: editdlg2.7z
Filesize: 13.43 KB
Downloaded: 84 Time(s)

Post 07 Apr 2006, 20:00
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
Dialog units are not in pixels. Use GetDeviceCaps or MapDialogRect to convert dialog units into pixels, or vice versa.
Post 08 Apr 2006, 05:25
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
And GetDialogBaseUnits.
Post 08 Apr 2006, 05:26
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
Bueno trabajando, oveja.

Viva Mexico, Viva Colombia, Viva Shakira!
Post 08 Apr 2006, 05:28
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
oveja



Joined: 03 Mar 2004
Posts: 21
Location: Mexico
oveja
Thanks Comrade, this is that I looking for(Esto es lo que buscaba)

Viva Russia & Assembly Very Happy
Post 08 Apr 2006, 15:34
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
oveja
Check new Thread on Projects & Ideas! Wink in this place I continue with project "Tiny DialogBox Editor"

Good Bless you!! Laughing
Post 08 Apr 2006, 19:32
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
black_pig



Joined: 11 Nov 2008
Posts: 3
black_pig
Madis731 wrote:


2) ...sorry I don't know what it means...




view image:

The option on the left is the MDI. You'll notice that, in this mode, the application itself is made up of one main window and all the sub-windows are contained within it. Most recent apps allow you to customize this layout and dock the sub-windows to the edges of the application's main window.

The option on the right is the SDI. There is no containing window and, as a result, there is no background to the application itself. The windows just float around and can be moved independently, but there's nothing containing or connecting them. [/img][img][/img]


Description:
Filesize: 10.92 KB
Viewed: 1343 Time(s)

MDIvsSDI.gif


Post 11 Nov 2008, 21:25
View user's profile Send private message 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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.