flat assembler
Message board for the users of flat assembler.

Index > IDE Development > notes about Fresh standars libraries

Author
Thread Post new topic Reply to topic
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard 04 Oct 2003, 12:00
Dear John,

Following things I've noticed when coding Find/Replace dialogs:
1. Libraries are not easy to use in other projects than Fresh:
- they depend on each other, so in most cases you need to use most of them
- they use variables such as 'hMainWin', 'hInstance', etc so your code won't work when you will be using 'hinstance' or 'mainhwnd' for example. (I know that this problem is difficult to solve, and proably it won't be solved, but at least some note about it in documentation would be nice Smile)
2. File 'msgloop.asm' contains application termination code. IMO it should be moved because it may create some problems in some other apps, where user will have his own termination code.
3. bugs with modal dialog boxes:
- when user clicks on 'x' instead of closing a dialog with buttons, dialog's parent window doean't get focused.
- they don't handle the keyboard input properly (I mentioned that in a post with Find/Replace dialogs)

Proably you know about most of these, but I was supposed to find the 'unclear points' of the library, so I wrote what I've noticed, and I'll write more if I'll find something else Very HappyVery HappyVery Happy

However, form.asm is a great and easy to use library, you've made a REALLY GOOD work Very Happy.

regards,
decard
Post 04 Oct 2003, 12:00
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 04 Oct 2003, 14:21
Hi decard.
Well, you are right for most things. I am working hard on these libs now. Mainly on dependencies. I think there will be some (good) solution with these global variables. Smile

Regards.
Post 04 Oct 2003, 14:21
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard 04 Oct 2003, 14:29
That's good Very Happy

btw, I've got one question about form.asm: to do my find and replace dialogs, I would need to provide custom window proc to those dialogs. To do this, I would need to subclass the form class, right?
Post 04 Oct 2003, 14:29
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 04 Oct 2003, 14:40
On the last question: Actually no.
When create the window of class "Form" you must set the last parameter of CreateWindowEx (I can't remember the exact name) to the address of the Message procedure. This procedure have arguments like normal WinProc, but you only process the messages you want. You have not to care about another messages. If you process the message simply return the result in eax and clear carry flag. If you don't process the message simply set carry flag and return. You don't have to preserve any registers in this procedure.

See: Project manager window procedure for details. If you see that I preserve some registers, this is an error and should be fixed. Wink

Regards.
Post 04 Oct 2003, 14:40
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.