Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Title Bar - Device Context and Override Draw.

Posted on 1998-10-21
8
Medium Priority
?
341 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

618 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