Menu

#13 picture box?

open-later
nobody
3
2004-04-09
2004-04-08
Anonymous
No

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)

Discussion

  • Nobody/Anonymous

    Logged In: NO

    sorry, it was late - i should've written 'picture button'...

     
  • Klaus H. Probst

    Klaus H. Probst - 2004-04-09

    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.

     
  • Klaus H. Probst

    Klaus H. Probst - 2004-04-09
    • priority: 5 --> 3
    • status: open --> open-later
     
  • Nobody/Anonymous

    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)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.