Recent

Author Topic: Component Questions  (Read 2732 times)

James_Parsons

  • New Member
  • *
  • Posts: 14
Component Questions
« on: April 21, 2014, 02:27:50 pm »
I have been messing around for a while, and I have a few questions on some of the LCL controls.

1. The TShellTreeView, can it be used to create an IDE like file browser? How do I use it?
2. Can I Define my own language for a SynEdit Control?
3. Can I redirect CMD output to some sort of text box control?

If it is not obvious here, I am trying to write my own IDE, and Lazarus seemed to be the most convenient tool available.
For Each each in eaches()
   each()
Next each

exdatis

  • Hero Member
  • *****
  • Posts: 668
    • exdatis
Re: Component Questions
« Reply #1 on: April 21, 2014, 02:34:11 pm »
I have been messing around for a while, and I have a few questions on some of the LCL controls.
3. Can I redirect CMD output to some sort of text box control?

http://wiki.lazarus.freepascal.org/Executing_External_Programs#Reading_large_output

exdatis

  • Hero Member
  • *****
  • Posts: 668
    • exdatis
Re: Component Questions
« Reply #2 on: April 21, 2014, 02:36:36 pm »
I have been messing around for a while, and I have a few questions on some of the LCL controls.

1. The TShellTreeView, can it be used to create an IDE like file browser? How do I use it?

http://wiki.freepascal.org/TShellListView
http://wiki.freepascal.org/Shell_Controls

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Component Questions
« Reply #3 on: April 21, 2014, 02:50:09 pm »
There's also a short example of its use at
 .../lazarus/components/fpvectorial/examples/fpcorelexplorer.lpi

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: Component Questions
« Reply #4 on: April 21, 2014, 03:25:31 pm »
2. Can I Define my own language for a SynEdit Control?
I would recommend using Edson's Scriptable Highlighter.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9915
  • Debugger - SynEdit - and more
    • wiki
Re: Component Questions
« Reply #5 on: April 21, 2014, 05:53:06 pm »
2. Can I Define my own language for a SynEdit Control?
I would recommend using Edson's Scriptable Highlighter.

a) The above (probably the beast (ready to use, and powerful)
b) in the folder examples/SynEdit in your lazarus installation are examples for SynAnyHighlighter and SynPosHighlighter (both very basic, and probably not enough for what you want)
c) Maybe there is one here: http://bugs.freepascal.org/view.php?id=18248
d) Write your own: http://wiki.lazarus.freepascal.org/SynEdit_Highlighter#Creating_a_SynEdit_Highlighter
e) There also is SynUniSyn, but it is not maintained and not currently working. Help fixing it, and you can use it.

 

TinyPortal © 2005-2018