What is the file size limitation...?
Canvas would work also...
Cliff

Mailing lists / lazarus / 1999-07
17 messages · 5 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
What is the file size limitation...?
Canvas would work also...
Cliff
So, where can I find gIDE? I went to www.gtk.org and looked at their applications link. Under gtkeditor I couldn't get to their home page.
Shane
>> "Michael A. Hess" 07/13 1:17 PM >>>
Cliff" wrotethere is a editor widget that has been built but if we use it we have to include it with the total package since it is not part of native GTK+
And the negative of that is?
Question: I've been staring at my screen now for a while trying to think of the best way…
Maybe you should go get gIDE and see how they do it. It is a totally gtk+ based tool so they did it some how.
The page mentions something about a new gtkEditor widget. Maybe that is the ticket.
The problem is that the underlying widget (gtktext) is limited to the number of characters it can hold (I think). Therefore I don't know if I could actually hold 1000 lines.
Second, I would prefer to write a new component that from the user's end would seem simple enough to use. I'm not sure if your idea would look simple, though it would probably do the trick. Simply catch the onclick event for the scroolbars and slap new code on it.
Shane
>> Data Vortex 07/13 1:11 PM >>>
maybe you can use a TMemo for displaying the text (like XX lines) and have a series of TString behind that would hold the file content (regarless od the size, the memo is probably never going to need to show VERY large piece of code (it will have to know about it) but for 'visible piece of code', it will never be a lot (probably never more than 1000 lines at once). You just need to be able to show a 'window' on the text, so just show that in the memo..
(i hope i'm not generating garbage)
Is that what you are looking for ?
you wroteMy idea was to combine a few components. Perhaps a TMemo and a TCanvas,
but the problem is TMemo won't work because of it's file size limitation.
Also, not sure if using a TCanvas (drawing widget) would be the best idea
or not.
-----
Nothing is foolproof to a
sufficiently talented fool.
___ ,,,
"\(6 6)
---oOOo-U-oOOo---
_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus
no place for breakpooint setting...hmmm....
I do not think it is gonna get us anyting..
Cliff
Question: I've been staring at my screen now for a while trying to think of the best way…
How about the following:
mwEdit
http://www.eccentrica.org/gabr/mw/mwedit.htm
This was built for Delphi. The author says he wants the Delphi community to take over development of it. It sounds pretty nice and it sounds like it has almost everything you need.
Here are a some of its features:
- A study on how to create a custom edit control without using a Windows edit control
- Multiline edit control
- Thirteen highlighters (ObjectPascal, C++, Perl, Java, HP48, CA-Clipper, SQL, TCL/TK, HTML, AWK, VBScript, Galaxy, and general)
- Two exporters (HTML and RTF)
- No inherent memory limitations
- Extensible syntax highlighting
- Extensible syntax exporting
- Customisable keyboard commands
- Bookmarks and gutter marks
- Drag and drop
I briefly looked at it and it looks like it is built from a TCustomControl which I believe we have. So it might not be all that hard to convert it. If nothing else, it will probably be able to give you some good ideas on how to do the syntax highlighting, unlimited text, and the gutter with gutter marks. So I think it would be pretty useful either way.
Curtis
----------------------------------
Curtis White
Curtis White
http://www.teleport.com/~osiriz/
----------------------------------
Question:
I've been staring at my screen now for a while trying to think of the best way to create a new colorizer with a gray area to the left of it for breakpoints and such. Anyone have any idea's they want to share? I figure with this many people, someone will probably say something that'll get me going.
The current setup is a TMemo (gtktext) but technically it shouldn't be able to colorize stuff. Also, I think gtktext widget suffers from an inability to hold large files.
Also, I HATE how it hold's the text in memory. It holds it in one long line instead of a list of strings.
Thoughts? It's too quiet in this mailing list today anyways.
Shane
You only need to set the FPCDIR to /usr/lib/fpc/0.99.12/ because there is the makefile.fpc located
Peter
_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus
Nothing it's fine by me no sense reinventing the wheel. I am only opposed if it uses GNOME specific libs..
Cliff
Nope I have not found it sometime back I heard that it was in the GTK CVS...
Cliff
My idea was to combine a few components. Perhaps a TMemo and a TCanvas, but the problem…
maybe you can use a TMemo for displaying the text (like XX lines) and have a series of TString behind that would hold the file content (regarless od the size, the memo is probably never going to need to show VERY large piece of code (it will have to know about it) but for 'visible piece of code', it will never be a lot (probably never more than 1000 lines at once). You just need to be able to show a 'window' on the text, so just show that in the memo..
(i hope i'm not generating garbage)
Is that what you are looking for ?
you wroteMy idea was to combine a few components. Perhaps a TMemo and a TCanvas,
but the problem is TMemo won't work because of it's file size limitation.
Also, not sure if using a TCanvas (drawing widget) would be the best idea
or not.
-----
Nothing is foolproof to a
sufficiently talented fool.
___ ,,,
"\(6 6)
---oOOo-U-oOOo---
no place for breakpooint setting...hmmm.... I do not think it is gonna get us anyting..…
Cliff wroteno place for breakpooint setting...hmmm.... I do not think it is gonna get us anyting..
OK I can understand the gtkEditor widget not working for us but I think gIDE also works without it or at least older version did so maybe they could give Shane a tip or idea of technique.
Are there any existing Delphi tools that might help with that idea? Maybe you could port on of those.
So, where can I find gIDE? I went to www.gtk.org and looked at their applications link. …
Shane Miller wroteSo, where can I find gIDE? I went to www.gtk.org and looked at their applications link. Under gtkeditor I couldn't get to their home page.
Sorry about that. I meant to add the link to my other email. I had copied it to the clipboard but forgot to paste it. :-\
As far as I know it isn't gnome specific. It is just a new gtk widget that does editing, highlighting, etc. etc. Designed mainly for editing source code. It is still kinda new so it might not be want we want to do but I thought that maybe if you can at least look at what they are doing in and with the widget maybe it will give you ideas of how to do the same thing in FPC.
there is a editor widget that has been built but if we use it we have to include it with…
Cliff" wrotethere is a editor widget that has been built but if we use it we have to include it with the total package since it is not part of native GTK+
And the negative of that is?
How about a frame bound to the left side of a TMemo.. Later we can just add code for a click event to blast on to the frame a image or drawing widget containing the red dot or whatever...I think you may also be able to adjust the frame borders and such to make it appear as sunken...
Cliff
My idea was to combine a few components. Perhaps a TMemo and a TCanvas, but the problem is TMemo won't work because of it's file size limitation.
Also, not sure if using a TCanvas (drawing widget) would be the best idea or not.
Shane
>> "Baeseman, Cliff" 07/13 12:16 PM >>>
How about a frame bound to the left side of a TMemo.. Later we can just add code for a click event to blast on to the frame a image or drawing widget containing the red dot or whatever...I think you may also be able to adjust the frame borders and such to make it appear as sunken...
Cliff
there is a editor widget that has been built but if we use it we have to include it with the total package since it is not part of native GTK+
Cliff
I is a very good component, but very involved too. It's not using a TMemo or anything. I have to figure out how they are getting this to work.
I was looking for one that already existed (gtkeditor). I'll have to look at the gtkeditor and see if I can modify/add to it.
Shane
>> Curtis White 07/13 7:58 PM >>>
How about the following:
mwEdit
http://www.eccentrica.org/gabr/mw/mwedit.htm
This was built for Delphi. The author says he wants the Delphi community to take over development of it. It sounds pretty nice and it sounds like it has almost everything you need.
Here are a some of its features:
- A study on how to create a custom edit control without using a Windows edit control
- Multiline edit control
- Thirteen highlighters (ObjectPascal, C++, Perl, Java, HP48, CA-Clipper, SQL, TCL/TK, HTML, AWK, VBScript, Galaxy, and general)
- Two exporters (HTML and RTF)
- No inherent memory limitations
- Extensible syntax highlighting
- Extensible syntax exporting
- Customisable keyboard commands
- Bookmarks and gutter marks
- Drag and drop
I briefly looked at it and it looks like it is built from a TCustomControl which I believe we have. So it might not be all that hard to convert it. If nothing else, it will probably be able to give you some good ideas on how to do the syntax highlighting, unlimited text, and the gutter with gutter marks. So I think it would be pretty useful either way.
Curtis
----------------------------------
Curtis White
Curtis White
http://www.teleport.com/~osiriz/
----------------------------------
_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus