Print Page | Close Window

(solved) add some toolbar in one form

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=11849
Printed Date: 05 May 2024 at 7:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: (solved) add some toolbar in one form
Posted By: nenkalo
Subject: (solved) add some toolbar in one form
Date Posted: 16 August 2008 at 9:30am
hi
i have one main form that it has main toolbat top of form narmally .
in center of this form one text box inserted . i want to add one toolbar top of this text box . for example it has right to left justify , center justify and ... .

how can i do insert this toolbar top of test box ?

tnx


-------------
Product: Xtreme SuitePro (ActiveX) version 12.0.1
Platform: Windows XP (32bit)
Language: Visual Basic 6.0



Replies:
Posted By: Aaron
Date Posted: 16 August 2008 at 10:26am
Hi,
 
Just add PictureBox to form, put textbox in PictureBox and attach Commandbars to PictureBox:
 
CommandBarsTextbox.AttachToWindow Picture1.hWnd
 
and use:
 
Private Sub CommandBarsTextbox_ResizeClient(ByVal Left As Long, ByVal Top As Long, ByVal Right As Long, ByVal Bottom As Long)
    Text1.Move Left, Top, Right, Bottom - Top
End Sub
 
to resize textbox in picturebox.
 
tip:
If you want the picturebox always to be centered in form you could use resizer control as well.
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: nenkalo
Date Posted: 16 August 2008 at 11:30am
very tnx Aaron 




-------------
Product: Xtreme SuitePro (ActiveX) version 12.0.1
Platform: Windows XP (32bit)
Language: Visual Basic 6.0



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