Forum
× Talk with us about new Forum features, you'd like to see in these forum, tell us your ideas and special wishes.

Question Unsorted ObjectInspector

  • Roman
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
3 weeks 4 days ago - 3 weeks 4 days ago #14323 by Roman
Unsorted ObjectInspector was created by Roman
Dear developers!

In my opinion, you should add the ability to control the sort order of the ObjectInspector. By default, properties are sorted by name, but if you need to sort it differently, it's hard to do it (maybe I'm a bad programmer and don’t understand how to do it right).

I solved the problem by editing the unit objectinspector.pp: I added to the interface section var SortingPropFunction: TListSortCompare; , assigned the value to this variable in initialization section: SortingPropFunction := @SortGridRows; and in the source of the unit all @SortGridRows replaced with SortingPropFunction.

Now, if necessary, you can assign a different value to this variable, and that’s it.

If I did everything stupidly, please explain me how to do it right.
If there really is a problem, then I propose to make appropriate changes to the official sources.
Last edit: 3 weeks 4 days ago by Roman.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
3 weeks 4 days ago #14324 by Sternas Stefanos
Replied by Sternas Stefanos on topic Unsorted ObjectInspector
Thanks Sir
please attach objectinspector.pp file here (zip or 7zip first)
Diff file NOT working for us... :blush:

We will check and update CT source

We want help.
CodeTyphon Is a "Tera" Programming Studio,
so, always we are open to any suggestion with source.

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • Roman
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
3 weeks 3 days ago #14327 by Roman
Replied by Roman on topic Unsorted ObjectInspector

Sternas Stefanos wrote: please attach objectinspector.pp file here (zip or 7zip first)

No problem! :)
I need see properties in ObjectInspector in same order as written in source file.
My solution do not do this correctly...

File Attachment:

File Name: objectinspector.zip
File Size:40 KB

File Attachment:

File Name: objectinspector.zip
File Size:40 KB
Attachments:

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
3 weeks 3 days ago #14328 by Sternas Stefanos
Replied by Sternas Stefanos on topic Unsorted ObjectInspector
Thanks Sir
we will try your code

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.