Is the Object Inspector collecting evidence?

Go down

Is the Object Inspector collecting evidence?

· #1

the object inspector knows every component name and keeps a list of their parents

i put 300 controls on one form so it could not watch them all. now opening the form is slow and it has organized them into a tree

can i use Tag to give everyone an alibi or should i replace it with a property editor that minds its own business

Re: Is the Object Inspector collecting evidence?

· #2

The Object Inspector displays the components and properties of the form you are editing. The parent relationships describe which controls contain other controls. They are not an investigation.

Tag is an integer value available for your program's use. Lazarus does not interpret it as an alibi or enforce unique tag values. TabOrder describes keyboard navigation among sibling windowed controls. It is not the order in which they will be interviewed.

For the slowdown, first check what is being created and what code runs while the form opens. Hundreds of visual controls can involve substantial creation and layout work, but the count alone does not identify the cause. If these controls display repeated records, a TStringGrid or TListView may represent the data with fewer separate controls.

A TPageControl can organize a crowded interface. Moving controls onto tabs does not by itself postpone their creation. If startup time is the problem, measure creation and initialization before deciding which part to change.

Read the error message. Then read it again.

Re: Is the Object Inspector collecting evidence?

· #3

i replaced the 300 edits with one grid and it opens faster

the inspector has reduced its list to one suspect and that suspect contains everything

Re: Is the Object Inspector collecting evidence?

· #4

The grid is free to leave.

Forum rules 1 to 10 apply. Yes, to you.

Go up

Sign in to reply