Results 1 to 40 of 4215

Thread: CommonControls (Replacement of the MS common controls)

Threaded View

  1. #11
    Fanatic Member
    Join Date
    Jan 2016
    Posts
    834

    Re: CommonControls (Replacement of the MS common controls)

    Hi Krool
    I can't add an image at runtime to listview as I was doing with MS listview
    Code:
    picBG.Width = lvw.Width
        picBG.Height = lvw.ListItems(1).Height * (lvw.ListItems.count)
        picBG.ScaleHeight = lvw.ListItems.count
        picBG.ScaleWidth = 1
        picBG.DrawWidth = 1
        picBG.Cls
        For i = 1 To lvw.ListItems.count
    
            If lvw.ListItems(i).Text = "Yes" Then
                lvw.ListItems(i).Checked = True
                picBG.Line (0, i - 1)-(1, i), &H80FFFF, BF
    
            Else
                lvw.ListItems(i).Checked = False
                picBG.Line (0, i - 1)-(1, i), &HFFFFFF, BF
    
            End If
        Next i
    
        lvw.Picture = picBG.Image
    Else
        picBG.Cls
        lvw.Picture = picBG.Image
    End If
    Is there a workaround?
    OCX version 1.8
    thank you
    Last edited by Mustaphi; Aug 20th, 2024 at 04:38 PM.

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