picture box?
Brought to you by:
kprobst
Hi,
first of all i must say i'm impressed with your work and
your website.
I have searched for an enhanced button, in that it will
display an image or icon on the left hand side (along
with caption).
Borland products use them and also, i think, PowerBuilder.
I didn't find any sample, so... i would be very gratefull if
you could extend your custom button to work in
abovementioned manner.
regards, Eling
(xsme@gmx.net)
Logged In: NO
sorry, it was late - i should've written 'picture button'...
Logged In: YES
user_id=677921
The CButtonCtl class could not (should not) be modified to do
this. However, the 2.1 release will include a class called
CHoverButton that creates a "hovering" command button from
a picture box. Perhaps it can be tied to a CImageListCtl and
some drawing code added. The issue is really the handling of
the images since allowing for different formats and sizes will
get complicated fast...
Still, there are OCX libraries out there that will do what you
want... if you're looking for a packaged solution I'd
recommend going with one of those.
Logged In: NO
dear mr (Herr?) Probst,
thanks for the quick response - in the mean time i slightly
modified your CHoverButton and used that to satisfaction...
I'm still anxious to see the new release, though.
cheers, Eling
(xsme@gmx.net)