Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I get my PageFrame tabs to automatically expand with my text?

Status
Not open for further replies.

montypython1

Technical User
Jan 12, 2005
187
US
Greetings,

How do I get my PageFrame tabs to automatically expand with my text? I have tried changing the property "TabStyle" (there are only 2 options, Justified and NonJustified). The tabs DO expand if I also have "TabStretch" set to "1" (for multiple rows), but I do not want multiple rows.

Strangely, I have another application with the same form settings, and the PageFrame tabs work perfectly (they automatically expand with my text). I have checked my checked the properties of each form, but nothing stands out. I looked at the "INIT" property to see if there is some setting that is overwriting my form property, but am coming up blank. Also, "Themes" has been disabled, since that will sometimes override property settings. Nothing seems to work as expected.

Any ideas ???

Thanks,
Dave
 
Dave,

TabStyle is indeed the porperty you want. You need to set it to 1 (as you know). But you also need to set TabStretch to 0, otherwise TabStyle is ignored. Given that you don't want multiple rows of tabs, you will have to make the page frame wide enough to accommodate all the captions on a single row (or make the captions short enough).

If that's not working for you, you might well have some other code or setting that is overriding it. I suggest you start with a new pageframe, and gradually add the required functionality until you see the same problem arising. That should tell you where the fault lies.

You might also try playing with the SpecialEffect property. I belive that might have some effect on other properties, but I'm not sure exactly what that is.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips, training, consultancy
 
Thank you Mike,
I appreciate your input, as always, and will implement your suggestions.
Thanks,
Dave Higgins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top