Einzelnen Beitrag anzeigen

Benutzerbild von nachti1505
nachti1505

Registriert seit: 7. Apr 2007
188 Beiträge
 
Delphi 7 Enterprise
 
#16

AW: Anweisungen, Schleifen etc. einklappen?

  Alt 20. Okt 2010, 14:29
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...!
  Mit Zitat antworten Zitat