iOS Question Table Library

Discussion in 'iOS Questions' started by fishwolf, Sep 12, 2015.

  1. fishwolf

    fishwolf Active Member Licensed User

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    Moved to the questions forum.

    You need to call SetColumnsWidths again.
     
  3. fishwolf

    fishwolf Active Member Licensed User

    doesnt'n work, i have try to set in 3 positions

    Code:
    Sub ButtonLive_Click

       
    Log("ButtonLive_Click")
       
        
    ' Test1
       Table1.SetColumnsWidths(Array As Int(200250300350))
       
       Table1.ClearAll

       
    ' Test2
       Table1.SetColumnsWidths(Array As Int(200250300350))
       
       
    For i = 0 To 100
         Table1.AddRow(
    Array As String("Row: " & i, "ccc""ddd""eee"))
       
    Next
        
        
    ' Test3
       Table1.SetColumnsWidths(Array As Int(200250300350))
       
    End Sub
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Change Table.innerClearAll to:
    Code:
    Private Sub innerClearAll(vNumberOfColumns As Int)
       SV.Panel.RemoveAllViews
       NumberOfColumns = vNumberOfColumns
       SV.ContentHeight = 
    0
       SelectedRow = -
    1
       minVisibleRow = -
    1
       maxVisibleRow = 
    0
       Data.Initialize
       LabelsCache.Initialize
       visibleRows.Initialize
       SV.ScrollOffsetY = 
    0
       
    For i = 1 To 80 'fill the cache to avoid delay on the first touch
         LabelsCache.Add(CreateNewLabels)
       
    Next
       
    If cVisible Then
         SV.ScrollOffsetX = 
    0
         SV.ScrollOffsetY = 
    0
       
    End If
    End Sub
     
  5. fishwolf

    fishwolf Active Member Licensed User

    sorry, i have discovery that with this function, the columns problem is resolved,

    but when is scrool down the table, it don't show immediately the new rows, it's show a hole of rows.
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Do the rows eventually show? Test it in release mode. It should be very quick.
     
  7. fishwolf

    fishwolf Active Member Licensed User

    in release mode is equal
    IMG_0039.PNG
     

    Attached Files:

  8. Erel

    Erel Administrator Staff Member Licensed User

    The problem is in the modifications done to the Table class. I switched to the unmodified Table class and it works properly.
     
  9. fishwolf

    fishwolf Active Member Licensed User

    i know, you have suggest the modifications (new innerClearAll) for resolve the initial bug on alignement from title and rows columns
    Table.png
     
  10. Erel

    Erel Administrator Staff Member Licensed User

  11. klaus

    klaus Expert Licensed User

    I amended the column alignment in the class.
    You didn't use the latest version which was 1.11
    Added new version 1.12 HERE.
    Try this one.
     
    Erel likes this.
  12. fishwolf

    fishwolf Active Member Licensed User

    Thanks now work fine all features
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice