How to copy SkinSection='FORM' into tImage

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #35769
    DarrenB
    Participant

    Hi guys,

    been looking for a while but could find no answer so I thought I'd ask and get on with something else in my app.

    I have a multi-form application and on the 'Main' form I have set two SkinManagers… the 1st SkinManager controls the way the application looks on all subsequent forms.

    The 2nd SkinManager is set with a different skin name… what I want to do is, using the skin set in SkinManager2, copy a skinsection='FORM' into a tImage for use as a background. I then modify the tImage according to the application need. So when the SkinManager2 changes 'name', the tImage is updated with a skinSection='FORM'… I want to 'bitblt' the correct image, using SkinManager2, onto Image1.

    Hope I've explained it well enough.

    Darren

    #41876
    DarrenB
    Participant

    Tried

    This Demo

    but I could only get it to work if SkinManager1 and SkinManager2 were set to the same name!

    I thought the new TsImage might have the answer… associate it with SkinManager2 then bitblt the TsImage into the TImage but I couldn't get that to work either… the blt operation from TsImage into the TImage just returned a blank white canvas even though I can 'see' the correct image on the TsImage…

    Code:
    Example bitblt(image1.Canvas.Handle,0,0,200,220,simage1.Canvas.Handle ,0,0,srccopy);

    Really need some help on this one I'm stumped!

    #41349
    Support
    Keymaster

    Hello Darren! Sorry for a delay.

    Please try the attached demo, I hope this will help.

    #41309
    DarrenB
    Participant
    'Support' wrote:

    Hello Darren! Sorry for a delay.

    Please try the attached demo, I hope this will help.

    Hello Serge! 🙂

    thanks ever so much for the demo… had the code included in my app in a very short time and it looks like it works perfectly… just what I needed 🙂

    Darren

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.