Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Control Position
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Control Position

 Post Reply Post Reply
Author
Message
kanitamildasan View Drop Down
Senior Member
Senior Member
Avatar

Joined: 01 February 2006
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote kanitamildasan Quote  Post ReplyReply Direct Link To This Post Topic: Control Position
    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

Back to Top
Damsku View Drop Down
Newbie
Newbie


Joined: 14 April 2007
Location: Finland
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote Damsku Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
kanitamildasan View Drop Down
Senior Member
Senior Member
Avatar

Joined: 01 February 2006
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote kanitamildasan Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
kanitamildasan View Drop Down
Senior Member
Senior Member
Avatar

Joined: 01 February 2006
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote kanitamildasan Quote  Post ReplyReply Direct Link To This Post 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)

Back to Top
Damsku View Drop Down
Newbie
Newbie


Joined: 14 April 2007
Location: Finland
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote Damsku Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
kanitamildasan View Drop Down
Senior Member
Senior Member
Avatar

Joined: 01 February 2006
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote kanitamildasan Quote  Post ReplyReply Direct Link To This Post Posted: 18 April 2007 at 12:19am
thanks for reply but i am using 10.2 :(
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.047 seconds.