flat assembler
Message board for the users of flat assembler.

Index > Windows > tab panels?

Author
Thread Post new topic Reply to topic
veach1



Joined: 16 Jul 2004
Posts: 165
veach1
The problem is that I`m confused about creating tab panels.

I would like NOT to use any external resource editors/compilers, but I can`t understand the whole picture of internal FASMW resource compiler. Is there any documentation (usage description) on it?

_________________
dream of mind creates a monster
Post 04 Oct 2004, 12:41
View user's profile Send private message Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo
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.
Post 04 Oct 2004, 12:57
View user's profile Send private message Yahoo Messenger Reply with quote
veach1



Joined: 16 Jul 2004
Posts: 165
veach1
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?
Post 04 Oct 2004, 13:15
View user's profile Send private message Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo
Have you looked at resource.inc file?
(Located in include/macro directory)
Post 04 Oct 2004, 13:19
View user's profile Send private message Yahoo Messenger Reply with quote
veach1



Joined: 16 Jul 2004
Posts: 165
veach1
Yes, but found them too complicated to dig in. Sad
Post 04 Oct 2004, 13:23
View user's profile Send private message Reply with quote
veach1



Joined: 16 Jul 2004
Posts: 165
veach1
ppl please, anybody, help me in creation and handling TABCONTROL.
Post 05 Oct 2004, 08:50
View user's profile Send private message Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo
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)
Post 05 Oct 2004, 13:01
View user's profile Send private message Yahoo Messenger Reply with quote
veach1



Joined: 16 Jul 2004
Posts: 165
veach1
Thank you! That will help!
Post 05 Oct 2004, 13:53
View user's profile Send private message Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo
This is an example to show:
-> How to create a simple tab control without resources
-> How to use exclusively local variables and labels


Description: Simple tab common control
Download
Filename: Tabbed.zip
Filesize: 4.88 KB
Downloaded: 229 Time(s)

Post 05 Oct 2004, 19:06
View user's profile Send private message Yahoo Messenger Reply with quote
veach1



Joined: 16 Jul 2004
Posts: 165
veach1
you are very kind person, thank you once again!
Post 06 Oct 2004, 06:54
View user's profile Send private message Reply with quote
veach1



Joined: 16 Jul 2004
Posts: 165
veach1
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. Crying or Very sad
In the fasmw.asm it is done by CreateWindowEx, but how?
Post 07 Oct 2004, 14:04
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.

Powered by rwasa.