B4XPages.MainPage.msgText.Visible = True
B4XPages.MainPage.msgTitel.Text = "Bitte Speichername eingeben"
[B]MsgO = B4XPages.MainPage.msgdialog.showcustom(B4XPages.MainPage.DialogView,"OK",Language.Text(Var.v,74) , "")
Subs.SetDialog(B4XPages.MainPage.msgdialog)[/B]
wait for (MsgO) Complete (result As Int)
If result = xui.DialogResponse_Positive Then
Public Sub SetDialog(V As B4XDialog)
ground = True
v.BackgroundColor = Var.limablue
V.ButtonsHeight = 10dip
v.BorderColor = Var.lblColor
v.ButtonsOrder = Array As Int(xui.DialogResponse_Positive,xui.DialogResponse_Cancel, xui.DialogResponse_Negative)
v.BorderCornersRadius = 15dip
v.BorderWidth = 1dip
#if b4a
V.BorderWidth = 3dip
#End If
v.TitleBarFont = Var.BigFont
v.TitleBarColor = xui.Color_Transparent
v.TitleBarTextColor = Var.lblColor
Dim Abstand As Int
Dim b1,b2,b3 As B4XView
b1 = v.GetButton(xui.DialogResponse_Positive)
If b1.IsInitialized = True Then
' b1.Height = 15dip
' b1.TextSize = 12
' Abstand = ((Var.ScreenWidth * 0.4) - (3 * (b1.Width))) / 4
' b1.TextColor = Var.txtColor
' b1.Left = Abstand
' b1.Top =(Var.ScreenHeight * 0.3) - 5dip
' b1.SetColorAndBorder(Var.limadarkblue,1dip,xui.Color_White,15dip)
Abstand = ((Var.ScreenWidth) - (3 * (b1.Width))) / 4
b1.TextSize = 12
b1.Height = 35dip
b1.TextColor = Var.txtColor
b1.Left = Abstand
b1.SetColorAndBorder(Var.limadarkblue,1dip,xui.Color_White,15dip)
End If
b2 = v.GetButton(xui.DialogResponse_Negative)
If b2.IsInitialized = True Then
Abstand = ((Var.ScreenWidth) - (3 * (b2.Width))) / 4
b2.TextSize = 12
b2.Height = 35dip
b2.TextColor = Var.txtColor
b2.Left = Abstand * 2 + b2.Width
b2.SetColorAndBorder(Var.limadarkblue,1dip,xui.Color_White,15dip)
End If
' #if b4j
If V.GetButton(xui.DialogResponse_Cancel) < 0 Then
Log ("OUT")
End If
[B] b3 = V.GetButton(xui.DialogResponse_Cancel) -->ERROR LINE[/B]
If b3.IsInitialized = True Then
b3.textsize = 12
b3.height = 35dip
Abstand = ((Var.ScreenWidth) - (3 * (b3.Width))) / 4
b3.TextColor = Var.txtColor
b3.Left = Abstand * 3 + (b3.Width) * 2
' b3.Top = (Var.ScreenHeight * 0.3) - 5dip
b3.SetColorAndBorder(Var.limadarkblue,1dip,xui.Color_White,15dip)
End If
' #End If