Tuesday, 16 July 2013

To display color to the selected row in display option

To display color to the selected row in display option

public void displayOption(Common _record, FormRowDisplayOption _options)
{
   RentalInquiryTmp rentalInquiry;
    rentalInquiry = _record;
    switch(rentalInquiry.Occupied)
    {
        case NetOccupied::Vacant:
            _options.backColor(65535);
           
            //_options.backColor(WinAPI::RGB2int(161,161,255));
            break;

        case NetOccupied::Occupied:
            _options.backColor(8421631);
          // _options.backColor(WinAPI::RGB2int(255,0,0));
            break;

        case NetOccupied::Inactive:
            _options.backColor(65408);
           //_options.backColor(WinAPI::RGB2int(0,0,255));
            break;
    }
    //super(_record, _options);
}


No comments:

Post a Comment