TPageControl - Event OnChange is not triggered
Original Reporter info from Mantis: rrricci
-
Reporter name: Renato Ricci
Original Reporter info from Mantis: rrricci
- Reporter name: Renato Ricci
Description:
Hello friends, I think I found a bug.
I have PageControl with 2 Tabs and also have a event OnChange with the following code:
begin
ShowMessage('Tab was changed');
end;
When we run the program and click by the mouse to change the selected tab, the event Onchage is triggered. However, when we execute the code:
procedure TForm1.Button1Click(Sender: TObject);
begin
PageControl1.ActivePage := TabSheet2;
end;
The event OnChange is not triggered.
Follow attachment with an example..
Thanks.
Renato
Mantis conversion info:
- Mantis ID: 36194
- OS: Windows
- OS Build: 10
- Build: r61665
- Platform: x32
- Version: 2.0.4