Solved

delphi dxlayout focus on tabbed groups

Posted on 2011-03-22
12
593 Views
Last Modified: 2012-06-27
the latest version of devexpress dxlayout allows you to create tabbed groups. my question is how to programmatically set focus in a specific tabbed group?
0
Comment
Question by:dinko1
  • 7
  • 3
  • 2
12 Comments
 
LVL 24

Expert Comment

by:jimyX
ID: 35187096
You can try this:
((dxLayoutControl1ItemX as TdxLayoutItem).Control as TWinControl).SetFocus
0
 
LVL 19

Expert Comment

by:Thommy
ID: 35187807
Check these links dealing with your problem...

Allowing to focus through tabbed groups
http://www.devexpress.com/Support/Center/p/DS61288.aspx

Can't focus control on tabbed layoutcontrol group
http://www.devexpress.com/Support/Center/p/B196036.aspx

DevExpress / Search for Keywords "focus tabbed group"
http://search.devexpress.com/?q=focus+tabbed+group&p=T0%7cP0%7c0&d=29
0
 

Author Comment

by:dinko1
ID: 35189104
none of the solutions work!
0
 
LVL 24

Expert Comment

by:jimyX
ID: 35189166
How did you use that line? Can you show code please.
0
 

Author Comment

by:dinko1
ID: 35189180
jimmy I use Group and your example works on Items. I asked how to focus a tabbed GROUP not an item. the group object doesnt have a "Control" property.
0
 
LVL 19

Expert Comment

by:Thommy
ID: 35189700
Have you checked the following link from my post above???

Can't focus control on tabbed layoutcontrol group
http://www.devexpress.com/Support/Center/p/B196036.aspx

Try it with "FocusHelper.PlaceItemIntoView"...

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:dinko1
ID: 35189952
yeap. that is a .NET (XtraLayoutcontrol). I asked for Delphi VCL LayoutControl.
Such property (FocusHelper) DOESNT exist
0
 
LVL 19

Expert Comment

by:Thommy
ID: 35196923
Do you want to set focus to a specific control in a tabbed group or to the tabbed group itself???
0
 

Author Comment

by:dinko1
ID: 35198770
to the tabbed group itself.
0
 

Author Comment

by:dinko1
ID: 35198774
or the first component of the tabbed group. its the same
0
 

Accepted Solution

by:
dinko1 earned 0 total points
ID: 35209505
i found a workaround.
all you have to do is:

1) hide all groups except the one you want to focus

dxLayoutGroup2.Visible := false;
dxLayoutGroup3.Visible := false;

2) and then set back to visible


dxLayoutGroup2.Visible := true;
dxLayoutGroup3.Visible := true;


this will give the focus to the 1st group dxLayoutGroup1
0
 

Author Closing Comment

by:dinko1
ID: 35239113
i found my own solution
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows Drag & Drop Location 2 94
Delphi Dbf export problem to a Visual Foxpro application 6 162
FMX StringGrid1->Canvas->FillRect Problem 3 127
Reconfigure Delphi Install? 2 46
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now