Welcome, Guest
Username: Password: Remember me
General discussions, feature requests for CodeTyphon Project and discussions that don't fit in any of the other specific CodeTyphon forum categories.
  • Page:
  • 1

TOPIC:

Unsorted ObjectInspector 4 years 9 months ago #14323

  • Roman
  • Roman's Avatar Topic Author
  • Away
  • Junior Member
  • Junior Member
  • Posts: 101
  • Thank you received: 0
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.

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

Last edit: by Roman.

Unsorted ObjectInspector 4 years 9 months ago #14324

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
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.

Unsorted ObjectInspector 4 years 9 months ago #14327

  • Roman
  • Roman's Avatar Topic Author
  • Away
  • Junior Member
  • Junior Member
  • Posts: 101
  • Thank you received: 0

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

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

Unsorted ObjectInspector 4 years 9 months ago #14328

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Thanks Sir
we will try your code
PilotLogic Architect and Core Programmer

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

  • Page:
  • 1