flat assembler
Message board for the users of flat assembler.

Index > IDE Development > file/new,open,save,save as,RECENT,exit

Goto page 1, 2  Next

usefull and needed?
yes!yes!yes!
84%
 84%  [ 11 ]
no!no!no!
15%
 15%  [ 2 ]
Total Votes : 13

Author
Thread Post new topic Reply to topic
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
hello, i open this post because there is a very serious lack in the file menu.

i ask for this feature, a recent submenu.

file/recent/file1.asm
file2.asm
file3.asm
....


then, fasm will permit to open recent files from a single click.

and i propose to store the recent files list in the fasmw.ini file

[recent]
c:\code\code.asm
c:\fasmw\source\ide\fasmw.asm
etc etc...

this feature will simplify a lot the process of code.

thanks!
Very Happy
Post 08 Mar 2010, 20:01
View user's profile Send private message Visit poster's website Reply with quote
edemko



Joined: 18 Jul 2009
Posts: 549
edemko
Those "Debug" and "Calculator" hided options too.
Debugger dialog i.e. Name,Path,Parameters too.
http://OllyDbg.de
http://www.sysersoft.com/download.html
Post 08 Mar 2010, 23:42
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
the topic is only about recent feature. no more!







edfed!
Post 12 Mar 2010, 17:12
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
up, just to have more votes.

can be fun to have 100% of 100 votes for "yesyesyes"

Wink
Post 07 Apr 2010, 20:22
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
Quote:

yes!yes!yes! = 7 ; 77%
no!no!no! = 2 ; 22%

amazing result but Crying or Very sad
Post 08 Apr 2010, 06:57
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: 17664
Location: In your JS exploiting you and your system
revolution
I want to vote for the third option, don't care. Razz
Post 08 Apr 2010, 06:59
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: 17664
Location: In your JS exploiting you and your system
revolution
edfed: Do you have .asm files associated with fasmw as the default editor?
Post 08 Apr 2010, 07:01
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
.asm, .inc. .c, .cpp. and almost, every source code files for any languages.

why?
Post 08 Apr 2010, 07:08
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: 17664
Location: In your JS exploiting you and your system
revolution
I just thought that if you didn't, then it may be all you need to improve your coding efficiency. But since you already have that, then it doesn't matter.
Post 08 Apr 2010, 07:11
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
recent submenu is great for example if i have a crash of win98 (or any windows) and then, i want to restart computer, and restart fasm session.
with recent submenu, it will be easy to recover a session of 10 files ,assuming the recent list is 10 files lengh.

the same is also possible if i close fasmw for example, because i want to close it and reopen it latter because i want to code again, by a compulsive desire to write mnemonics or what to my code stack file.
Very Happy
Post 08 Apr 2010, 07:17
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: 17664
Location: In your JS exploiting you and your system
revolution
Perhaps you are better to get a new OS that doesn't crash! Exclamation Laughing

My XP laptop is still running since August-2006 without a restart! Now that is what I call stable.
Post 08 Apr 2010, 07:25
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
it's cool, but what i dislike with XP is the lack of good V86 platform. it doesn't accept mouse advanced functions, it doesn't accept drive operation, and mainly all I/O port are blocked and it is very long to open a v86 console.

for the moment, XP is full of attacks from the web and updates, so ... i never use XP as the main coding platform. because i cannot use hardware like i want. i still have a PC on XP, the netbook Aone. i use it ones a mounth, even it have 2* the clock, 4* the ram. Smile

one day i will have a non crashing OS, one day, in 2057, coded with fasm Very Happy
Post 08 Apr 2010, 07:34
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
Code:
  menu main_menu
       menuitem '&File',0,MFR_POPUP
                menuitem '&New' _ 'Ctrl+N',IDM_NEW
                menuitem '&Open...' _ 'Ctrl+O',IDM_OPEN
                menuitem 'recent',0,MFR_POPUP
                            menuitem ' ',0
                            menuitem ' ',0
                            menuitem ' ',0
                            menuitem ' ',0
                            menuitem ' ',0
                            menuitem ' ',0
                            menuitem ' ',0
                            menuitem ' ',0
                            menuitem ' ',0
                            menuitem ' ',0,MFR_END

                menuitem '&Save' _ 'Ctrl+S',IDM_SAVE
                menuitem 'Save &as...',IDM_SAVEAS
                menuseparator
                menuitem 'E&xit' _ 'Alt+X',IDM_EXIT,MFR_END
    


then, now, i have this menu.

the goal is to make a silmple (?) mecanism.

1/ when we close a file, [recent] list in fasmw.ini will be updated.
2/ when we open the 'recent' popup menu, it will read info from fasmw.ini to fill in a list of recent files. up to 10 (0ah) files is a good compromise.
3/ the recent submenu should be a variable size menu.
items will depend on the content of the [recent]list.
then, if a file is aded, one item will be added.
if a file is not really there, an item will be deleted from list.

that's the point i see a bit 'obscure', how to make a variable size popup menu?


Last edited by edfed on 10 Apr 2010, 12:33; edited 1 time in total
Post 10 Apr 2010, 12:18
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: 17664
Location: In your JS exploiting you and your system
revolution
Make a minimal popup menu in the resources. And after it is loaded into the Window, then you add/remove the recent files to the menu dynamically at runtime.
Post 10 Apr 2010, 12:30
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
a minimal popup menu in the ressources?

what is this? and how does it looks like?
Post 10 Apr 2010, 12:33
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: 17664
Location: In your JS exploiting you and your system
revolution
You can store menus in the resources, that is the code you show above, a structure for storing a static menu. But that structure is fixed. You have to modify menus at runtime to have them react to the current program conditions. The popup menu is the window you see when you click the "file" button in the menu bar.
Post 10 Apr 2010, 12:37
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
then, i can do something like that?

Code:
recent menu:
                menuitem 'recent',0,MFR_POPUP
                            menuitem ' ',0
                            menuitem ' ',0
                            menuitem ' ',0
                            menuitem ' ',0
                            menuitem ' ',0
                            menuitem ' ',0
                            menuitem ' ',0
                            menuitem ' ',0
                            menuitem ' ',0
                            menuitem ' ',0,MFR_END


menu main_menu
       menuitem '&File',0,MFR_POPUP
                menuitem '&New' _ 'Ctrl+N',IDM_NEW
                menuitem '&Open...' _ 'Ctrl+O',IDM_OPEN
                dd recentmenu
                menuitem '&Save' _ 'Ctrl+S',IDM_SAVE
                menuitem 'Save &as...',IDM_SAVEAS
                menuseparator
                menuitem 'E&xit' _ 'Alt+X',IDM_EXIT,MFR_END     


and change the position of MFR_END?

and about strings, how does they are encoded?

is it possible to do that:
Code:
                menuitem 'recent',0,MFR_POPUP
                            menuitem recent1,0,FRM__END
                            menuitem recent2,0,0
                            menuitem recent3,0,0
                            menuitem recent4,0,0
                            menuitem recent5,0,0
                            menuitem recent6,0,0
                            menuitem recent7,0,0
                            menuitem recent8,0,0
                            menuitem recent9,0,0
                            menuitem recenta,0,0
recent1 db '                     ',0
recent2 db '                     ',0
recent3 db '                     ',0
recent4 db '                     ',0
recent5 db '                     ',0
recent6 db '                     ',0
recent7 db '                     ',0
recent8 db '                     ',0
recent9 db '                     ',0
recentA db '                     ',0

    


first 0 used as it is, the action ID, and second 0, reserved for variable FRM_END flaging?
just questions because i don't know any of the windows macro system.
Post 10 Apr 2010, 13:25
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: 17664
Location: In your JS exploiting you and your system
revolution
You add items through the API: InsertMenuItem

Quote:
The InsertMenuItem function inserts a new menu item at the specified position in a menu.

BOOL WINAPI InsertMenuItem(

HMENU hMenu,
UINT uItem,
BOOL fByPosition,
LPMENUITEMINFO lpmii
);
Post 10 Apr 2010, 13:30
View user's profile Send private message Visit poster's website Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1288
Location: Paradise Falls
Picnic
A Recent Files option in the file menu is not a bad idea Exclamation
Post 20 Sep 2010, 20:52
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
another idea of the same type would be to have a listing button instead of build symbols.

symbols are not easy to use in order to debug a code.
i use listing to see where is the reported error located in code.

for that, i am reading the IDE source and don't find how i can call listing.exe i order to create listing file, and then, open it in a new tab in fasmw.
Post 02 Nov 2010, 13:58
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:  
Goto page 1, 2  Next

< 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.