Announcement

Collapse
No announcement yet.

Listview set header

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Listview set header

    I have a problem using the folowing code

    Code:
       ' Load column headers.
        FOR lCol = 1 TO lColCnt
            LISTVIEW INSERT COLUMN hDlg, lID, lCol, USING$("Column #", lCol), 0, 0 
        NEXT lCol
    
        LISTVIEW SET HEADER hDlg, lID, 1, "KOLOM"
    Using PB 9 the header in de first column was changed in "KOLOM".
    With PB 10 I just see the first caracter (K)

    What am I doing wrong?

  • #2
    You do nothing wrong - it's a "feature" in v10 that's been reported and fixed in next compiler update. Meanwhile, can set desired column header text from start with INSERT COLUMN instead, like:
    Code:
      LISTVIEW INSERT COLUMN hDlg, lID, 1, "KOLOM", 100, 0
      ' etc..

    Comment


    • #3
      You're doing nothing wrong.

      It's a known problem with PB10 so I suspect it will be fixed in 10.01
      --
      [URL="http://www.camcopng.com"]CAMCo - Applications Development & ICT Consultancy[/URL][URL="http://www.hostingpng.com"]
      PNG Domain Hosting[/URL]

      Comment


      • #4
        Thanks for the fast reply

        Comment


        • #5
          ListView Get Header

          I have the same problem with ListView Get Header, It don´t me return the text in the header if it's put with ListView Insert Column and if I use ListView Set Header it put me only the first letter.

          Comment


          • #6
            I have now ran into this problem and the link to update my PBWIN10.0 to 10.1 does not work.

            http://www.powerbasic.com/shop/update/Update10601!.asp

            Is there an update link somewhere else?

            Comment


            • #7
              >It's a known problem with PB10 so I suspect it will be fixed in 10.01

              There are no "known" problems unless they appear in the PowerBase Forum?

              Oops.... there is no PowerBase forum anymore. I guess that means there will never be any known problems, ever. That's good, right?

              But I'm having trouble accepting my own logic.

              #soconfused

              MCM

              Comment


              • #8
                MCM with a # Tag - Welcome to this century Michael

                Comment


                • #9
                  Seems like update links are on this page now: https://forum.powerbasic.com/forum/a...and-pb-cc-6-04

                  Comment


                  • #10
                    Thank you Borje.

                    Comment

                    Working...
                    X