TPageControl canno change parent
Original Reporter info from Mantis: torstenchr
-
Reporter name: Torsten Bonde Christiansen
Original Reporter info from Mantis: torstenchr
- Reporter name: Torsten Bonde Christiansen
Description:
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:
$00007FE443665D86
This is as far as it goes.
Additional information:
Only tested on GTK2
Mantis conversion info:
- Mantis ID: 30752
- OS: Linux
- OS Build: Arch
- Build: 53105
- Platform: x86_64
- Version: 1.7 (SVN)
- Monitored by: » torstenchr (Torsten Bonde Christiansen)