Attached the test project and the screenshot. The code is just this:
Dim ListTemplate As B4XListTemplate
Dim dlg As B4XDialog
dlg.Initialize(MainForm.RootPane)
dlg.Title = "Title - this is default font 12"
dlg.TitleBarFont = xui.createDefaultFont(12)...
As I don't use SQLite (or any other SQL) all the time and am no database expert, it's always a bit of a challenge to get the SELECT syntax right, specifically when relationships between tables (JOINs) come into play. There's that, and the fact that it was fun to develop (and I wanted to have the...
This is a mini template engine which can generate HTML dynamically by parsing templates on server-side. It is a bit like Django.
1. Templates
A template is a text file which contains variables, tags.
1.1 Variable
There are two types of template variables, one is common variable, the other is...
This Year Planner View is my first effort at a custom view!
It depends on jXUI, XUI Views, & B4XCollections.
It displays every day in the selected year and returns the clicked day(s).
A bunch of Designer Script Extensions are used to keep everything neat as the form is resized (credit to @Erel...
Hello
I am building a browser with b4a for Android and b4j for Windows.
I really don't know if it will be profitable to use Admob ads or to add vip subscription!
That's why I ask a few questions, please answer them:
1- In addition to Android, will it be possible to use AdMob in b4j?
2- Can I...
Hi there,
i ask ChatCPT to write a function to log into PayPal Account get the transactions and write them to a file. It should use a fakeApi Key for the example.....
Sub LoginToPaypalAndGetTransactions(apiKey As String)
'Create a new HttpRequest
Dim request As HttpRequest...
Hi,
This class cPDF.bas (version 0.6 - 2024-01-03) generate PDF File with limited fonctionnalities (but enough for me)
Add pages with different paper size (use constants or custom size)
PDF standards font (Courier, Helvetica, Times, Symbol and Zapfdingbats), style (Normal, Bold, Italic...
Hi.
I wonder if it would be easy to differentiate icon before listed subs (in modules tree) to distinguish private subs from public subs.
Just a thought.
Anyway, IDE is great.
Andreas.
When the main form is resized, I'd like the B4XDialog to be resized as well. However, I have the impression it just moves so that it remains centered on the form, and its dimensions don't change? Test project attached, and thanks in advance for any tips!
Hi, I'm having a lot of issues with my McAfee Anti-Virus and Malwarebytes quarantining my apps. It`s quarantining standalone apps, and now I`m trying to get my app to print to a printer (in debug mode) its quarantining that too. I do understand as Java is trying to open other windows and...
Hello friends,
This is my first but not last post in forum :D When I checked B4J_chat.zip file in Erel's post, I see that there is an old .fxml designer file that can not be recognized by B4J 9.8. I succeed to convert 1.fxml to 1.bjl file and succeed to make communicate Hercules (a terminal...
Hi all,
I hope someone can shed some light on this one. The attached project is intended to show a B4XDialog with a layout that contains a ListSelectionView from the jControlsFX9 library (the same happens with the jControlsFX library). When clicking either OK or Cancel on the B4XDialog, this...
HI, i`m using the SD XUI 2D slider library (version 0.13) in a B4J app but the horizontal slider doesn`t fill pane width (see picture). Pane is larger than screen, and object anchors are set to fill width? Can anyone help?
Thanks, James
This is a wrap of the Javax print API. It is more complex to use than the Javafx print API but does have a few benefits such as being usable in non-UI apps and access to java Swing printable interface which makes it easy to print the content of swing nodes. The main example app contains an...
Hi All,
i would like to share my humble contribution to this community , hope you like it
it is an online books library where you can search and download books for any subject
here is the UI snapshot:
you can download and try it from here
bookslibrary v1.0
please share your thoughts and...
Hello everybody.
I have a b4j 64bit application working with no issues. I want to make a build for 32bit Windows.
If i just use the jar file with 32bit java8 from Oracle, I get the following error message:
Exception in thread "JavaFX Application Thread" Exception in thread "main"...
I came across this snippet when helping a user on the forum and thought it may be more widely useful:
Create a Paper instance,
'Create a new Paper
'Units should be one of MM, INCH or POINT
Public Sub CreatePaper(Name As String, Width As Double, Height As Double, Units As String) As Paper...
This class contains designer extension script methods based on the snippets I previously posted with some enhancements that make it too complex to post as snippets.
You should now be able to shape and rotate any node, text alignment is currently handled for Button, Label, Radiobutton and...
Dim i As Int
Dim theSheet As PoiSheet = ...
Dim joTheSheet As JavaObject = theSheet
Dim theSheetWriter As XLSheetWriter = ...
Dim theSheetLastRow1 As Int = theSheet.LastRowNumber + 1 ' One-based index of the last row in the sheet
Dim theSheetLastCol0 As Int = theSheet.GetRow(0).Cells.Size - 1 '...
These methods are now included in DSE_Shapes class which provides more functionality.
Here are several Designer script extension methods that allow buttons to be shaped and rotated.
It's a bit of a novelty, but may come in useful at some time.
Each shape method also attempts to apply...