flat assembler
Message board for the users of flat assembler.

Index > Windows > more than 1 window in a program ?

Author
Thread Post new topic Reply to topic
mikeb



Joined: 22 Feb 2014
Posts: 12
Location: london u.k.
mikeb
general question about use of more than 1 window ... the program attached is in masm im afraid but the question is pretty generic .. i produce a couple of rescalable listboxes on the screen and have a limited number of parameters above them .. these are used as criteria to fill the list boxes .. however i might want to use a whole load more parameters so i tried to overlay the window with another window .. ive tried several methods but this sort of came closest all the others ending in c000...5 disaster ... you have to select enter extra parameters box in the second menu line .. the idea being its supposed to throw up a page of edit boxes over the top of the main screen .. if you move the window (a little )it will indeed attempt to show them .. youll then see what a mess it all is ... so the question is how do you put up multiple windows ..parameter boxes etc because THERE ARENT ANY EXAMPLES OF THIS IN ANY TUTORIAL .. everything is limited to single editable screen .. obviously i can use a separate program but then theres the linkage problem with the independant areas and processes ... [ ps i have no idea how to add the componentdll .. resource file etc as the web page keeps telling me no attachment added for a second file .. bizarre !]


Description:
Download
Filename: rewerd.asm
Filesize: 30.73 KB
Downloaded: 91 Time(s)


_________________
zzzzz
Post 22 Mar 2014, 15:13
View user's profile Send private message Visit poster's website Reply with quote
mikeb



Joined: 22 Feb 2014
Posts: 12
Location: london u.k.
mikeb
heres the rc data file

_________________
zzzzz
Post 22 Mar 2014, 15:15
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17663
Location: In your JS exploiting you and your system
revolution
mikeb wrote:
[ ps i have no idea how to add the componentdll .. resource file etc as the web page keeps telling me no attachment added for a second file .. bizarre !]
Use a zip file.
Post 22 Mar 2014, 15:16
View user's profile Send private message Visit poster's website Reply with quote
mikeb



Joined: 22 Feb 2014
Posts: 12
Location: london u.k.
mikeb
junk ...??? lets try again see if it works this time ...

_________________
zzzzz
Post 22 Mar 2014, 15:22
View user's profile Send private message Visit poster's website Reply with quote
mikeb



Joined: 22 Feb 2014
Posts: 12
Location: london u.k.
mikeb
this is not cool at a guess its cos its got exe's in the zip ....


Description: zip less the exe
Download
Filename: rewerd.zip
Filesize: 67.4 KB
Downloaded: 72 Time(s)


_________________
zzzzz
Post 22 Mar 2014, 15:34
View user's profile Send private message Visit poster's website Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1419
Location: Toronto, Canada
AsmGuru62
Maybe Property Sheet Dialog is what you need?
It is a set of single dialogs put into a tab control.
Post 22 Mar 2014, 20:56
View user's profile Send private message Send e-mail Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
If you want to have multiple windows I suggest two ways.
1: the easiest way of course is to just create another Window as a child or simply load a dialog. This is the easiest way.

2: Use MDI (Multiple Document Interface), this is where all child windows are created inside their parent window like OllyDbg.

The second one requires too many lines of code so I strongly suggest the first one.
Post 24 Mar 2014, 00:33
View user's profile Send private message Reply with quote
mikeb



Joined: 22 Feb 2014
Posts: 12
Location: london u.k.
mikeb
this is running brilliantly .. i didnt use either .. the window now runs with about 4 panes (separate windows overlayed ) and is very easy to expand to many panes and can be driven either by parameter or using the menu as i did in this case .. the advantage is that i have complete control over whats shown where and when .. plus i can change the backgrounds to complement or augment what im up to .. thanks for the help though as ill try this on something when i get an opportunity .. also ... no one answered my question as to using rejigged masm macros so that i could take my masm progs and "parse" them into fasm format .. ill post this as a separate question maybe .. thanks again though ..
Post 29 Mar 2014, 14:35
View user's profile Send private message Visit poster's website Reply with quote
mikeb



Joined: 22 Feb 2014
Posts: 12
Location: london u.k.
mikeb
asm guru62 .. i idid try this and liked it very much so thanks for that idea
as its a good one .. its not "arty" enough for my dopey tastes but its looks great on notepad++ which i use and like a lot ..
typedef .. thanks this is kind of what i wanted (ps i havent used olly that much as i havent really got a "handle" on what it can do save use the memory viewing aspect and the occasional messagebox display in the prog on the basis that i have to think about whats causing the problem from the programs perspective rather than hack the exe .. this works better for me and seems to make for rapidity in getting the program right and anway the faults are predictable if you kind of know your own faults if that makes sense ) thanks again to both
Post 29 Mar 2014, 14:45
View user's profile Send private message Visit poster's website 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 GitHub, YouTube, Twitter.

Website powered by rwasa.