?
Solved

Title Bar - Device Context and Override Draw.

Posted on 1998-10-21
8
Medium Priority
?
338 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
[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
  • 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 300 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

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

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…
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 tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month11 days, 14 hours left to enroll

752 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