B4J Question SplitPane Layout Removing?

Discussion in 'B4J Questions' started by Mashiane, Apr 1, 2018.

  1. Mashiane

    Mashiane Expert Licensed User

    Hi there

    Whilst the SplitPane has a method to load a layout, e.g. 1..n

    Is there a way to actually remove a layout at a position e.g. 4 (to remove the fifth layout)?

    Ta!
     
    joulongleu likes this.
  2. Erel

    Erel Administrator Staff Member Licensed User

    Yes.
    Code:
    Dim jo As JavaObject = SplitPane1
    jo.RunMethodJO(
    "getItems"Null).RunMethod("remove"Array(4))
     
  3. xulihang

    xulihang Active Member Licensed User

    Code:
    Dim jo As JavaObject = upperRightSplitPane
    Dim SplitPaneItems As List = jo.RunMethod("getItems"Null)
    SplitPaneItems.RemoveAt(
    0)
    This works for me.
     
    joulongleu likes this.
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