B4J Question Implement tableview column resize

Discussion in 'B4J Questions' started by ziomorgan, Jan 23, 2015.

  1. ziomorgan

    ziomorgan Member Licensed User

    I want to set the columns of Tableview as not resizable and here I found the class that runs it but do not know how to translate it into b4j.
    someone can help me?
    thank you
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Here:
    Code:
    Sub DisableResize(tv As TableView)
       
    Dim jo As JavaObject = tv
       
    Dim columns As List = jo.RunMethod("getColumns"Null)
       
    For Each col As JavaObject In columns
         col.RunMethod(
    "setResizable"Array(False))
       
    Next
    End Sub
     
    Jmu5667 likes this.
  3. ziomorgan

    ziomorgan Member Licensed User

    :) thank you
     
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