Print Page | Close Window

Control Position

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=6877
Printed Date: 03 March 2025 at 5:14pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Control Position
Posted By: kanitamildasan
Subject: Control Position
Date Posted: 16 April 2007 at 6:09am
Hi all,
 
     
 
I wish to make the second control be in the same location for my five toolbars

thanks in advance




Replies:
Posted By: Damsku
Date Posted: 16 April 2007 at 7:26am
Hi, i'm not totally sure i understood what you are trying to do, if the picture is what you are trying to achieve:
- In the Resource Editor of Visual Studio, you have to multiselect the 5 edit box controls by holding SHIFT pressed while selecting the controls with the mouse.
- Then right click on one of the selected controls, and the contextual menu has an item called "Align lefts".
- Click it and the 5 edit box should be aligned with the position of the first control you clicked when doing the multiselection.

If you meant something else, sorry for the misunderstanding, i'm not sure of what you mean by second control :)


-------------
damsku


Posted By: kanitamildasan
Date Posted: 16 April 2007 at 12:00pm
thanks for the reply :) but i didnt mean this i am looking for the solution to acheive something like the screenshot (outlook express) using CJ's toolbar
 
 
ps : i am using XT 10.x Pro


Posted By: kanitamildasan
Date Posted: 16 April 2007 at 12:06pm

I've missed to say that i can't use dialog (ex dialogbar) i have to use five toolbars ( one row each using stretched flag)



Posted By: Damsku
Date Posted: 16 April 2007 at 1:24pm
Ohhhhhhhhhhhhhh ! Sorry :o
Then i'm afraid i won't be much help since i never used toolbars for that kind of purpose.
But on the screenshot you sent, the edit box are not embedded in a toolbar i think. I mean, i wouldn't use toolbars to do that.
Isn't there a CFormView or similar class you could be using there? It would sound more convenient to me.


-------------
damsku


Posted By: Oleg
Date Posted: 16 April 2007 at 3:04pm
Hi,
 
in 10.4.2 you can call SetWidth for first controls:
 
pToolbar1->GetControl(0)->SetWidth(20);


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: kanitamildasan
Date Posted: 18 April 2007 at 12:19am
thanks for reply but i am using 10.2 :(



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