German B4J UI - Window Form Verhalten/Ändern.....

TekkieLex

Member
Licensed User
Longtime User
Hallo Zusammen,

Frage 1.
Gibt es eine Möglichkeit im Window Form die Minimalisieren, Maximieren und Schließen Button zu deaktivieren bzw auszublenden?



Frage 2.
Wie erstelle ich ein Splash Form das in Prinzip wie ein Panel aussieht ohne das es wie ein Fenster aussieht?



Frage 3.
Gibt es die Möglichkeit Fenster in Fenster Modus?
Main Window
--- Child Window
--- Child Window
......


Danke schon mal für eure Hilfe/Tipps

Grüße
Alexander
 

DonManfred

Expert
Licensed User
Longtime User
ich habe nicht viel mit b4j gemacht bisher...

so ungefähr?

B4X:
Sub Process_Globals
    Private fx As JFX
    Private Splash As Form
    Private MainForm As Form
    Private t As Timer
    Private Button1 As Button
    Private iv As ImageView
End Sub

Sub AppStart (Form1 As Form, Args() As String)
    t.Initialize("Timer",5000)
    Splash = Form1
    'MainForm.SetFormStyle("UNIFIED")
    Splash.SetFormStyle("UNDECORATED")
    Splash.RootPane.LoadLayout("SplashScreen")
    'MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file.
    Splash.Show
    MainForm.Initialize("Main",640,480)
    t.Enabled = True
End Sub
Sub Timer_Tick
    t.Enabled = False
    Splash.Close
   
    MainForm.SetFormStyle("DECORATED")
    MainForm.RootPane.LoadLayout("Main")
    'MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file.
    MainForm.Show
   
End Sub
 

Attachments

  • Fenstertest.zip
    15.2 KB · Views: 220
Cookies are required to use this site. You must accept them to continue using the site. Learn more…