RE: Width of NSSegmentedControl
RE: Width of NSSegmentedControl
- Subject: RE: Width of NSSegmentedControl
- From: "Peter Karlsson" <email@hidden>
- Date: Fri, 17 Sep 2004 10:02:05 +0000
I see now in the docs that I can't get the individual width of the segments
if the segments is set to autosize (they are in my app), they will return 0
as the width in that case. I'm out of ideas. I need to know the width to
make my scrollview work. Or is there other ways?
Please, help...
Peter
From: "Peter Karlsson" <email@hidden>
To: email@hidden
Subject: Width of NSSegmentedControl
Date: Fri, 17 Sep 2004 07:52:51 +0000
Dear list!
I have a NSSegmentedControl that the user add segments to with a button. I
need to know the width of the segmented control but... I can't use this
code:
targetRect = [mySegmentedControl frame];
float width = targetRect.size.width;
This will only give me the width of the control, not the width of all
segments together. It seems that the width of the control has nothing to do
with the width of all segments added together. Must I use a loop and add
individual segment width's together to get the final width?
Best regards Peter
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden