Try change PositionWidths

Hello:


I try to change positions widths by code with

Planner.PositionWidths[position]:=205

i try to set Planner.PositionWidth:=111 (<> 0)

but not works fine.

If i try change manually works fine (in runtime).

Thank's

Alfonso

I cannot see a problem with this. Do you use the latest version of the component?

When setting Planner.PositionWidth, it affects all positions, so when you want to change an individual position width via Planner.PositionWidths[], you need to do this after setting Planner.PositionWidth.

The problem it's that's not wotk as you say.


I tray to change by code positions widths with

Planner.PositionWidth:=111 ;
Planner.PositionWidths[2]:=205;

Planner Position 2 not change width.

Version 3.3.9.0  Tplanner

Alfonso
I cannot reproduce this. Test code with a default Planner on the form:
procedure TForm4.FormCreate(Sender: TObject);
begin
  planner1.PositionWidth := 111;
  planner1.PositionWidths[2] := 205;
end;