 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Jim Brown Guest
|
Posted: Mon May 15, 2006 10:14 pm Post subject: Inconsisten Appearance of Controls |
|
|
I've ported an app from BC++ 5.02 to BCB 6.0 and I am seeing an inconsistent
appearance in controls. By this I mean, I usually see the controls as I
expect upon their initial display but after I close the form and re-open
(i.e. recreate them), they are usually -- but not always -- different,
especially their fonts. Sometimes the fonts are bolded but also the overall
size of the form has changed. Thi shappens on both static forms and forms
containing dynamically-defined controls.
Any ideas on what might be happening?
jim@wideband-sys.com |
|
| Back to top |
|
 |
Leo Siefert Guest
|
Posted: Tue May 16, 2006 1:14 pm Post subject: Re: Inconsisten Appearance of Controls |
|
|
Jim Brown wrote:
| Quote: | I've ported an app from BC++ 5.02 to BCB 6.0 and I am seeing
an inconsistent appearance in controls.
|
Not enough info to go on here. What kind of app - OWL? WinAPI?
How did you "port" it to BCB? You are posting in the VCL group and
asking about controls, which implies that you have somehow "ported"
the gui from an BC5 app to BCB/VCL, but to the best of my knowledge
there is no way to do that other than completely rebuilding it by
hand.
If your problem is actually with OWL/OWLNExt being built in BCB6, then
you would be better posting in an OWL group or on the OWLNExt
listserver, as most of the people here probably have never even used
OWL.
If by "port" you mean that you recreated a similar UI by hand using
VCL controls as you would with a new project, then the fact that it is
"ported" from BC5 is probably irrelevant, and what we really need is a
description of how to reproduce the exact problems you are having.
If the inconsistency you are seeing is from calling dlls containing
dialogs or forms built in BC5 from a VCL project, then I suggest that
you don't do that - BCB5/OWL had its own replacement for the windows
common controls (done because OWL works in environments where they are
not available). If you are still working in BC5 you could try
rebuilding the OWL dlls with the common controls instead of the OWL
ones and see if that helps.
BTW - I have used OWL extensively and have recreated some of my OWL
projects in VCL. I have also rebuilt OWL projects using the BCB
compiler. I have not seen the problems you are referring to.
- Leo |
|
| Back to top |
|
 |
Jim Brown Guest
|
Posted: Tue May 16, 2006 5:14 pm Post subject: Re: Inconsistent Appearance of Controls |
|
|
Thanks for the thorough reply Leo. Yes, I agree the "porting" is
irrelevant. The GUI was recoded in a minimalist fashion by recompiling the
old OWL code and fixing what was necessary to get it built using BCB6/VCL.
What appears to be happening is forms and their controls are scaled a bit
larger than they were designed any time after a specific modal form has been
displayed and dismissed. This form is nearly 2000 lines of code, mainly b/c
it contains logic to support dynamic construction of GUI controls based on
the run-time configuration so I'm apprehensive about posting such a large
volume of code, especially since its predicated on a number of other header
files. I could e-mail it to you directly if you are willing to take a quick
look at it. My e-mail address is jim@wideband-sys.com. Let me know.
I'm going thru the code now and comparing it more thoroughly with what was
coded in BC++ 5.02 and experimenting -- trial and error style.
Thanks Leo!
"Leo Siefert" <lIHATESPAMsiefert (AT) senate (DOT) michigan.gov> wrote in message
news:hafj621394dtkb6rh9cmquveuuv666ude1 (AT) 4ax (DOT) com...
| Quote: | Jim Brown wrote:
I've ported an app from BC++ 5.02 to BCB 6.0 and I am seeing
an inconsistent appearance in controls.
Not enough info to go on here. What kind of app - OWL? WinAPI?
How did you "port" it to BCB? You are posting in the VCL group and
asking about controls, which implies that you have somehow "ported"
the gui from an BC5 app to BCB/VCL, but to the best of my knowledge
there is no way to do that other than completely rebuilding it by
hand.
If your problem is actually with OWL/OWLNExt being built in BCB6, then
you would be better posting in an OWL group or on the OWLNExt
listserver, as most of the people here probably have never even used
OWL.
If by "port" you mean that you recreated a similar UI by hand using
VCL controls as you would with a new project, then the fact that it is
"ported" from BC5 is probably irrelevant, and what we really need is a
description of how to reproduce the exact problems you are having.
If the inconsistency you are seeing is from calling dlls containing
dialogs or forms built in BC5 from a VCL project, then I suggest that
you don't do that - BCB5/OWL had its own replacement for the windows
common controls (done because OWL works in environments where they are
not available). If you are still working in BC5 you could try
rebuilding the OWL dlls with the common controls instead of the OWL
ones and see if that helps.
BTW - I have used OWL extensively and have recreated some of my OWL
projects in VCL. I have also rebuilt OWL projects using the BCB
compiler. I have not seen the problems you are referring to.
- Leo |
|
|
| Back to top |
|
 |
Leo Siefert Guest
|
Posted: Wed May 17, 2006 12:14 pm Post subject: Re: Inconsistent Appearance of Controls |
|
|
Jim Brown wrote:
| Quote: | The GUI was recoded in a minimalist fashion by recompiling the
old OWL code and fixing what was necessary to get it built
using BCB6/VCL.
|
So, is all of the OWL code gone then? Are all of the controls now VCL
or are you still calling up the old OWL libs to create some of the UI?
| Quote: | What appears to be happening is forms and their controls are scaled
a bit larger than they were designed any time after a specific modal
form has been displayed and dismissed.
|
Do you mean that showing a modal form changes the display of the
calling form? Or does the modal form appear different the second time
it is displayed? Are both forms entirely VCL for the UI?
| Quote: | I could e-mail it to you directly if you are willing to take a quick
look at it.
|
I would prefer that you try to create a small compilable sample
showing the problem and post the code here. First, that is more in
line with the guidelines of the forum - answers are intended to help
all participants. Second, I am extremely busy at work now, and I'm
not sure I have the time to go through 2000 lines of code for you.
- Leo |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|