?
Solved

delphi dxlayout focus on tabbed groups

Posted on 2011-03-22
12
Medium Priority
?
605 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 

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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month12 days, 19 hours left to enroll

777 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