flat assembler
Message board for the users of flat assembler.

Index > Windows > control resources

Author
Thread Post new topic Reply to topic
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 09 Jun 2006, 01:51
I need to define a control resource in my dialog box
I saw this piece of code in the fasm source code:
Code:
 dialogitem 'msctls_progress32', '' , ID_PROGRESS, 8, 6, 176, 12, WS_VISIBLE    


But what I need is to emulate this resource control code :
Code:
CONTROL   "OK",IDOK,"EllipPush",WS_GROUP | WS_TABSTOP, 73, 79, 32, 14    
[/code]
Post 09 Jun 2006, 01:51
View user's profile Send private message Reply with quote
zhak



Joined: 12 Apr 2005
Posts: 501
Location: Belarus
zhak 09 Jun 2006, 06:20
Why don't you use GORC or RC to create resources?
I always draw interface in RadASM, compile .rc file with RC.EXE, and add it to fasm source via section '.rsrc' readable resource from '<filename>.res'
IMHO, it's very convenient.
Post 09 Jun 2006, 06:20
View user's profile Send private message Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 09 Jun 2006, 08:18
zhak: I"d like to see if it (or what) can be done using standard fasm macros first.
Post 09 Jun 2006, 08:18
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 09 Jun 2006, 08:52
Perhaps:
Code:
dialogitem "EllipPush",'OK',IDOK,73,79,32,14,WS_GROUP+WS_TABSTOP    
Post 09 Jun 2006, 08:52
View user's profile Send private message Visit poster's website Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 09 Jun 2006, 09:12
Thanks Tomasz, after adding WS_VISIBLE, worked good! Smile
Post 09 Jun 2006, 09:12
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.