ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Removed Areas > Delphi and C++ Builder

Installation & adding component on C++ builder or delphi?

<< < (2/3) > >>

SkyIDE:
Hehe no problems, you don't have to call me "SkyIDE" :)

Sash is my name....but up to you :)

mahesh2k:
OK  ;D

Thanks for Help.Anyway is there source example site you know for learning BCB.Cause i have yet to complete my text editor example,i'm looking for adding Tab for each new page open.

YHNX AGAIN. :)

SkyIDE:
You are welcome :)

Adding tabs can be very tricky and yet very easy. The way SkyIDE implements drag & drop tabs, I'd rather not mention how long it took me to make it work. I mean, the base is very simple but let me put it this way: things are not always what they seem :D The drag cursor is just an illusion :D Here is a tip, I don't use the PageControl. Instead, I use the TabControl and make it look like it contains the TScintilla controls when infact contains absolutely nothing. You have to program it how to react when a tab is clicked, activate the TabControl->Index[ed] MDIChild and because MDIChildren acts very funny, I created my own array that holds the addresses of the MDIChildren....Then when "dragging", you have to relocate the addresses stored in the custom defined TForm array so that the new tab at the specified index/drag dropped index points to the right array element. Also, when closing an MDI child, again, you have to NULL the index in the array specified by the active tab index and then you need to make the array index point to NULL and then move them all by one element etc etc etc....It took me a LOT of time. You will run into a lot of unexpected behaviour, access violations etc etc...

BCB Tutorials? Just go to Google and type "Borland C++ Builder Tutorial". Really, you will learn a lot by experimenting and reading the Help manual of C++ Builder 6. It has many nice examples.

Experimenting is the most fun-filled part.

mahesh2k:
For installing Delphi scintilla component I've used the following steps.

1. Copied SciLexer.DLL & pasted into windows/system32 directory.
2. Open the Install text file from Delphisci-0.23 folder & follow the instruction shown Below:


DELPHI 7 (In the D7 Packages directory)

Open DelphiSciD7.BPG, and select BUILD ALL or

Open Scit.DPK. If a messagebox about TTcFontComboBox not existing appears,
just click cancel. BUILD the package.

Open DScit.DPK, and BUILD it.

/// The packages below requires that your version of Delphi has the
/// Borland Database components (it doesn't exist in the Personal version I think)

Open ScitDB.DPK. BUILD the package.
Open DScitDB.DPK, and BUILD it.
--- End quote ---

Here you can also build the source by hitting compile & install buttons.Once it was done i Restart the delphi & Now go to Component menu>install packages and click on check box named as "Build with Runtime packages".After that you can see the scintilla component menu.If you keep uncheck this option you will get error as

[Fatal Error] scedit.pas(7):File not Found:Scilexer.dcu
--- End quote ---

Now you can drop scintilla on your form & fit F9 to test it.It should be showing you the result.

Problems:

Here your form should suppose to count the number of line & give syntax highlight color by default to some set value but it's not showing .What to do? Is there any code to add or options to set in Scintilla to select perticular languge or enable syntax colouring etc?

Can anyone come up any example with delphi 7 for scintilla.

The Method you've explained is not working with Borland C++ Builder 6 Professional.It returns following three errors when you try to compile it.I've followed the same method you said.

1. Go to delphisci-0.23/C6 Packages
2. Double click on scit.bpk
3. On the window labelled "package" - the one that appears on the middle of the screen, press Compile,
At this step it returns the  following errors

Errors:
[Pascal Fatal Error] Unable to build.License is invalid or has expire.
[Pascal Fatal Error] bad file format: 'd\program files\borland\c builder6\lib\obj\designide.dcp
[linker Fatal Error] fatal :Unable to open file"SCIT.BPI"

--- End quote ---

if you try to do it then it says Unable to find package "scit.bpi".it open the package import dialog box.

I think i've achieved the component installation with Delphi.But i'm missing slightly about the output.But the component is not at all installed in C++ buidelr 2006.

Also is there any alternative for Syntax highlightcomponent & line numbering component? Please do post link even if component is commercial.Do post if any freeware is there.

Please help.Thanks in advance.

SkyIDE:
Hmmm I am not very good with resolving such errors. In my case most of the problems were caused by inclusion of the *DB* entries.

Another one you can try is Synedit http://synedit.sourceforge.net/



Keep in mind, my example works on BCB 6 using the BCB packages. You may want to post a message on their forums. I have never dealt with Delphi before but one thing I could say, Jan (the TScintilla author) is a TOP NOTCH programmer.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version