B4J Question How to make an 'About' Window

wdegler

Active Member
Licensed User
Longtime User
I have made many attempts to create an 'About' window of the kind displayed in the B4J program itself when Help/About is selected. I have tried using Forms, Panes and more in many ways to no avail. Can some one show me the way?

Walter Degler
 

wdegler

Active Member
Licensed User
Longtime User
Thank you for the information. It never occurred to me that a Hello World would Add an About box to its message.
I was able to extract the part about About boxes from the roHelloWorld app. I notice that there seems to be no apparent way to change font size for the text in a TextArea box. I can live with that, however.
 
Upvote 0

rwblinn

Well-Known Member
Licensed User
Longtime User
Hi Walter,

to set the font size of the text area, an option is to define in MessageForm textareaMessage as Public.
Then prior calling MessageForm Show method, set the style of the textareaMessage.

Example:

B4X:
' Show info about this app using a 2nd modalform called about
Sub buttonAbout_Action
    Dim mf As MessageForm
    Dim rt As Int
    mf.Initialize(MainForm, "About...", "Hello World")
    mf.textareaMessage.Style = "-fx-font-size: 1.0em; -fx-Font-family: 'Segoe UI Semibold'; -fx-text-fill: red; -fx-opacity: 0.6; "
    rt = mf.Show
End Sub
 
Upvote 0

wdegler

Active Member
Licensed User
Longtime User
Thank you for showing me this option, Rob. It seems this MessageForm class may be useful in many apps.

Note: I see that JavaFX SceneBuilder 2.0 provides for Font settings for TextArea but B4J doesn't allow any changes to the default.

Walter
 
Upvote 0
Top