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 | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

