Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - (solved) add some toolbar in one form
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

(solved) add some toolbar in one form

 Post Reply Post Reply
Author
Message
nenkalo View Drop Down
Groupie
Groupie
Avatar

Joined: 02 August 2008
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote nenkalo Quote  Post ReplyReply Direct Link To This Post Topic: (solved) add some toolbar in one form
    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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
nenkalo View Drop Down
Groupie
Groupie
Avatar

Joined: 02 August 2008
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote nenkalo Quote  Post ReplyReply Direct Link To This Post 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
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.297 seconds.