B4i Question TabBar BarButton badge ? - Semen Matusovskiy (first post)    Apr 12, 2021   (1 reaction) BarButton is not a view, but has a property view
Having a view, it's possible to add label ('barge') as subview in right top corner.
To find a view after Page1.ToolbarButtons = ..., it's neccessary to wait a little. B4i Question BarButtons and "Exit" application by setting it to background - Erel (first post)    Sep 06, 2022   (1 reaction) An iOS app is not allowed to close itself or to move to the background. B4i Code Snippet Barbutton events - bobbruns    Sep 08, 2021   (1 reaction) Just a reminder that the event caused by pressing the iphone barbuttons using B4Xpages is now: Private Sub B4XPage_MenuClick (Tag As String) Log(Tag) End Sub The old way: Private Sub BarButton_Click Dim b As Button = Sender Log("Toolbar Click Tag = " & b.Tag) End Sub no longer works. B4i Question Third and every additional ToolBarButton is aligned to the left - Erel (first post)    Nov 12, 2020   (1 reaction) No need for the OBJC code.
Dim bb As BarButton
bb.InitializeSystem(bb.ITEM_FLEXIBLE_SPACE, "") B4i Question Problem with DocumentPicker.Show - Erel (first post)    Jul 14, 2024   (1 reaction) You cannot add BarButton without a navigation bar, however more importantly, there was an issue with showing the picker on a non-BarButton view. This is fixed: https://www.b4x.-to-internal-libraries.48179/post-994165
You can actually pass Null as the view (make sure not to pass an invalid BarButton B4i Question Changing Tab Bar content - Erel (first post)    Dec 29, 2020 Dim bb As BarButton
bb.InitializeSystem(bb.ITEM_CAMERA, "tag")
Or bb.InitializeBitmap for non-system icons. B4i Question [B4XPages] Delete back button text - Semen Matusovskiy (first post)    Jul 30, 2020   (1 reaction) IMO, better to hide back button (Page.HideBackButton = True) and to use top left buttons (PageInstance.TopLeftButtons = Array (barbutton1, ...)).
To create BarButton - see, for example, https://www.b4x.-icons.74192/#content B4i Question [B4XPages] BarButton Image in Navbar goes in center - Erel (first post)    Jun 12, 2022   (1 reaction) Use this code:
Private Sub CreateFABarImg(sFile As String, tag As Object) As BarButton
Dim bb As BarButton
Dim b As ImageView
b.Initialize("img")
b.ContentMode = b.MODE_FIT
b.Bitmap = LoadBitmap(File.DirAssets, sFile)
b.Tag = tag
Dim pnl As B4XView = xui.CreatePanel("")
B4i Tutorial BarButton icons - Erel    Dec 15, 2016   (1 reaction) The solution is to add them in your code:
Private Sub Application_Start (Nav As NavigationController)
NavControl = Nav
Page1.Initialize("Page1")
Page1.RootPanel.LoadLayout("1")
NavControl.ShowPage(Page1)
Page1.TopRightButtons = Array( _
CreateFABarButton(Chr(0xF054), "right") _
B4i Question BarButton Icon - Erel (first post)    Jul 26, 2017   (1 reaction) Why aren't you adding the BarButton with the designer?
If I remember correctly the icon size should be 24 * 24.
You can use CSBuilder.VerticalAlign to fix the alignment. Page: 1   2   3   4   5   6   7   Powered by ColBERT |