Print Page | Close Window

CommandBars with two columns buttons

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=3246
Printed Date: 05 October 2024 at 11:32pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CommandBars with two columns buttons
Posted By: ofarcis
Subject: CommandBars with two columns buttons
Date 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.




Replies:
Posted By: SuperMario
Date Posted: 21 November 2005 at 11:47am
Dim PaintBar As CommandBar
 
Set PaintBar = CommandBars.Add("Paint", xtpBarLeft)


Posted By: ofarcis
Date 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. 


 

 



Posted By: nighthawk
Date Posted: 24 November 2005 at 3:16pm
Sounds like you want a toolbox.  Check out the toolbox sample in the common controls folder.


Posted By: ofarcis
Date 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.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net