Toolbar buttons not resizing properly 
Author Message
 Toolbar buttons not resizing properly

Hi,

I have a toolbar with several buttons on it.  I have some code that loops
over the buttons and changes them to a larger size on demand (using
ButtonHeight and ButtonWidth properties).  Using this logic, I can switch
back and forth from large to small buttons just fine.

I recently tried adding captions to the buttons on the fly.  When the user
chooses large buttons, I set the captions to some text (stored locally in
the Tag field for each button).  But when I set the buttons to the small
size, I "delete" the captions by setting them to an empty string (literal
"").  In this case, the toolbar resizes itself to a smaller size, and the
smaller icons are assigned ok, but the button height stays large (buttons
appear now as being "truncated" off the bottom of the toolbar), and the
button width stays wide.  It seems like once I set the caption to anything,
the buttons will not get small again.  I have tried setting the caption to
Nothing, vbNullString, etc. as well as refreshing the toolbar -- all to no
avail.

Anyone ever seen this or have any clue about why this might not work.  I
checked MSKB, but found no message for this phenomenon...

Thanks to all in advance,
  Vinnie



Wed, 15 Mar 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Open a custom form with a module-button (not a toolbar button)

2. Resizing ToolBar buttons

3. Toolbar buttons won't resize after installation of SP3

4. Q: Resizing Toolbar Buttons

5. Buttons on Toolbar automatically resizing

6. toolbar problem/resize buttons

7. Q: Resizing Toolbar Buttons

8. Q: Resizing Toolbar Buttons

9. Small toolbar look - toolbar control doesn't work properly

10. Toolbar button caption does not support ALT keys

11. Toolbar Button Will Not Unpress

12. Toolbar not showing buttons

 

 
Powered by phpBB® Forum Software