473,387 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

GUI construction issues

I have a tab control, with several tabs, with RichTextBoxes in a few
of them, they are all dock = fill. One of them becomes larger than
the rest (position = 0,0 instead of 3,3). It's not a big deal, but I
hate that this GUI editor just doesn't work sometimes, and it's
noticeable. Does anyone know why these quirks occur, and how to fix
them?

thanks,
Zytan

Jun 7 '07 #1
4 1206
For the single tab page that this doesn't work on, if it make the
control not filled, and drag it to meet the top-left of the tab page,
I can see that it chooses its resting place 3 pixels off. There are
no other controls that could possibly effect this. Unless other
controls in other tab pages are invisibly causing issues, but I can't
see this. The editor is simply broken.

Zytan

Jun 7 '07 #2
Even manually changing the designer code to be like the rest doesn't
fix the problem. The code is even left changed to my settings, so it
doesn't change it back. But, when the program runs, or the form is
shown in the GUI designer, it shows "Fill"ed more than it should be,
where the rest are spaced away 3 pixels.

Zytan

Jun 7 '07 #3
On Thu, 07 Jun 2007 08:07:17 -0700, Zytan <zy**********@gmail.comwrote:
Even manually changing the designer code to be like the rest doesn't
fix the problem. The code is even left changed to my settings, so it
doesn't change it back. But, when the program runs, or the form is
shown in the GUI designer, it shows "Fill"ed more than it should be,
where the rest are spaced away 3 pixels.
While I can't rule out the "editor is broken" theory, I haven't had any
such issues with my tab controls in my forms. I've never seen the
behavior you describe.

I strongly suspect that there's some sort of layout issue going on and
that the behavior you're seeing is "by design", even if frustrating. You
should look carefully at all the properties for the tab that doesn't work
and compare them to the tabs that do work. I think it's likely
*something* is different, and when you find out what's different you'll
probably find out how to fix it. :)

Pete
Jun 7 '07 #4
While I can't rule out the "editor is broken" theory, I haven't had any
such issues with my tab controls in my forms. I've never seen the
behavior you describe.
I've seen things like with with tabs a lot. Sometimes I'll put a
RichTextBox in there, and anchor it to all sides, and snap it to all
sides (made one side is snapped to a button or something) and when I
run the form, the positioning of the RichTextBox is changed. Manually
setting it up again fixes the issue.
I strongly suspect that there's some sort of layout issue going on and
that the behavior you're seeing is "by design", even if frustrating.
I don't think so, because I have multiple tabs of the SAME tab
control, and each tab has just one RichTextBox with dock = fill. So,
I can't imagine why the behaviour should change from one to the other.
You
should look carefully at all the properties for the tab that doesn't work
and compare them to the tabs that do work.
I looked in the form designer code, and they are all the same, except
the position values. Even when I go and manually change the position
values to be the same as the rest (which is what the GUI designer is
supposed to set), the GUI designer and the run-time app both choose
different position values, even though my code remains unchanged (the
position values in the code remain the same as the others, after I
changed it to be the same). So, that implies that the positioning
logic of dock = fill, in both the GUI designer and the run-time, are
choosing new positions (that is, the position values are totally
meaningless, since they are computed in real time).

So, you are correct that it is form positioning logic. I just don't
see why the logic should differ from one tab to another tab, in the
same tab control, when both tabs only have a single dock=fill
RichTextBox.
I think it's likely
*something* is different, and when you find out what's different you'll
probably find out how to fix it. :)
I agree. The evidence suggests that the form positioning logic *is*
using different data, and thus arriving at a different result. Just
*what* is different?

(This is not a big deal, it's just an annoyance.)

Thanks, Pete

Zytan

Jun 8 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Anthony | last post by:
Hi, Can anyone help me out here, I'm looking for a design (pattern?) for a-synchronic construction of a class. I need this design in a framework which will run in a multithreaded system. I...
2
by: Steve | last post by:
Hi Folks, Sorry for this stupid question, but how do you handle errors during class construction. In other words, if I have a class that loads a file, and during loading, an error occurs, how do...
14
by: trying_to_learn | last post by:
i am on the chapter on copy construction in C++ in the code (see below), the author says if u pass the object by value as in HowMany h2 = f(h); ....then a bitwise object is created w/o calling...
3
by: lauren quantrell | last post by:
In a table design, properties window there is the Indexes/Keys tab. I want to create a few indexes. Row myID is the PK. I also want indexes on rows myOne, myTwo, myThree. In the selected...
19
by: Bill Cohagan | last post by:
I'm constructing an ASP page that I'd like to test by writing a program that simulates "many" users hitting the submit button on a form. I assume it's possible to manually construct an httprequest...
3
by: christopher.davidson | last post by:
Hello, I am working with XML files and utilizing Array functions to take the XML data and combined it with some html code to display a particular page. The process currently works like so: ...
7
by: BeautifulMind | last post by:
In case of inheritence the order of execution of constructors is in the order of derivation and order of destructor execution is in reverse order of derivation. Is this case also true in case...
15
by: Victor Bazarov | last post by:
Hello, Take a look at this program: ----------------------------------- class B { B(const B&); B& operator=(const B&); public: B(int);
0
by: Roger Ineichen | last post by:
Hi Tim For a usecase like this, I personaly recommend to defina all interfaces in one module which probably is a namespace if you need alot of interfaces to define. e.g. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.