Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: slanting label or commandbutton


Message #1 by info@e... on Wed, 25 Jul 2001 22:54:12
Patrick,

after you change the shape of a picture box (or any control with the
hWnd property) with the SeWindowRgn API, the click event is fired
only in the region you assigned.  Thus, if you assign no-overlapping
regions to overlapping controls, you are fine (this is how buttons
with strange shapes are created.)
SetWindowRgn does need to be called only once (or, if the dialog is
resizable, in your Resize event)

m.


> -----Original Message-----
> From:	info@e... [SMTP:info@e...]
> Sent:	Sunday, July 29, 2001 10:44 PM
> To:	professional vb
> Subject:	[pro_vb] RE: slanting label or commandbutton
> 
> Thank you, Marco, for your reply.  I'll check the website you mentioned.  
> 
> Just to make sure that I do not need any motion... Once I created my 
> drawing in Form_Load, it doesn't need to change or move in Form_Activate 
> anymore.
> 
> I am afraid that placing a slanted shape within a picturebox will 
> influence my click_event, since one picturebox my overlap the other one, 
> will the inside shapes don't.
> 
> Hope you can help me further, Thanks, Patrick

  Return to Index