Results 41 to 69 of 69

Thread: [2008] Get part of background image covered by ListView control

Threaded View

  1. #37
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [2008] Get part of background image covered by ListView control

    Obi..I think I have this solved.

    It did require adding the 3rd option like you did to set a custom background source. Once that was done, I had to code a loop to calculate the x/y coordinates of the control in relation to n levels down of parents to get to the control that is assigned as the CustomContainer.

    So you may also want to add some error handling to the setter of the CustomContainer to ensure that when someone sets that property, they are only allowed to set it to a control that is actually a container to the control you are making transparent. Otherwise it will likely hit an infinite loop when trying to calculate the x/y (since it loops back each parent until the one you specified is hit)

    Anyway, here is a test project with the modified code in it, and you can see I tried both vertical and horizontal split containers on top of panels with the bg image, and it looks to me to be working fine.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width