Solved

Modifying OpenDialog1 (Colors, background,...)

Posted on 2000-03-06
3
158 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

728 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