Solved

delphi dxlayout focus on tabbed groups

Posted on 2011-03-22
12
592 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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 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

21 Experts available now in Live!

Get 1:1 Help Now