Solved

Modifying OpenDialog1 (Colors, background,...)

Posted on 2000-03-06
3
154 Views
Last Modified: 2010-04-04
Hi !
I'm working with Delphi 3.0 C/S and Win98SE. How can i modifying the OpenDialog1- or SaveDialog1-layout? I want to put a bitmap, or a new color as a new property. Is it possible? Can i change the foreground (text) color?

Thanks a lot for your help!
Greetings,
Ingo
 
0
Comment
Question by:Schmoekel
3 Comments
 

Expert Comment

by:zb_russia
ID: 2587081
Write own dialogues and use them from repositary. It will be the most right path. Infortunately, the systems dialogues and those, that are delivered with Delphi, do not submit possibilities, announced you.
0
 

Author Comment

by:Schmoekel
ID: 2587530
Hi zb_russia,

excuse me but i can't imaging that there's no solution :-(

Greetings,
Ingo
0
 
LVL 7

Accepted Solution

by:
ahalya earned 115 total points
ID: 2588377
Ingo,

The following code "Draws" a background to the standard OPENDIALOG.  You can insert a bitmap in a similar way.


procedure TForm1.Button1Click(Sender: TObject);


begin
OpenDialog1.Title := 'My File Open';
Timer1.Enabled := true;
if OpenDialog1.Execute then
 ...
end;

procedure TForm1.Timer1Timer(Sender: TObject);

var h, c, dc : HWND;
      b  : TBitmap;
      Cvs : TCanvas;

begin;
Timer1.Enabled := false;
h := FindWindow('#32770', 'My File Open');

B := TBitMap.Create;
B.LoadFromFile('C:\Windows\Clouds.BMP');

dc := GetDC(h);
Cvs := TCanvas.Create;
 try
 Cvs.Handle := dc;
 Cvs.Draw(0, 0, B);
finally
 Cvs.Free;
 end;
ReleaseDC(h, dc);
end;
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.

822 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question