flat assembler
Message board for the users of flat assembler.
Index
> Windows > tab panels? |
Author |
|
pelaillo 04 Oct 2004, 12:57
There is no internal FASMW internal compiler.
Fasm is able to load a compiled .res file and include it in the final exe. The compiling of resources from the source file is fully provided through macros. (resource.inc) To change/extend the way it works, you can edit those macros. The best documentation is the examples you find here on board. |
|||
04 Oct 2004, 12:57 |
|
veach1 04 Oct 2004, 13:15
Examples doesn`t explain what happens and how those parts works. The biggest resource example is located in the FASMW.ASM, but what is what there?
|
|||
04 Oct 2004, 13:15 |
|
pelaillo 04 Oct 2004, 13:19
Have you looked at resource.inc file?
(Located in include/macro directory) |
|||
04 Oct 2004, 13:19 |
|
veach1 04 Oct 2004, 13:23
Yes, but found them too complicated to dig in.
|
|||
04 Oct 2004, 13:23 |
|
veach1 05 Oct 2004, 08:50
ppl please, anybody, help me in creation and handling TABCONTROL.
|
|||
05 Oct 2004, 08:50 |
|
pelaillo 05 Oct 2004, 13:01
Tabcontrol is a window that can be created by calling CreateWindow and giving the class name TABCONTROL.
Giving that this window class is defined on comctl32.dll, you will need to initialize it by calling InitCommonControlsEx at the beginning of the code. Resource templates does the same thing only that this is performed by Windows directly. Code: dialog tabbed_dialog,'Compile',64,64,192,242,WS_CAPTION+WS_POPUP+WS_SYSMENU+DS_MODALFRAME dialogitem 'SysTabControl32','',ID_MY_TAB,8,6,176,212,WS_VISIBLE dialogitem 'BUTTON','C&ancel',IDCANCEL,75,24,42,214,WS_VISIBLE+WS_TABSTOP+BS_PUSHBUTTON enddialog Former code will be translated into the binary resource template format used by Windows. The translation is performed by the dialog - dialogitem - enddialog macros. You will need then to insert tabs by sending messages to the created window. Fill a TC_ITEM structure and then send it using a TCM_INSERTITEM (to see it working, refer to fasmw source code in fmnew and fmopen) |
|||
05 Oct 2004, 13:01 |
|
veach1 05 Oct 2004, 13:53
Thank you! That will help!
|
|||
05 Oct 2004, 13:53 |
|
pelaillo 05 Oct 2004, 19:06
This is an example to show:
-> How to create a simple tab control without resources -> How to use exclusively local variables and labels
|
|||||||||||
05 Oct 2004, 19:06 |
|
veach1 06 Oct 2004, 06:54
you are very kind person, thank you once again!
|
|||
06 Oct 2004, 06:54 |
|
veach1 07 Oct 2004, 14:04
Err... another question.
How to add dialogs and controls into each tab? I`m trying to understand but nothing comes out, I just don`t get it. In the fasmw.asm it is done by CreateWindowEx, but how? |
|||
07 Oct 2004, 14:04 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.