Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Die Delphi-IDE (https://www.delphipraxis.net/62-die-delphi-ide/)
-   -   Anweisungen, Schleifen etc. einklappen? (https://www.delphipraxis.net/155355-anweisungen-schleifen-etc-einklappen.html)

nachti1505 20. Okt 2010 12:11

AW: Anweisungen, Schleifen etc. einklappen?
 
Zitat:

Zitat von himitsu (Beitrag 1056670)
Eventuell gibt es da etwas in einigen Delphi-Erweiterungen, ala cnPack oder GExperts?

Hmmm... ich glaube eher nicht... zumindest habe ich dort noch nichts derartiges gefunden...!

Sherlock 20. Okt 2010 13:00

AW: Anweisungen, Schleifen etc. einklappen?
 
Zitat:

Zitat von himitsu (Beitrag 1056670)
Zitat:

Zitat von Sherlock (Beitrag 1056665)
Nein.

Eventuell gibt es da etwas in einigen Delphi-Erweiterungen, ala cnPack oder GExperts?

Auch da nicht. Hab irgendwo was von einem der GExperts gelesen, als ich noch D7 hatte (also vor einem Jahr), daß es nicht möglich sei sowas in die IDE zu bauen. Linkd dazu: http://www.gexperts.org/faq.html#custompaint

Sherlock

pustekuchen 20. Okt 2010 13:36

AW: Anweisungen, Schleifen etc. einklappen?
 
Mhh schade ;) Da muss man halt mit Regionen arbeiten.

nachti1505 20. Okt 2010 14:05

AW: Anweisungen, Schleifen etc. einklappen?
 
Zitat:

Zitat von pustekuchen (Beitrag 1056692)
Mhh schade ;) Da muss man halt mit Regionen arbeiten.

Wie meinst du das denn???

pustekuchen 20. Okt 2010 14:07

AW: Anweisungen, Schleifen etc. einklappen?
 
Zitat:

Will you please add method folding and other custom painting to the IDE's code editor?

The functionality necessary to hide code lines is not surfaced by the Borland Open Tools API, and it would be unsafe and extremely complicated to implement without help from the IDE. Custom painting in the code editor isn't supported by the OTA either, so it requires low level hacking (windows hooks, runtime VMT patching, etc.) that is fairly error-prone and can slow down editing actions considerably, so as of yet nobody on the GExperts team has looked into this. Feel free to send us code contributions toward these features, but since code folding is present in Delphi 8 and greater, that feature is probably not worth implementing at this point.
Weil das nicht klappt, macht man es dann so:

Delphi-Quellcode:
{$REGION 'MeineRegion'}
//Quelltext
{$ENDREGION}

nachti1505 20. Okt 2010 14:29

AW: Anweisungen, Schleifen etc. einklappen?
 
Zitat:

Zitat von pustekuchen (Beitrag 1056700)
Zitat:

Will you please add method folding and other custom painting to the IDE's code editor?

The functionality necessary to hide code lines is not surfaced by the Borland Open Tools API, and it would be unsafe and extremely complicated to implement without help from the IDE. Custom painting in the code editor isn't supported by the OTA either, so it requires low level hacking (windows hooks, runtime VMT patching, etc.) that is fairly error-prone and can slow down editing actions considerably, so as of yet nobody on the GExperts team has looked into this. Feel free to send us code contributions toward these features, but since code folding is present in Delphi 8 and greater, that feature is probably not worth implementing at this point.
Weil das nicht klappt, macht man es dann so:

Delphi-Quellcode:
{$REGION 'MeineRegion'}
//Quelltext
{$ENDREGION}

Und das wird in Delphi 7 genauso wenig funktionieren, da die grundlegenden Strukturen für Code-Folding (s.o.) überhaupt nicht da sind. Trotzdem danke...!

pustekuchen 20. Okt 2010 14:34

AW: Anweisungen, Schleifen etc. einklappen?
 
Ahh ok, Naja hab bis jetzt nur mit D2010 gearbeitet ;)

himitsu 20. Okt 2010 14:50

AW: Anweisungen, Schleifen etc. einklappen?
 
Delphi-Quellcode:
{$REGION 'MeineRegion'}
//Quelltext
{$ENDREGION}
D7 meckert hier sogar, da es diese "Compiler"-Anweisung nicht kennt.


Darum hatte ich, unter Anderem, in meinem himXML auch die Regionen in einem {$IFDEF} vorm Compiler versteckt.


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:17 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz