|
-
May 2nd, 2009, 11:13 AM
#11
Fanatic Member
Re: Simple Transparent Frame User Control
 Originally Posted by Edgemeal
Sorry for not replying sooner, I'm not sure I know the correct answer, my guess is the control you are putting my transparent framez UC into doesn't have the needed properties for the BitBlt call, like a .hDC, .ScaleMode, .ScaleX and .ScaleY.
I recently ran into that same problem and added this to my main container control.
Code:
Public Property Get hDC() As Long
hDC = UserControl.hDC
End Property
Public Property Get ScaleMode() As ScaleModeConstants
ScaleMode = UserControl.ScaleMode
End Property
Public Property Get ScaleX(Width As Single, FromScale As ScaleModeConstants, ToScale As ScaleModeConstants)
ScaleX = UserControl.ScaleX(Width, FromScale, ToScale)
End Property
Public Property Get ScaleY(Height As Single, FromScale As ScaleModeConstants, ToScale As ScaleModeConstants)
ScaleY = UserControl.ScaleY(Height, FromScale, ToScale)
End Property
But to get my framez control to show up properly inside other framez I had to also divide the Extender.Left & .Top values by Screen.TwipsPerPix... too, though I thought the scaleX/Y would of taken care of that, weird. 
Can you please place or upload a copy of what you did so i could see it. you said you got it to work.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|