flat assembler
Message board for the users of flat assembler.

Index > IDE Development > Fresh 1.1.7 work uploaded - last before next official.

Author
Thread Post new topic Reply to topic
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 10 Aug 2004, 11:24
Well, at the end I managed to finish the changes in visual form editor. Now it is able to cut/copy/paste/delete the controls from the forms.

For developement team and volunteers: Please, test it more widely, because I am intended to make this release the next official pre-alpha, after some bug fixes.

Download Fresh 1.1.7 work here: http://fresh.flatassembler.net/x2download.html

Regards


Last edited by JohnFound on 17 Aug 2004, 14:41; edited 1 time in total
Post 10 Aug 2004, 11:24
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
Tommy 10 Aug 2004, 11:39
Two bugs I've found so far:

1) Copy edit control in VisualPad and paste so it appears inside the original edit... Right click and the popup menu appears... Delete menu item is disabled... Right click on other controls does not make the popup menu appear....

2) Compiling the project thrice crashes Fresh... (I will try to dump the memory and registers here...)
Post 10 Aug 2004, 11:39
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 10 Aug 2004, 11:50
Tommy wrote:
1) Copy edit control in VisualPad and paste so it appears inside the original edit...


The paste target is the current selected control in the form, so it is normal. Just unselect the edit, before paste and all should be OK. (the new edit will appear above the old one. You should drag it manually).
Hm, maybe the behaviour is not so clear here... any sugestions?

Quote:
Right click and the popup menu appears...
This popup menu is a part of edit popup menu, it is not related to the form editor. I have to fix some things in inhibiting normal control behaviour here...
You can delete the selected controls using main Fresh menu "Edit|Delete" or using Ctrl+Del keystroke.
Popup menu for Form editor with advanced editing functions will be added later.

Quote:
2) Compiling the project thrice crashes Fresh... (I will try to dump the memory and registers here...)

Probably memory leaks in NT/2000/XP. I will try to use MemProof to clear them. But the address of crash will be usefull also.

Thanks Tommy.
Regards.
Post 10 Aug 2004, 11:50
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
Tommy 10 Aug 2004, 13:09
Quote:
The paste target is the current selected control in the form, so it is normal. Just unselect the edit, before paste and all should be OK. (the new edit will appear above the old one. You should drag it manually).
Yes, I know that... That wasn't the problem... Very Happy
Quote:
You can delete the selected controls using main Fresh menu "Edit|Delete" or using Ctrl+Del keystroke.
Yes, I checked the Edit-menu and found it... Cool
Quote:
Popup menu for Form editor with advanced editing functions will be added later.
I figured on that... Wink
Quote:
But the address of crash will be usefull also.
I'll check it now... Wink
Post 10 Aug 2004, 13:09
View user's profile Send private message Visit poster's website Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
Tommy 10 Aug 2004, 13:12
The bug appears here:
Code:
004013C8   8B07             MOV EAX,DWORD PTR DS:[EDI]

EAX 00000000  ECX 08A1FF04  EDX 00000000
EBX 00000775  ESP 08A1FF7C  EBP 08A1FF88
ESI 08D4E530  EDI 0001D860  EIP 004013C8    
BTW: Now Fresh did it on the second compile.... Probably a memory leak, yes.. Thanks, John! Smile
Post 10 Aug 2004, 13:12
View user's profile Send private message Visit poster's website Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard 10 Aug 2004, 15:47
Hi John,
I didn't notice any problems on my system. My opinion about form editor's behaviour (actually a small details):
- why ctr+del deletes a control? IMO it would be simpler to remove components with "delete" only.
- when you can pick and move a component, a cross cursor appears. What about changing this cursor to default Windows' move cursor?

And one more question: why winprocs dont have any arguments declared? Where did they come? Very Happy

keep up the great work!

regards
Post 10 Aug 2004, 15:47
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 10 Aug 2004, 16:00
Hi, Decard.

decard wrote:
I didn't notice any problems on my system.

There are definately some memory leaks. I will fix them tonight in Win2000 - Win89 forgives us almost everything... Smile

Quote:
why ctr+del deletes a control? IMO it would be simpler to remove components with "delete" only.


There is no "Undo" for graphic editor. Maybe when I managed to make it (not very high priority) I will leave it simply to Del.

Quote:
What about changing this cursor to default Windows' move cursor?

Hm, what cursor you mean actually here? Maybe I am wrong, but there is no standard move cursor. Of course it is not a problem to insert some cursor in resources...

Quote:
why winprocs dont have any arguments declared? Where did they come? Very Happy


Well, I decided to make them "by default". Actually there is no different arguments for window procedures in whole Fresh... The names are: ".hwnd", ".wmsg", ".wparam" and ".lparam".
I know that this decision can harm the readability of the source code, but window procedures are so common object in windows programming, that everyone must know the arguments... Smile
Post 10 Aug 2004, 16:00
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 10 Aug 2004, 19:04
JohnFound wrote:

Hm, what cursor you mean actually here? Maybe I am wrong, but there is no standard move cursor. Of course it is not a problem to insert some cursor in resources..


see attachement Smile in mouse settings in control panel this is described as "move cursor"
Post 10 Aug 2004, 19:04
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 10 Aug 2004, 19:51
decard wrote:
see attachement Smile in mouse settings in control panel this is described as "move cursor"

What constant for LoadCursor. Everything I found is:
Win32.hlp wrote:
IDC_SIZE Windows NT only: Four-pointed arrow
IDC_SIZEALL Same as IDC_SIZE


Regards
Post 10 Aug 2004, 19:51
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 10 Aug 2004, 20:12
MSDN says that IDC_SIZE is now obsolete (and specifing this constant doesn't work on my 98SE). But IDC_SIZEALL is OK. Actually this constant is missing in our current user32.inc, but just add there "IDC_SIZEALL = 32646", and it will work.
Post 10 Aug 2004, 20:12
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 10 Aug 2004, 20:50
decard wrote:
...but just add there "IDC_SIZEALL = 32646", and it will work.


Added, works, thank you... Very HappySmile

Regards.
Post 10 Aug 2004, 20:50
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
coconut



Joined: 02 Apr 2004
Posts: 326
Location: US
coconut 10 Aug 2004, 22:30
fresh crashed while moving a checkbox around winxp sp1
Post 10 Aug 2004, 22:30
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 10 Aug 2004, 23:18
OK, I think I fixed both - "crash on compile" - it was uninitialized structure field problem, and "crash on move new controls" - different behaviour of DrawText - instead of returning error, in Win2000 it crashes the application on wrong arguments. Who said Win2000 is more stable??? Wink

I will upload the fixed version after several minutes.

Regards.
Post 10 Aug 2004, 23:18
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 11 Aug 2004, 18:01
JohnFound wrote:
Quote:
why winprocs dont have any arguments declared? Where did they come? Very Happy


Well, I decided to make them "by default". Actually there is no different arguments for window procedures in whole Fresh... The names are: ".hwnd", ".wmsg", ".wparam" and ".lparam".
I know that this decision can harm the readability of the source code, but window procedures are so common object in windows programming, that everyone must know the arguments... Smile


actually when I tried to recompile some my project I found that this solution isn't a goog idea. It's just because my params arent ".hwnd", ".wmsg", but ".hWnd" and ".uMsg"... I think that this proc should not make programmers give fixed name to winproc's parameters.

regards
Post 11 Aug 2004, 18:01
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 11 Aug 2004, 18:37
decard wrote:
I think that this proc should not make programmers give fixed name to winproc's parameters.


You are absolutely right. For the official release I will make the arguments for "winproc" simply optional.

Regards.
Post 11 Aug 2004, 18:37
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.