OK, I also tried

format->setAlpha(TRUE);

And that gave me an invalid context. Help anyone?