Non-standard Button

Non-standard Button

Postby James Bott » Wed Jun 21, 2006 5:58 am

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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Antonio Linares » Wed Jun 21, 2006 6:30 am

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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41937
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby James Bott » Wed Jun 21, 2006 6:54 am

Antonio,

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

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Gale FORd » Wed Jun 21, 2006 2:22 pm

TSButton lets you have non standard buttons shapes.
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Postby Antonio Linares » Wed Jun 21, 2006 4:36 pm

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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41937
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby James Bott » Fri Jun 23, 2006 4:40 pm

Gale and Antonio,

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

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 110 guests