Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - CommandBars with two columns buttons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CommandBars with two columns buttons

 Post Reply Post Reply
Author
Message
ofarcis View Drop Down
Newbie
Newbie


Joined: 18 November 2005
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote ofarcis Quote  Post ReplyReply Direct Link To This Post Topic: CommandBars with two columns buttons
    Posted: 18 November 2005 at 7:54am

How i can develop a vertical commandBars with two column buttons similar to Paint or Photoshop.

Thanks, Oscar.

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 21 November 2005 at 11:47am
Dim PaintBar As CommandBar
 
Set PaintBar = CommandBars.Add("Paint", xtpBarLeft)
Back to Top
ofarcis View Drop Down
Newbie
Newbie


Joined: 18 November 2005
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote ofarcis Quote  Post ReplyReply Direct Link To This Post Posted: 24 November 2005 at 9:08am

Originally posted by SuperMario SuperMario wrote:

Dim PaintBar As CommandBar
 
Set PaintBar = CommandBars.Add("Paint", xtpBarLeft)

With this solution only make a bar in the left side. The problem is to make a bar with two columns of icons (buttons), not one column and multiple rows.

This is an example:

    Set Dibujo = Barras.Add("Dibujo1", xtpBarLeft)
    Dibujo.BarID = IDBARRADIBUJO
    Dibujo.SetIconSize 32, 32
    AddButton Dibujo.Controls, xtpControlButton, ID_DIB_SELECCION, "Selección", False, True
    AddButton Dibujo.Controls, xtpControlButton, ID_DIB_LAPIZ, "Lápiz", False, True

This make a left bar with one column and two rows. I need two colums and one row.

Thanks, Oscar. 


 

 

Back to Top
nighthawk View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 June 2004
Status: Offline
Points: 167
Post Options Post Options   Thanks (0) Thanks(0)   Quote nighthawk Quote  Post ReplyReply Direct Link To This Post Posted: 24 November 2005 at 3:16pm
Sounds like you want a toolbox.  Check out the toolbox sample in the common controls folder.
Back to Top
ofarcis View Drop Down
Newbie
Newbie


Joined: 18 November 2005
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote ofarcis Quote  Post ReplyReply Direct Link To This Post Posted: 28 November 2005 at 3:56am

Originally posted by nighthawk nighthawk wrote:

Sounds like you want a toolbox.  Check out the toolbox sample in the common controls folder.

This sample group de icons better, but can't group in two columns similar to the image. Any other solution?

Thanks, Oscar.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.