Solved

Title Bar - Device Context and Override Draw.

Posted on 1998-10-21
8
332 Views
Last Modified: 2010-04-06
I already have have canvas access to the title bar of my application, and i draw a bitmap here, BUT
i need to override the Close,Minimize,Maximize buttons getting drawn,
they should still be there JUST not getting drawn, i want to draw them my self.

Evt Sample code for a Full Override and custom paint would be great.

Mvh.
BrainWare
0
Comment
Question by:brainware
  • 4
  • 3
8 Comments
 
LVL 20

Expert Comment

by:Madshi
ID: 1343847
You could set "borderIcons:=[]" and then handle all the drawing and mouse down/move/click stuff by yourself (a lot of work)...
You could use a Form without a border and simulate the whole title bar (even more work)...

Regards, Madshi.
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1343848
mmm, what about just drawing a filled rectangle above these cursors?
0
 
LVL 8

Accepted Solution

by:
ZifNab earned 100 total points
ID: 1343849
Hi brainware,

 why not, put bordericons to [] (like proposel of Matvey)
 and then draw all the three buttons yourself.. then with WHChitTest test if button is pushed or not

see for total source (not much). I can't explain it better.

http://www.delumpa.com/tips/forms/forms14.htm

Matvey, maybe this is what you mean, if so, you earn the points!

Regards,  Zif.
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 20

Expert Comment

by:Madshi
ID: 1343850
ZifNab, "my name is not Susan, so watch what you say...".   :-)
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1343851
oops, sorry Madshi.... Why do you both begin with Ma? Terrible sorry...
0
 
LVL 20

Expert Comment

by:Madshi
ID: 1343852
Doesn't matter - I will survive it (I guess)...   :-)
0
 
LVL 2

Author Comment

by:brainware
ID: 1343853
The info on site helped.. but it required alot more code..
but i thank you for the help.
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1343854
ok, sorry I wasn't more helpfull,
glad you solved it. Zif.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

832 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