Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...This forum is the most helpful site I've ever used. I used to use Deja.com; but, this site is better - hands down!..."

Geography

Where in the world do Tek-Tips members come from?
leit0050 (TechnicalUser)
5 Oct 07 18:34
Hi,
    This should be a very basic question.  On a groupbox on the form, for example
TGroupBox *GroupBox1;

if I do

someVar = GroupBox1->Height;

I should get the value of the height of the goupbox as drawn on the form, correct?  This is confusing me because I'm upgrading a project that uses exactly this syntax.  The form height, width, top, and left are all set.  However, when I use the debugger, once I get to see that object it is showing all 0's for each of these properties.  I don't know if it was a problem with conversion or not.  Does anyone have any ideas on this?

I'm considering just copying the old component, pasting, deleting the old, and changing the new ones name.  If I do copy and paste, the component shows up proper.  Weird

Thankyou
2ffat (Programmer)
8 Oct 07 7:48
According to what I've read, yes, that should work. Why the debugger chokes on it, I don't understand. ClientWidth and ClientHeigth should also show the same thing.

James P. Cottingham
-----------------------------------------
I'm number 1,229!
I'm number 1,229!

leit0050 (TechnicalUser)
8 Oct 07 9:08
K,
    Let me dig into it and see what I come up with.  So far, the debugger is doing strange things unless I'm not using it properly (which is a possibility :) ).  

leit0050 (TechnicalUser)
8 Oct 07 14:50
Hi,
     I have confirmed that ->Height and ->Width are indeed the sizes of the windows.  My problem is coming from a different location which I will make a new post for.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close