Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

ImgX control, Shapes and Z-order (VB6) ?

Last post 05 Nov 2007, 2:20 AM by SteveDude. 2 replies.
Sort Posts: Previous Next
  •  10 Jul 2007, 3:42 AM 12358

    ImgX control, Shapes and Z-order (VB6) ?

    Hi, I would like to display a Shape above my ImgX control, but it seems that ImgX control is always on top and the shape control in background, even if I force the shape to be in foreground (actually I need to move the shape over the ImgX control).

    I have the same problem with Label ...

     Any tips ?
     

  •  10 Jul 2007, 5:27 PM 12359 in reply to 12358

    Re: ImgX control, Shapes and Z-order (VB6) ?

    Controls such as a shape or label can't be used on top of an ImgXCtrl.  You would have to put them into a container control, like a picturebox.
    Glenn Chittenden Jr.
    Atalasoft Development Team
  •  05 Nov 2007, 2:20 AM 12730 in reply to 12358

    Re: ImgX control, Shapes and Z-order (VB6) ?

    You can do this by wrapping the Active Control within another UserControl. Use the ActiveX Wizard to make sure all of the controls properties/methods/events are exposed from the new control. I did this to add support for themed borders and to create a highlight outline when the mouse is hovered over the control.
View as RSS news feed in XML