Solved

How to find the actual class of DevExpress Quantum Grid 4.5.1 cxEditors? Inheritance Problems.

Posted on 2004-03-30
10
1,202 Views
Last Modified: 2007-12-19
Hi, Buddies,

Anyony use DevExpress QG? I am very confused about the inheritance of cxEditors.

Now I have several cxEditors on my form, including cxTextEdit, cxComboEdit
etc, I want to find out what kind of editor the ActiveControl on my form is at
run-time.

I used (ActiveControl is TcxTextEdit) and (ActiveControl is TcxComboEdit),
but it was always "False".

I find all the class name of these controls are "TcxCustomInnerTextEdit" by
using ActiveControl.ClassName, and anyone could plz tell me how to find out
which is which?

Thanks a lot,

Edward Wang
0
Comment
Question by:wyuanzheng
[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
10 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 10721873
well,

doesn't have devexpress-quantumgrid on hand yet,
but if i remember correct, then there is a property InplaceEditor
on the column, where could be decided which class of InplaceEditor
is used.

but this is just a guess, not sure

meikl ;-)
0
 

Author Comment

by:wyuanzheng
ID: 10729269
Yes, there is absolutely a property named InplaceEditor on a column in the Grid; while, I want to know is not the column, but the editor controls on the form.

Edward
0
 
LVL 9

Expert Comment

by:auke_t
ID: 10729829
Why don't you just post your question on the DevExpress forum, they're well known for their excellent and fast support!

Good luck
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 5

Accepted Solution

by:
snehanshu earned 125 total points
ID: 10755162
wyuanzheng,

You can use the parent property of the activecontrol (TcxCustomInnerTextEdit) to determine whether it is TcxTextEdit or somethin else.
e.g.


procedure TForm1.FormClick(Sender: TObject);
begin
  If (ActiveControl is TcxCustomInnerTextEdit) then
  Begin
    If (TcxCustomInnerTextEdit(ActiveControl).Parent is TcxTextEdit) OR
      (TcxCustomInnerTextEdit(ActiveControl).Parent is TcxComboBox) Then
      ShowMessage(TcxCustomInnerTextEdit(ActiveControl).Parent.Name);

  End;
end;


HTH,
...Shu
0
 
LVL 5

Expert Comment

by:snehanshu
ID: 13189932
I feel that my comment could have helped.
Cheers!
...Shu
0
 
LVL 5

Expert Comment

by:snehanshu
ID: 13242907
??
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
QRReport  TQrmemo vertical stretching 1 67
creating threads in delphi 1 202
Dev express lookupcombo 3 64
DBCtrlGrid, Delphi, Scroll 7 35
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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

738 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