AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Sprachen und Entwicklungsumgebungen Die Delphi-IDE TOpenDialog/TSaveDialog patch for Delphi 5 - Minor
Thema durchsuchen
Ansicht
Themen-Optionen

TOpenDialog/TSaveDialog patch for Delphi 5 - Minor

Ein Thema von rd5pro · begonnen am 26. Sep 2006
Antwort Antwort
rd5pro
(Gast)

n/a Beiträge
 
#1

TOpenDialog/TSaveDialog patch for Delphi 5 - Minor

  Alt 26. Sep 2006, 19:45
Beim Schmökern gefunden (es geht um die PlacesBar am linken Rand der Öffnen-/Speichern-Dialoge). Der Patch lässt sich vermutlich nur durchführen, wenn man D5 Professional hat.

TOpenDialog/TSaveDialog patch for Delphi 5 - Minor
--------------------------------------------------
Delphi 5 doesn't support "Vertical buttons row on the left" style in browse dialogs.
Patch is the following.

1. Open commdlg.pas, search for 2 definitions:
tagOFNA = packed record
tagOFNW = packed record

At the end of both records, after:
lpTemplateName: PXXXChar;

add fields:
pvReserved: Pointer;
dwReserved: DWORD;
FlagsEx: DWORD;

2. Open Dialogs.pas, search for TOpenDialog.DoExecute.
Replace:
lStructSize := SizeOf(TOpenFilename);

with:

if (Win32MajorVersion >= 5) and (Win32Platform = VER_PLATFORM_WIN32_NT) or { Win2k }
((Win32Platform = VER_PLATFORM_WIN32_WINDOWS) and (Win32MajorVersion >= 4) and (Win32MinorVersion >= 90)) then { WinME }
lStructSize := SizeOf(TOpenFilename)
else
lStructSize := SizeOf(TOpenFilename) - (SizeOf(DWORD) shl 1) - SizeOf(Pointer); { subtract size of added fields }

3. Recompile commdlg.pas and Dialogs.pas and update their *.DCU in Delphi Lib folder.
Patch by Alexey Torgashin.

Habe den Patch mit D5pro durchgeführt, klappte prima. Meine anschließend neu kompilierten Projekte liefen einfavh durch.

Für D5 (nicht pro) empfehle ich die Komponente AgOpenDialog von:
Author: Deepak Shenoy
shenoy@agnisoft.com
Copyright (C) 2000 Agni Software Pvt. Ltd.
All Rights Reserved.
http://www.agnisoft.com

Roland
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 19:14 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz