|
-
Dec 18th, 2002, 08:17 AM
#1
Thread Starter
Fanatic Member
Wrap text in toolbar button
Hi
I'm dynamically adding buttons to a toolbar control as shown below:
VB Code:
Dim menuitem As CMenuItem
Dim tbutton As ToolBarButton
tbrMenu.Buttons.Clear()
For Each menuitem In menulist
tbutton = New ToolBarButton()
With tbutton
.Text = menuitem.MenuCaption
End With
tbrMenu.Buttons.Add(tbutton)
Next
Some of the captions are quite long and the button is getting wide. How can I keep the button to a fixed width and then force the text to wrap itself if the width of the button is not enough?
Thanks
Using VB.NET 2003/.NET 1.1/C# 2.0
http://del.icio.us/rajoo
Blow your mind, smoke gunpowder
Ashes to ashes, dust to dust
If God won't have you, the devil will. - Author unknown
Don't follow me, I'm lost too ...
-
Dec 19th, 2002, 01:12 AM
#2
Thread Starter
Fanatic Member
On another note, can somebody route me to a good tutorial on the Toolbar on the web?
Thanks
Using VB.NET 2003/.NET 1.1/C# 2.0
http://del.icio.us/rajoo
Blow your mind, smoke gunpowder
Ashes to ashes, dust to dust
If God won't have you, the devil will. - Author unknown
Don't follow me, I'm lost too ...
-
Sep 25th, 2003, 03:53 PM
#3
Member
I saw you created dynamic toolbar with toolbarbuttons.
I created a dymanic toolbar to and it works.
But everytime I press on one the buttons the "button_click"
is fired 6 times (I think the 6 times is because I created 6 buttons)
Do you have to same problem and can you help me to resolve this?
Thank a lot,
AXH
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|