There is a style property should be set to graphical to show a bitmap
image.
-----Original Message-----
From: professional vb [SMTP:pro_vb@p...]
Sent: Wednesday, February 07, 2001 9:54 PM
To: professional vb
Subject: [pro_vb] Creating an IDE-aware Add-In - Part 2
Okay, I was able to add a button to the toolbar using the
CommandBarButton
object
and the commandbars collection. the thing now is, the button is a blank
button. no
text, no bitmap. i have tool tip text, description text and caption all
set
to
something, but nothing shows on the button itself (although I do get the
correct
tool tip text). There aren't any other properties that I can see as
holding a
bitmap location or file. There is one property called OLEAction, but the
action
part doesn't say "Place Image Here" to me.
normally, i'd use the ImageList control, but i dont see how i can VB's
toolbar to my
image list.
any one have any ideas?
Thanks,
John
--- Matt Walsh <matthew.walsh@n...> wrote:
> hello john,
>
> While i cannot speak to the hot-key idea, you can place a picture/image
on
> the toolbar, leave it blank with no borders and place the button inside
the
> picture image (on top of)...now you have your button 'on the toolbar'
>
> While i have never liked this type of 'fix', it works. :)
>
> -----Original Message-----
> From: John Pirkey [mailto:mailjohnny101@y...]
> Sent: Wednesday, February 07, 2001 3:09 PM
> To: professional vb
> Subject: [pro_vb] Creating an IDE-aware Add-In ??
>
>
> Hello all. I'm trying to create an Addin that acts as a custom
> intellisense, so to speak. Basically, we have a lot of structures in
use
> (code comments, udts, etc) and we want to be able to use a CTRL+SPACE -
> like feature to bring up a custom form with the desired list of
> structures. We already have this form (which knows what we have
selected
> in the code window) and we can call it by going into the Add-Ins menu
and
> choosing it, but we REALLY want to be able to assign it a Hot-Key
> (CTRL+SHFT+SPACE or something). Our problem is that we can't get the
> addin to accept any keystrokes without manually starting it first. we
> wouldn't mind having to start the add-in when we first bring up VB, but
> then it needs to running, in "backround mode", until we hit the hot key
> combo. we just can't seem to keep this add-in running AND receive the
> keystrokes from the other windows.
>
> If this just simply can't be done, we'd settle for getting a button on
the
> toolbar and then just clicking the button, instead of going through the
> menus. i haven't found a way to get a button on the toolbar yet
either.
> the documentation leaves more than a little to be desired.
>
> any ideas are very welcome.
>
> thanks,
>
> john
>
>
> John Pirkey
> MCSD
> www.stlvbug.org
>
John Pirkey
MCSD
John@S...
http://www.stlvbug.org