• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 342
  • Last Modified:

Title Bar - Device Context and Override Draw.

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
brainware
Asked:
brainware
  • 4
  • 3
1 Solution
 
MadshiCommented:
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
 
ZifNabCommented:
mmm, what about just drawing a filled rectangle above these cursors?
0
 
ZifNabCommented:
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
MadshiCommented:
ZifNab, "my name is not Susan, so watch what you say...".   :-)
0
 
ZifNabCommented:
oops, sorry Madshi.... Why do you both begin with Ma? Terrible sorry...
0
 
MadshiCommented:
Doesn't matter - I will survive it (I guess)...   :-)
0
 
brainwareAuthor Commented:
The info on site helped.. but it required alot more code..
but i thank you for the help.
0
 
ZifNabCommented:
ok, sorry I wasn't more helpfull,
glad you solved it. Zif.
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now