Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

delphi dxlayout focus on tabbed groups

Posted on 2011-03-22
12
Medium Priority
?
614 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
Technology Partners: 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

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 I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

618 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