Solved

Title Bar - Device Context and Override Draw.

Posted on 1998-10-21
8
330 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
 
LVL 20

Expert Comment

by:Madshi
ID: 1343850
ZifNab, "my name is not Susan, so watch what you say...".   :-)
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now