Page 1 of 1

Non-standard Button

Posted: Wed Jun 21, 2006 5:58 am
by James Bott
I am trying to make a button that doesn't look like a button. I am wondering if I should just use a bitmap and then detect a click on it, or can the OWNERDRAW style be used to create a non-standard button? I don't really understand OWNERDRAW.

Any ideas?

James

Posted: Wed Jun 21, 2006 6:30 am
by Antonio Linares
James,

Both ways will be ok. You can use a bitmap that shows a button -the way you want it-. Ownerdraw means that the control will not be painted by itself. You will be notified to paint it yourself.

Posted: Wed Jun 21, 2006 6:54 am
by James Bott
Antonio,

Thanks. Is there an example in the \samples directory, or do you have an example of either method?

James

Posted: Wed Jun 21, 2006 2:22 pm
by Gale FORd
TSButton lets you have non standard buttons shapes.

Posted: Wed Jun 21, 2006 4:36 pm
by Antonio Linares
James,

You may review Class TSButton as Gale comments you.

Also, you may review FWH Class TButtonBmp to see how we change the standard painting of a button, though we don't use the ownerdraw style.

Posted: Fri Jun 23, 2006 4:40 pm
by James Bott
Gale and Antonio,

Thanks for the ideas, guys, I will look into them.

James