Current filter:
                                You should refresh the page.
                                0
                                  • This suggestion is based upon the discussion in report TcxRTTIInspector Adding Category in Runtime.

                                    Proposed Solution:

                                    Category = class(TCustomAttribute)

                                      public

                                        FName: string;

                                        constructor Create(const AName: string);

                                      end;

                                      TClass1 = class(TPersistent)

                                      private

                                        FProp1: integer;

                                        FProp2: TDateTime;

                                        FProp3: double;

                                        FProp4: string;

                                      published

                                        [Category('Serge')]

                                        property Prop1: integer read FProp1 write FProp1;

                                        [Category('Serge')]

                                        property Prop2: TDateTime read FProp2 write FProp2;

                                        [Category('Konstantin')]

                                        property Prop3: double read FProp3 write FProp3;

                                        [Category('Konstantin')]

                                        property Prop4: string read FProp4 write FProp4;

                                      end;

                                    When inspecting the TClass1 instances, create Category Rows ("Serge" and "Konstantin"), and arrange properties between them.

                                • Konstantin Peskovsky 04.15.2010

                                  You can do it more closely to .NET style

                                    PropAttrib = class(TCustomAttribute)
                                    public
                                      FDispName: string;
                                      FCategory: string;
                                      constructor Create(const ADispName, ACategory: string);
                                    end;

                                    TClass1 = class(TPersistent)
                                    private
                                      FProp1: integer;
                                      FProp2: TDateTime;
                                      FProp3: double;
                                      FProp4: string;
                                    published
                                      [PropAttrib('My Prop 1', 'Serge')]
                                      property Prop1: integer read FProp1 write FProp1;
                                      [Category('Second Prop', 'Serge')]
                                      property Prop2: TDateTime read FProp2 write FProp2;
                                      [Category('My Double Property', 'Konstantin')]
                                      property Prop3: double read FProp3 write FProp3;
                                      [Category('String Prop 2', 'Konstantin')]
                                      property Prop4: string read FProp4 write FProp4;
                                    end;

                                • Konstantin Peskovsky 05.22.2011

                                  Sir.

                                  When do you planning release this issue? I still use your original cxRTTIInspector and have to correct next source manually with every new build (what would be if I purchased VerticalGrid WITHOUT source?)

                                  procedure TcxCustomRTTIInspector.RefreshInspectedProperties;
                                  ....
                                        for I:=AIndex downto 0 do if Rows[I] is TcxCategoryRow then Dec(AIndex);//added!!!!!!!!!!!!!!!!

                                  function TcxCustomRTTIInspector.GetPropertyEditor: TcxPropertyEditor;
                                  begin
                                    if (FocusedRow <> nil) and (FocusedRow is TcxPropertyRow) then//added!!!!!!!!!!!!!!!!

                                  Before I purchased your product I asked about Category functionality and get a positive answer(excellent, fantastic, it can do all). But in fact this is not true. Besides, after all corrections, the product still works not properly - if in pre-last category I try to change last property then the cursor goes to top.

                                  Sincerely,
                                  Konstantin Peskovsky

                                • Hello Konstantin.

                                  We are still considering this issue. I cannot guarantee that it will be implemented soon. In the meantime, all our resources are concentrated on implementing improvements declared in our VCL Roadmap.
                                  I assure you that we will consider implementing this feature in the next release planning scope. I will trace it myself.
                                  Thank you for your patience and understanding.

                                  Best regards,
                                  Ingvar.

                                You must  log in  or  register  to leave comments
                                You must  log in  or  register  to leave an answer

                                Is your intention to post an answer to your own question?

                                • If so, then proceed.
                                • If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
                                • If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.