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
Solved

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

Posted on 2004-03-30
10
1,194 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
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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to debug For loops? 3 56
Delphi inherited method 6 76
PHP preg_replace code convert to Delphi 14 66
Sending files from  idTcpServer Socket to idTcpClient 2 44
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

840 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