Overlaying a transparent image on controls

  1. 5 months ago

    Julian S

    Jul 17 Pre-Release Testers, Xojo Pro UK

    Have you ever overlayed transparent images on top of text boxes or buttons in any of the programs you have written?

    e.g.

    -image-

    If so, could you provide a little screenshot?

    Thanks

  2. Kem T

    Jul 17 Pre-Release Testers, Xojo Pro New York

    I haven't done this nor can I imagine why you'd want to do this, but since you do...

    I think the problem would be that the canvas with the image is a rectangle so it would't work quite right. If you don't need the other controls to be active while the image is present, you could redraw the controls yourself with the image over them, then switch to a view with the actual controls.

    Again, I'm offering advice without having tried it myself in the hope that it will somehow be helpful.

  3. Kem T

    Jul 17 Pre-Release Testers, Xojo Pro New York

    BTW, it would be helpful to change the subject to something more descriptive, like "Overlaying a transparent image on controls".

  4. Kevin G

    Jul 17 Pre-Release Testers, Xojo Pro Gatesheed, England

    Julian, if you are searching for a way to do this, take a look at OverlayMBS.

  5. Julian S

    Jul 17 Pre-Release Testers, Xojo Pro UK
    Edited 5 months ago

    @Kem T I haven't done this nor can I imagine why you'd want to do this

    Its ok all, I'm not trying to do it and I too can't really see the point, I just wanted to see if anyone had done it or even seen it done. I'm still tinkering with this xojo z-order framework issue and its the only thing I can't easily get around. I was wondering if anyone does it, if not I wont lose any sleep over putting solution demo together for it.

    @Kevin G Julian, if you are searching for a way to do this, take a look at OverlayMBS.

    Thanks Kevin. Gotta love those WS_EX_LAYERED windows :) it would be certainly doable. Not really what I was after though, I should have made my post a little less vague :) Just had a play with OverlayMBS, very neat, I love how Christian makes the things cross platform.

    Back to z-order tinkering.

    Thanks

or Sign Up to reply!