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!

I have an MDI app in Delphi 5 and t

Status
Not open for further replies.

TBaz

Technical User
Jun 6, 2000
65
ES
I have an MDI app in Delphi 5 and through necessity have a TTabSet component on the parent form.

When the first new child window is created a new 'Untitled' tab appears correctly with focus, but when subsequent child windows are created the named tab appears, but the first one retains focus. I can't for the life of me figure out how to make the new tab have focus.

Also related is the fact that I can't figure out how to set the focus on the correct tab when a child window is selected. No doubt that the answer to the first problem will also solve the second.

Thanks for any advice in advance...

Barrie
 
Doh!

I forgot to enter a topic title - sorry about that.

I new there was a reason why you should preview before posting...

Barrie
 
OK, someone please tell me what I'm doing wrong please.

Someone else has asked about a similar problem with Tabs after I posted mine. They get theirs answered but mine goes unanswered - like most of my questions.

If there is some board etiquette which I'm not using or if anyone has any suggestions on how to improve the chances of me getting a post answered I would be very grateful to hear them.

In the meantime, I'll repost my message - I forgot to put a topic title with it - maybe that's why it's being ignored.

Thanks...

Barrie
 
hi

from delphi help:
To determine which tab is currently selected or to use code to select a tab, use the TabIndex property. To find out which tab is the first visible tab in the tab set control or to make a tab the first visible tab, use the FirstIndex property.

Don't know if this help? Have not tried it...

cheers,
mha
 
Yes, I read that in the help too, but that isn't what my problem is.

If you re-read the first post you will see that I need to do that sort of in reverse. I'm not 'having a go at you' - it's very difficult to explain what I'm struggling with unless you word it very carefully and I can see why you think I'm trying to do what you thought I was... if you see what I mean! :)

Anyway, I've repeated the problem in a thread with a proper topic title now, so please don't respond to this thread - use the other one if you have any suggestions.

Many thanks anyway...

Barrie

PS: Can a mod delete this thread please?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top