Hi all,

Some time ago I saw some emails about the tab-control.
It talked about the property: isActivePage().

Now I have the following:
A tab control with two tabpages[Overview, General].
In the overview I show a grid with a colored background for a row
that meets the specification. I did this in the "displayOption" of
the form.

But when I click to the second tabpage (General) I do not want to
have the background colored. But in the displayOption method the
value of isActivePage() does not seem toe work...

How can I stop seeing colors in when I am in the second tabpage?

To be complete, I have added the displayOption method below:

public void displayOption(Common _record, FormRowDisplayOption
_options)
{
    int colorGrey  = winapi::RGB2int( 221, 221, 221 ); //Grey
    MyTable table;
    ;

    if (tpOverview.isActivePage() ) // only for tabpage 1
    {
        table = _record;

        if (table.active == NoYes::Yes)
        {
            _options.backColor( colorGrey );
        }
    }
}



Is it some method I forget to override?
Any help is welcome.

/b



Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to