[Lazarus] Callstack parameters

Hans-Peter Diettrich DrDiettrich1 at aol.com
Thu Mar 8 23:04:23 CET 2012

Martin schrieb:
> On 08/03/2012 19:57, Hans-Peter Diettrich wrote:
>> Is it possible to disable the display of object members in the 
>> parameter list?
>> Currently an object reference hides all following parameters :-(
> Can you give an example?
> If I pass an object (instance of a class), I just see the address.

Right, it's not object references. But e.g. a "var message: TLMessage" 
parameter, as found in message handlers, is expanded.

>> BTW: can the parameter column be extended automatically to the right 
>> margin of the window?
> In trunk you can resize them and then the size will be remembered. 
> (unless you use docking, I do not know, if the docking mgr saves the 
> column widths)

I don't see how docking should affect column widths, the columns are not 
dockable. The form width is restored, but the column widths are reset to 
their defaults. This applies to all debug windows :-(

> Autosize would be an option, but only if user switchable. Otherwise it 
> either:
> - resets the user given size. (which may not be desired if the column 
> size was made bigger than the space avail, so that a scrollbar is shown
> - it needs some "smartness" (only do it, if column is sized smaller).

Proper autosize is simple, based on a property of the columns, e.g. 
Width<0, so that a marked column will use the space left by the other 
columns. When the minimum column sizes don't fit into the control, 
scrollbars can be shown.


More information about the Lazarus mailing list