First thing to notice is that the default font is sans serif.
Make it fixed width like Courier New.
If you resize to small your resize code generates an error
VB Code:
Private Sub Form_Resize()
'Resize the txtDocument editing window to fit the form
txtDocument.Width = frmMain.ScaleWidth - 4
txtDocument.Height = frmMain.ScaleHeight - 4
End Sub
The -4 creates a negative Height and Width
I think I have a resize module somewhere.
I'll try and dig it out.
For some reason the horizontal scroll bar is not working on the text box.
If you hold down a key you cant tell whether it has wordwrapped or if it is a new word.
An insert HTML outline would be good too.
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"><HTML><HEAD><TITLE>HTML 4.01 Transitional</TITLE><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"></HEAD><BODY></BODY></HTML>
ConTEXT has a lot of useful features like this.
It might be worth downloading it and picking out the best bits.
One feature that is has is the autocomplete is based on external text files.
This is useful as the user can add/modify/extend it as he wishes.
The API examples have the advantage that they don't flicker.
All of them need tweaking as I didn't write any of it myself
The upload is a 7z inside a zip.
I use 7zip for the greater compression ratios, but VBF doesn't support the extension.
Download ZipGenius http://downloads.zipgenius.it/ if you cant open 7z files.
Cool, thank you. I'll take a look at the "resizers" later, I just reformatted so I'm involved in reloading my life at the moment.
Do you have any idea why the horizontal scrollbar isn't working? I think I've had this problem before and the fix was sending a message to the RichTextBox telling it to expand it's right margin.
"I don't want to live alone until I'm married" - M.M.R.P
arg, I'm very sorry. Haven't gotten around to testing the code yet...school, work, and life in general seem to want a shot at my attention all at once.
"I don't want to live alone until I'm married" - M.M.R.P
I know what you mean.
It doesn't help that my motherboard has died at home too
Perhaps we should have a list in the first/second post identifying what needs doing next, new/proposed features, problems etc
And maybe put a copy of the latest code there too?
Ouch, that isn't good. I'll update the 2nd post in the thread to hold that information. I may actually get around to testing the code today, but it's more likely to be done tomorow.
"I don't want to live alone until I'm married" - M.M.R.P
Okay, I finally got to look at the code you posted. I think just adding an "On Error Resume Next" to the Form_Resize sub would be fine, unless you think there should be a minimum size.
"I don't want to live alone until I'm married" - M.M.R.P
The main problem I forsee with the intellisense is how to load different languages...The common delimiter is ".", but PERL's is "->". There are many other differences between main languages and so the job right now is to create a system that will support a diverse language environment.
"I don't want to live alone until I'm married" - M.M.R.P
I was thinking about how the insert form object could be trimmed.
Each of the subs is the same apart from the line that looks like
VB Code:
ToAdd = "<input type=""textbox"">"
This could be made generic and read the info from a setup file (ini / xml ?)
Reading from a setup file means that you can extend the language without recompiling.
Similarly for the HTML object (form/image/hyperlink) I was wondering if it would make the code smaller by creating the forms through code at runtime instead of manually at design time.
Again the values could be read from a setup file making the program more easily extensible.
I like the idea of dynamic menus and forms, but I'm not sure how feasible it is. I don't know how difficult it is to subclass a menu and then tell which item is clicked in it.
I'll add this to the list of possibilities.
"I don't want to live alone until I'm married" - M.M.R.P
Its late and I cant be bothered to reread the entire thread
But I was looking at the KDE Advanced Text Editor and Code Folding is useful http://en.wikipedia.org/wiki/Code_folding
I'm not sure how to go about implementing it though.....
Is this project still continuing?
Can you post the latest code?
Preferably somewhere at the top of the thread.
After I have finished my exams in the next couple of weeks I should have time to contribute if you need any input.
It is currently in limbo,, there haven't been any major changes - life has been a bit too hectic recently, but it will cool down after Christmas. (Sister gets married Dec. 17th, huge project at work, etc). Any help would be appreciated, especially in brainstorming, don't want to do anything that limits future development and additions to the supported languages.
"I don't want to live alone until I'm married" - M.M.R.P
This is C# code using ICSharpCode.TextEditor.dll and WeifenLuo.WinFormsUI.Docking.dll. This may or may not help the project but I like to contribute if this is C#.
Edit: This code is based on SharpDevelop and the solution is SharpDevelop-based (I guess VS2003 can open this solution file; even 2006VS can open this I guess, but there are some things not properly set because of incompatibility).
Last edited by nebulom; Dec 5th, 2006 at 08:02 PM.