Re: Euphoria feature request
- Posted by "Philip Deets" <philip1987 at hotmail.com> Dec 10, 2003
- 464 views
<snip> Step back a bit, and state what you want to do, instead of explaining a potential solution you are having problems with. Regards, Pete http://palacebuilders.pwp.blueyonder.co.uk/euphoria.html ----- Ok, I'll try to state what I want, like you said. I want to make an editor which, when it opens a file, it reads the files extention and allows for different editing for each file type. I could have an editor for .exw files when I opened a .exw, or for .pdf files when I opened a .pdf (I'll try to add support for a lot of extentions.) When it will open a file, it looks in a folder called extentions to see if the support file is there for the extention of the file. If it is not, it will open the file into a text editor and a hex editor ( probably on 2 different tabs ). If it is supported ( the user downloaded my support file for the editor ), then I'll probably call a routine named openFile( filename ), then the support file for that extention will create all the controls for editing that file (in the tab that the editor gave for the file). The support file should take care of all events necessary to edit the program plus have specific routines ( like openFile, newFile, saveFile, printFile ) which are called when certain buttons are pushed on the toolbar in the main editor ( or menuitems clicked ). I don't know how to include all the support files when I do not know ahead of time which files are there, and I don't know how to call the common routines ( such as openFile ) that would be present in every support file ( because there will be namespace problems ). Thanks, Phil www16.brinkster.com/philip1987/euphoria P.S. Sorry about what I said about the binder, I didn't realize I couldn't do that. I don't have a binder anyway. Someday I'll register probably.