Solved

Modifying OpenDialog1 (Colors, background,...)

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi Spellcheck in Webbrowser 1 51
Process Javascript errors with Delphi TWebBrowser 1 209
Printing problem 2 111
Dev express lookupcombo 3 47
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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…

726 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