B4A Library [B4X] XUI Views - Cross platform views and dialogs

Discussion in 'Additional libraries, classes and official updates' started by Erel, Dec 27, 2018.

Thread Status:
Not open for further replies.
  1. Tayfur

    Tayfur Well-Known Member Licensed User

    How can i add manuelly?
    Code:
    Sub Process_Globals
        
    Private MainForm As Form
        
    Private Dialog As B4XDialog
        
    Private XUI As XUI
        
    Private Base As B4XView
        
    Private APBar As AnotherProgressBar
    End Sub

    Sub AppStart (Form1 As Form, Args() As String)
        MainForm = Form1
        MainForm.RootPane.LoadLayout(
    "1"'Load the layout file.
        MainForm.Show
       
        APBar.Initialize(MainForm,
    "APBar")
        MainForm.RootPane.AddNode(APBar.mLbl,
    100,100,500,100)
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Custom views must be added with the designer. You can create a layout file with a single custom view and load it whenever you want to add a new custom view.
     
    jimmyF likes this.
  3. Tayfur

    Tayfur Well-Known Member Licensed User

    Code:
    MainForm = Form1
        MainForm.RootPane.LoadLayout(
    "1"'Load the layout file.
        MainForm.Show
       
        pn.Initialize(
    "")
        pn.LoadLayout(
    "L2"' it has only customview // Private APBar As AnotherProgressBar
        MainForm.RootPane.AddNode(pn,50,00,300,100)
    I added like code.
    But I cant control height value?
    Whats the correct code/way?
     
  4. DonManfred

    DonManfred Expert Licensed User

    Code:
    Dim p As Pane
        p.Initialize(
    "")
        p.SetLayoutAnimated(
    0,0,0,640,480' Set layout so that it is known when using LoadLayout
        p.LoadLayout("L2")
        MainForm.RootPane.AddNode(p,
    0,0,640,480)
     
    jimmyF and Tayfur like this.
  5. Tayfur

    Tayfur Well-Known Member Licensed User

    Thanks @DonManfred
    I notted ".SetLayoutAnimated(0,0,0,400,100) "
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Please start a new thread for any question you have.
     
  7. Erel

    Erel Administrator Staff Member Licensed User

    V1.40 released. Adds password mode to B4XFloatTextField.
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    V1.45 - B4XFloatTextField:

    - EnterPressed and TextChanged events.
    - Optional clear button.
    - Bug fixes.
     
    Johan Hormaza and Tayfur like this.
  9. Erel

    Erel Administrator Staff Member Licensed User

    Kiffi and Tayfur like this.
  10. Erel

    Erel Administrator Staff Member Licensed User

    V1.55 - B4XComboBox.DelayBeforeChangeEvent - Used to prevent rapid events when scrolling the list with the keyboard. Default value is 500ms in B4J and 0 in other platforms (not used).
     
  11. Erel

    Erel Administrator Staff Member Licensed User

    V1.60 - B4XFloatTextField reveal button in password mode:

    [​IMG]

    Note that in B4i the text is cleared when you go back from revealed mode to hidden mode. This is related to the native TextField behavior. Most users will never notice it.
     
    Last edited: Jan 9, 2019
    Tayfur, inakigarm, Kiffi and 2 others like this.
  12. Erel

    Erel Administrator Staff Member Licensed User

    V1.61 - Allows setting the Text property of B4XInputTemplate.
     
  13. Erel

    Erel Administrator Staff Member Licensed User

    V1.62 - Small update to B4i ListTemplate layout file.

    A custom list of colors dialog added to the example:

    [​IMG]
     
    Alexander Stolte and Kiffi like this.
  14. Erel

    Erel Administrator Staff Member Licensed User

    V1.63 - Fixes an issue with B4XLongTextTemplate when the text is shorter than the dialog.
     
  15. Erel

    Erel Administrator Staff Member Licensed User

    V1.64 - Better behavior of B4XDialog and B4XInputTemplate with short screens.
     
    Alexander Stolte, johndb and Kiffi like this.
  16. Erel

    Erel Administrator Staff Member Licensed User

    V1.65 - New template dialog: B4XSearchTemplate

    [​IMG]
     
  17. Erel

    Erel Administrator Staff Member Licensed User

    V1.67 - Tag field added to the custom views. You can set it with the designer or at runtime.
    - B4XDialog - New fields: TitleBarTextColor, TitleBarFont and ButtonsFont. See the signature dialog for an example (the buttons font is set to FontAwesome):

    [​IMG]

    - B4XDialog - All text fields of B4XDialog accept CSBuilder objects as well as strings (B4A and B4i).
    - AnotherProgressBar is no longer limited to indeterminate state. You can modify the Value field to change its position. Note that the change is animated.
    Click on the Animated Counter button in the example to see it.
     
  18. Erel

    Erel Administrator Staff Member Licensed User

    V1.70 - New B4XTimedTemplate. This template wraps other templates and creates an auto-closing dialog:

    [​IMG]

    See the "options / select animal" dialog for an example. It is very simple to use.
    - AnotherProgressBar - The change speed can be set with ValueChangePerSecond field. This allows using the progress bar as a visual timer. For example to show 5 seconds progress:
    Code:
    AnotherProgressBar1.ValueChangePerSecond = 100 / 5
    AnotherProgressBar1.SetValueNoAnimation(
    0'set the value immediately.
    AnotherProgressBar1.Value = 100 'animate to 100. It will take 5 seconds.
     
  19. Erel

    Erel Administrator Staff Member Licensed User

    A lot of progress was done since XUI Views was first released.

    New demonstration video:

     
  20. Erel

    Erel Administrator Staff Member Licensed User

    V1.75 - New B4XSwitch control:

    [​IMG]
     
Thread Status:
Not open for further replies.
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