Hi List.

In the designer it is not posible to use the builtin feature of "Change Parent" (from the context menu) with a TPageControl. Other controls seems to work fine (although i have not tested all of them).

To recreate the problem slap a TPanel and a TPageControl on the mainform and add a single tabsheet. Use "Change Parent" on the Pagecontrol and change it to the panel - and bang.

I use:
Lazarus trunk:  r53105
Fpc: 3.0.0 (release) x86_64

Lazarus does a hard crash - even the stack-trace is halted:

torsten@Rainier:~/FreePascal/lazarus$ ./startlazarus
 is a file
TLazarusManager.Run starting /home/torsten/FreePascal/lazarus/lazarus ...
Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] PrimaryConfigPath="/home/torsten/.lazarus" Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] SecondaryConfigPath="/etc/lazarus" Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux-gtk2 New=x86_64-linux-gtk2 FPC=True LCL=False
TComponentTreeView.SetSelection: Updating component node values.
AddComponent TPanel Parent=Form1:TForm1 23,15,269,625
Parent is 'Form1:TForm1'
Hint: (lazarus) [TPkgManager.AddUnitDependenciesForComponentClasses] Extending Uses unit1.pas ExtCtrls
AddComponent TPageControl Parent=Form1:TForm1 326,26,470,604
Parent is 'Form1:TForm1'
Hint: (lazarus) [TPkgManager.AddUnitDependenciesForComponentClasses] Extending Uses unit1.pas ComCtrls
TComponentTreeView.SetSelection: Selection.ForceUpdate encountered.
TComponentTreeView.SetSelection: Selection.ForceUpdate encountered.
TApplication.HandleException Access violation
  Stack trace:

This is as far as it goes.

On a side node - it IS posible to select a tabsheet and change the parent to the panel, which IMO should not be posible.

Kind regards
Lazarus mailing list

Reply via email to