Engine252 Posted October 12, 2003 Posted October 12, 2003 How can i create an edit control from scratch all help or resources are welcome. Quote
wyrd Posted October 12, 2003 Posted October 12, 2003 What do you mean by edit control? Quote Gamer extraordinaire. Programmer wannabe.
*Experts* Volte Posted October 12, 2003 *Experts* Posted October 12, 2003 An edit control is a textbox, and to create one is quite a lot of work. Is there a reason you need to create one? Quote
AlexCode Posted October 12, 2003 Posted October 12, 2003 Why don't you just inherit from the existing one? What kind of data do u want to edit? Quote Software bugs are impossible to detect by anybody except the end user.
Engine252 Posted October 13, 2003 Author Posted October 13, 2003 i would like to create one since the simple textbox won't let me add more than 2 diferent text colors and a richttext box is to slow for my needs i would like to create a syntax highlighting textbox and i can't afford buying one or at least not a desent one Quote
Engine252 Posted October 16, 2003 Author Posted October 16, 2003 comon is there no one who can help me out here?? Quote
AlexCode Posted October 16, 2003 Posted October 16, 2003 why do u say it's too slow? (the richtext) If you don't like none of those 2 and can't find other one around the net... at http://www.codeproject.com for example, you just have one path to go... Build your own... it won't be that easy but with some good code expertice it will end up beeng the thing you want... Give it a try... :D Quote Software bugs are impossible to detect by anybody except the end user.
*Experts* Volte Posted October 16, 2003 *Experts* Posted October 16, 2003 There's a free text control called CodeSense which is a syntax highlighter. It is a COM control, so it needs to be registered and all that, but you can get it here if you want: http://www.ticz.com/homes/users/nlewis/HTML/Software_Development/CodeSense/faq.htm Quote
Engine252 Posted October 16, 2003 Author Posted October 16, 2003 (edited) thanks for the link but i'd rather want to create one myself i would like mine to have folding support syntaxhighlighting breakpoint support intellisense wavelines .... the main problem is i want it to look like http://www.syncfusion.com/products/edit/features/images/syntax.gif notice the grey border at the Left and the line numbering if someone could help me on how to acomplish that this would get me started Edited October 17, 2003 by Engine252 Quote
Administrators PlausiblyDamp Posted October 16, 2003 Administrators Posted October 16, 2003 May want to have a look at http://www.icsharpcode.net, they have an open source IDE - part of it is a text editor similar to what you requested. If you really want to write one from scratch it will be an awful lot of work. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
*Experts* Volte Posted October 17, 2003 *Experts* Posted October 17, 2003 You absolutely should not take code from the SharpDevelop source code. It is GPL'd code, and they are quite strict about it. This means that any application you make that uses SharpDevelop code must both be open source, and have credit given to the SharpDevelop team. There are probably other restrictions too, but that's the basic idea. Use it as a reference, sure, but don't extract code. Quote
Engine252 Posted October 17, 2003 Author Posted October 17, 2003 it would be possible for me to do the syntax highlighting but i can add that gray border i suspect that the guys from the image above there created the control from scratch if i can find some tutorials on that or if there 's someone who knows how to create sutch grey border and some space for debugger points plaese let me know Quote
AlexCode Posted October 17, 2003 Posted October 17, 2003 I think you didn't get the idea... You also have to build your own from scrach! :D The Left Grey Border, where you can put some info (like the breakpoint in VS.net IDE) it's other control I supose... Like PlausiblyDamp said... go to http://www.icsharpcode.net and dig into the code! Your answer it's there!! Just a simple question... what experience do you have in .net plattform? The Inheritance, Delegates, User Controls words mean something solid to you? If not... try something easyer to begin ... Quote Software bugs are impossible to detect by anybody except the end user.
Engine252 Posted October 17, 2003 Author Posted October 17, 2003 i have looked thru the code of sharpDev and it did get me goin. But still if you know of any sources that might help me plz let me know like in the sharp code there's no folding support if you know a tutorial on that let me know. Quote
AlexCode Posted October 17, 2003 Posted October 17, 2003 Ok ... I got you some more sources... http://www.codeproject.com/editctrl/crysedit.asp?target=text%7Cedit http://www.codeproject.com/editctrl/coloredit.asp?target=text%7Cedit http://www.codeproject.com/editctrl/editctrltutorial.asp?target=text%7Cedit I think it would help... :D Quote Software bugs are impossible to detect by anybody except the end user.
AlexCode Posted October 17, 2003 Posted October 17, 2003 And by the way... Sorry for asking you that but many people here post questions about things too complicated for their knowlege... hopping someone wold give them the full source code... We're here only to point people to the right direction and give them a start and a hand on some sources ... not to build their apps ! :D Any more questions... feel free to ask... :D Quote Software bugs are impossible to detect by anybody except the end user.
Engine252 Posted October 20, 2003 Author Posted October 20, 2003 thanks for all your reply's it realy helped me I gues I was fooling myself to think there was an easy way of doing that control, but then again i started the control and i'm doing quit well now. Had a litlle problem getting started. It's hard to do something you don't know how it works internaly now i do so thanks to all who replyed and helped me I hope i can help you sometime. :-) bdw : i wasn't looking for anyone to give me the full source code in that case i would of used Scintella,CodeSence or Some other open source Control i want to create my own. I program for fun. Not to showoff with other peoeple's accomplishment's :-) Quote
AlexCode Posted October 20, 2003 Posted October 20, 2003 :D Anything else... just ask! Quote Software bugs are impossible to detect by anybody except the end user.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.