flat assembler
Message board for the users of flat assembler.

Index > Windows > Fresh and Resources

Author
Thread Post new topic Reply to topic
drs



Joined: 20 Jan 2005
Posts: 17
Location: Southern California, USA
drs
Hi,

I noticed that executables from Fresh don't use DIALOGS from the resource section of the executable. How does Fresh handle these windows then? Are these windows done manually using CreateWindow(Ex) calls?

I noticed that Fresh uses a .FRM to describe the different forms an application will use but I do no understand how this translates over to the resource section of an executable, if it does at all?

Can someone explain how that works?

Thanks.
Post 23 Feb 2005, 22:22
View user's profile Send private message ICQ Number Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3502
Location: Bulgaria
JohnFound
Because of too limited features of resource dialogs, Fresh uses it's own libraries for creating forms (modal and modeless). The create information is stored in the code in the program, but maybe in the future it will be stored in resource section as RC_DATA resource or in data section. (actually I don't know whether it worths at all).
If you want to see exactly what contains .frm file, open it with some other than Fresh editor - for example FASMW. You will see something like:
Code:
;<ff
Window frmEditorOptions, 3, 0, 'TForm', 'Editor options', $6480000, $10001, 0, 212, 183, 460, 320, EditorOptionsProc;
Window NONE, 0, 1, 'SysListView32', 'ListView', $5001208C, $200, 1000, 0, 0, 128, 293, 0;
Window NONE, 1, 3, 'TForm', 'Form', $50010000, $10100, 1001, 128, 0, 324, 40, ThemesPanelWinProc;
Window NONE, 0, 0, 'STATIC', 'T&hemes:', $50000202, $0, 0, 4, 8, 40, 21, 0;
Window NONE, 0, 0, 'BUTTON', '&Save', $50010000, $0, 103, 238, 8, 40, 21, 0;
Window NONE, 0, 0, 'BUTTON', '&Load', $50010000, $0, 102, 282, 8, 40, 21, 0;
Window NONE, 2, 0, 'COMBOBOX', '', $50010002, $10000, 101, 48, 8, 184, 150, 0;
Window NONE, 3, 4, 'TForm', 'Form', $50010000, $10100, 0, 128, 253, 324, 40, 0;
Window NONE, 0, 0, 'BUTTON', 'OK', $50010001, $0, 1, 184, 8, 64, 25, 0;
Window NONE, 2, 0, 'BUTTON', 'Cancel', $50010000, $0, 2, 256, 8, 64, 25, 0;
;ff>
    


"Window" is macro, defined in "templates.inc". Check also: "templates.asm", "tform.*", "parents.*", "msgutils.asm" - all in "include/libs/"

Note, that in the moment I am working on new component engine, that will be a lot more powerfull (and I hope more compact) than the engine used in present versions. It uses streamed data for component descriptions and supports creating and initializing visual and non-visual components - windows, image lists, menus, data base components, etc.
For preview (very draft) of this new approach, you can read the article in Fresh Wiki: http://fresh.flatassembler.net/wiki/index.php?StreamGui
There is demo project as well.

Regards.
Post 24 Feb 2005, 07:23
View user's profile Send private message Visit poster's website 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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.