Solved

Modifying OpenDialog1 (Colors, background,...)

Posted on 2000-03-06
3
155 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

840 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