TRzPageControl OnChange

Components on the Raize Panels palette: panels, group bars, page controls, splitters, toolbars, status bars, group boxes, etc.

TRzPageControl OnChange

Postby GoEk » Tue Jul 12, 2016 2:30 pm

Hi Ray,
shouldn't the TRzPageControl OnChange fire when you assign a new page using ActivePage, i.e. TRzPageControl ->ActivePage = SomePage?

Tracked it down to the Tabs' TabVisible property. If you set a page's TabVisible property to false and then switch to that page programatically it does not fire the OnChange event. Is this by design? I use the Control as a multipage controller without tabs so it is a problem.

Using RC 6.2.2 on C++ builder Berlin Pro.
GoEk
 
Posts: 40
Joined:
Tue Apr 12, 2011 7:26 am
Location: Sweden

Re: TRzPageControl OnChange

Postby Raize Support » Thu Jul 14, 2016 1:03 am

Hi,

The behavior is by design, as it matches the standard TPageControl behavior. However, you can handle the OnPageChange event that fires whenever the page is changed whether by clicking on a tab or programatically.

Ray
Raize Software Support
Raize Software
http://www.raize.com
Raize Support
 
Posts: 604
Joined:
Fri Mar 25, 2011 9:04 pm

Re: TRzPageControl OnChange

Postby GoEk » Thu Jul 21, 2016 7:03 am

Yes, of course... wrong event. Thanks Ray.
GoEk
 
Posts: 40
Joined:
Tue Apr 12, 2011 7:26 am
Location: Sweden


Return to Panels

Who is online

Users browsing this forum: No registered users and 1 guest

cron