[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

position of dialogbar gripper is not lined up to left edge of window properly.

Posted on 2007-10-08
2
Medium Priority
?
255 Views
Last Modified: 2013-12-04
I created a dockable dialog bar with gripper. I also created CalcDynamicLayout() function to support resizing.  Everything seems working fine except the position of dialog bar is a little bit off when it's created for first time.  But, if I resized the window, then the dialog bar is lined up properly.  Any idea what might be missed.  thanks
0
Comment
Question by:yylibra61
2 Comments
 
LVL 49

Accepted Solution

by:
DanRollins earned 2000 total points
ID: 20037401
You could try calling
   RecalcLayout()

Looking at an old SDI app, I see that my normal sequence is call
   DockControlBar()
for each controlbar, then I call
    LoadBarState("MyBarState")
and if that fails (usually mening I've never called "SaveBarState() yet) I call a function that calls
   ShowControlBar(...)
for each one, followedd by a call to
       RecalcLayout()
0
 

Author Comment

by:yylibra61
ID: 20037443
It worked after I added a call to RecalcLayout().
Great, Thanks!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question