title: How to check previous tabsheet when moving from page to page in a pagecontrol?
body: <p>I'm using a TPageControl with the TTabsheets' tabs hidden so as to have the frames they contain appear to be stacked, and build some kind of wizard by displaying a different frame at different steps in the process.</p>
  
  <p>Problem is, after calling "PageControl1.ActivePageIndex := x;" to display the next frame, once in the new frame I need to know how I got here, i.e. which frame was previously displayed.</p>
  
  <p>If someone else has used frames in a pagecontrol to build a wizard, how do you keep track of previous/next frames?</p>
  
  <p>Thank you.</p>