k, let's go a little deeper then...
You got something like this:
lua Code:
-- self.Health.value = someSortOfFontString
-- self.Power.value = someSortOfFontString
-- self.Castbar = someSortOfFrameWithAllNecessaryCastbarStuff
What you have to add, is a function to hide self.Health.value and self.Power.value and another function to show them again:
lua Code:
local function myPostCastStart(self)
self.Health.value:Hide()
self.Power.value:Hide()
end
local function myPostCastStop(self)
self.Health.value:Show()
self.Power.value:Show()
end
-- now attach that functions to your castbar (inside of your styling function):
-- self.Castbar = someSortOfFrameWithAllNecessaryCastbarStuff
self.Castbar.PostCastStart = myPostCastStart
self.Castbar.PostChannelStart = myPostCastStart
self.Castbar.PostCastStop = myPostCastStop
self.Castbar.PostChannelStop = myPostCastStop
This is highly drycoded and my last attempt to help without seeing code... It's just guessing where your problem is. Bring up some code and we'll try to help.