flat assembler
Message board for the users of flat assembler.
![]() Goto page 1, 2 Next |
Author |
|
revolution 13 Sep 2022, 11:03
You can download fasmw which has the asm source code for the GUI IDE.
|
|||
![]() |
|
AsmGuru62 13 Sep 2022, 14:45
User Interface is a very wide topic.
A simple dialog box with controls is a user interface --- FASM has a set of macro instructions to create dialogs. A frame window with icons on the left side and a set of tabs on the right is a user interface --- well, you have to code those. A frame window with a set of splitters, a toolbar, etc. is also user interface (Visual Studio like) --- you have to code those too. Are you interested in all of those? |
|||
![]() |
|
macomics 13 Sep 2022, 16:45
AsmGuru62 wrote: A simple dialog box with controls is a user interface Code: invoke MessageBoxA, HWND_DESKTOP, "My first user interface", "Hello world!", MB_OK or MB_ICONINFORMATION |
|||
![]() |
|
Overclick 13 Sep 2022, 17:42
High-level language programmer suppose to do the same things via winapi LOL
sultan alrefaei Look at examples in Fasm folder. |
|||
![]() |
|
sultan alrefaei 13 Sep 2022, 18:59
Thanks everyone for the reply..
I developed an interface through fasm and I used the correct functions to develop the interface, but there are parameters and things I want to know their meaning and why they are placed, so I decided to learn from scratch more clearly because I did not find a reference explaining all the parameters of the Windows user interface functions. I hope it is clear, and I want to develop advanced interfaces such as those like Visual Basic. I have sufficient experience in programming in general, but I want sources to clarify all functions and their parameters Thanks |
|||
![]() |
|
sultan alrefaei 13 Sep 2022, 19:06
Overclick wrote: High-level language programmer suppose to do the same things via winapi LOL winapi I did not find everything in it. There are things that I could not find in the basic references, and if they exist, they are not explained enough. |
|||
![]() |
|
sultan alrefaei 13 Sep 2022, 19:10
AsmGuru62 wrote: User Interface is a very wide topic. Interested in developing interfaces that contain buttons, menus and multiple windows |
|||
![]() |
|
sultan alrefaei 13 Sep 2022, 19:12
revolution wrote: You can download fasmw which has the asm source code for the GUI IDE. The link does not work |
|||
![]() |
|
sultan alrefaei 13 Sep 2022, 19:16
macomics wrote:
Thank you, but that's not what I'm looking for, I want a complete methodology for building advanced interfaces with multiple elements. Like the ones on Visual Basic. Thank you again |
|||
![]() |
|
macomics 13 Sep 2022, 19:27
Try ResourceView from the MSVS kit. Then it is called from resources very simply (via DialogBoxParam).
|
|||
![]() |
|
Overclick 13 Sep 2022, 20:09
You need some assembly IDE with Resource editor, RadAsm for example. Or separate editor even Visual. Then you include edited resources by
section '.rsrc' resource from 'yourResouces.res' data readable |
|||
![]() |
|
DimonSoft 13 Sep 2022, 20:23
Guys, since I gave up using dialog boxes long ago due to the quirks with fonts and font-relative sizing, may I ask you how in general do you build dialog-based interfaces with Per-Monitor High DPI support? I mean, it definitely should be possible, but I seem to be too lazy to figure out how to build things up together to ensure it looks properly everywhere. Arbitrary font properties, resizing controls at runtime based on current dialog size, adjusting it to monitor DPI, etc.
|
|||
![]() |
|
Overclick 13 Sep 2022, 20:24
Quote:
D2D1RenderTarget |
|||
![]() |
|
sultan alrefaei 13 Sep 2022, 20:50
Overclick wrote: You need some assembly IDE with Resource editor, RadAsm for example. Or separate editor even Visual. Then you include edited resources by The installation link for RadAsm is not working in GitHub |
|||
![]() |
|
FlierMateI 14 Sep 2022, 08:13
Is a typical Windows program with dialog box always look like this?
Code: GetModuleHandle LoadIcon LoadCursor RegisterClass,wc CreateWindowEx msg_loop: GetMessage TranslateMessage,msg DispatchMessage,msg jmp msg_loop (with or without dialog box resources) I am beginner to Windows dialog box and found myself must get used to the above. |
|||
![]() |
|
Overclick 14 Sep 2022, 09:44
Not, Dialog Box no need all of this. Simple DialogBox called by DialogBoxParam needs only few handles, proc name and ID from resources. The rest Windows doing itself, including message loop.
|
|||
![]() |
|
FlierMateI 14 Sep 2022, 11:54
Overclick wrote: Not, Dialog Box no need all of this. Simple DialogBox called by DialogBoxParam needs only few handles, proc name and ID from resources. The rest Windows doing itself, including message loop. Thanks for the useful information, Overclick. As a beginner, looks like I don't know how to differentiate a window and a dialog box in low-level programming. |
|||
![]() |
|
Furs 14 Sep 2022, 12:15
FlierMateI wrote:
To be honest most of this thing has nothing to do with asm, it's just the Windows API you need to be familiar with. You can pick any Windows API guides/books to understand it. Obviously it's large and not something you can write in a few sentences. |
|||
![]() |
|
FlierMateI 14 Sep 2022, 12:51
Furs wrote: It's a window with its own message loop (same with Message Box). That explains a lot about GUI in Windows. I appreciate your informative reply. Furs wrote: To be honest most of this thing has nothing to do with asm, it's just the Windows API you need to be familiar with. Since it is just Windows API, I think it will be faster to write in C++ than in Assembly, also I found most code examples from Microsoft website in Win32 API is C++. |
|||
![]() |
|
Goto page 1, 2 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.