Skip to content

Commit

Permalink
KajuUpdateWindow: Set an initial value for the pop-up menu
Browse files Browse the repository at this point in the history
  • Loading branch information
ktekinay committed Jul 3, 2020
1 parent 08413fc commit 95bd9a2
Showing 1 changed file with 62 additions and 61 deletions.
123 changes: 62 additions & 61 deletions Kaju Classes/KajuUpdateWindow.xojo_window
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,6 @@ Begin Window KajuUpdateWindow
Title = "#KajuLocale.kWindowTitle"
Visible = True
Width = 800
Begin HTMLViewer hvNotes
AutoDeactivate = True
Enabled = True
Height = 445
HelpTag = ""
Index = -2147483648
Left = 149
LockBottom = False
LockedInPosition= True
LockLeft = True
LockRight = False
LockTop = True
Renderer = 1
Scope = 2
TabIndex = 1
TabPanelIndex = 0
TabStop = True
Top = 84
Visible = True
Width = 631
End
Begin PushButton btnOK
AutoDeactivate = True
Bold = False
Expand Down Expand Up @@ -300,7 +279,6 @@ Begin Window KajuUpdateWindow
Scope = 2
TabIndex = 8
TabPanelIndex = 0
TabStop = True
Top = 555
Transparent = False
Value = 0.0
Expand All @@ -311,7 +289,6 @@ Begin Window KajuUpdateWindow
Arguments = ""
Backend = ""
Canonical = False
Enabled = True
ErrorCode = 0
Index = -2147483648
InitialParent = ""
Expand Down Expand Up @@ -390,7 +367,7 @@ Begin Window KajuUpdateWindow
HelpTag = ""
Index = -2147483648
InitialParent = ""
InitialValue = ""
InitialValue = "updates"
Italic = False
Left = 36
ListIndex = 0
Expand All @@ -413,7 +390,6 @@ Begin Window KajuUpdateWindow
Width = 101
End
Begin Timer tmrTimeout
Enabled = True
Index = -2147483648
InitialParent = ""
LockedInPosition= False
Expand All @@ -424,13 +400,33 @@ Begin Window KajuUpdateWindow
End
Begin Kaju.HTTPSocketAsync hsSocket
AllowCertificateValidation= False
Enabled = True
HTTPStatusCode = 0
Index = -2147483648
LockedInPosition= False
Scope = 2
TabPanelIndex = 0
End
Begin HTMLViewer hvNotes
AutoDeactivate = True
Enabled = True
Height = 445
HelpTag = ""
Index = -2147483648
Left = 149
LockBottom = False
LockedInPosition= True
LockLeft = True
LockRight = False
LockTop = True
Renderer = 1
Scope = 2
TabIndex = 1
TabPanelIndex = 0
TabStop = True
Top = 84
Visible = True
Width = 631
End
End
#tag EndWindow

Expand Down Expand Up @@ -590,6 +586,11 @@ End
// Set up the menu with the available updates.
// It will set up the rest of the controls.
//
// NOTE: Linux requires there to be an initial value in
// the pop-up menu or the Window won't draw
// correctly.
//
pumUpdates.DeleteAllRows

for i as integer = 0 to Updates.Ubound
dim update as Kaju.UpdateInformation = updates( i )
Expand Down Expand Up @@ -1012,41 +1013,6 @@ End

#tag EndWindowCode

#tag Events hvNotes
#tag Event
Function NewWindow() As Object
return hvNewWindow

End Function
#tag EndEvent
#tag Event
Function CancelLoad(URL as String) As Boolean
#pragma unused URL

dim r as boolean = not Loading
Loading = false
return r

End Function
#tag EndEvent
#tag Event
Sub Error(errorNumber as Integer, errorMessage as String)
#pragma unused errorMessage

#if TargetMacOS then
const kCancelledCode as integer = -999
#else
const kCancelledCode as integer = -9999999999
#endif

if errorNumber <> kCancelledCode then
break
end if


End Sub
#tag EndEvent
#tag EndEvents
#tag Events btnOK
#tag Event
Sub Action()
Expand Down Expand Up @@ -1317,6 +1283,41 @@ End
tmrTimeout.Reset


End Sub
#tag EndEvent
#tag EndEvents
#tag Events hvNotes
#tag Event
Function NewWindow() As Object
return hvNewWindow

End Function
#tag EndEvent
#tag Event
Function CancelLoad(URL as String) As Boolean
#pragma unused URL

dim r as boolean = not Loading
Loading = false
return r

End Function
#tag EndEvent
#tag Event
Sub Error(errorNumber as Integer, errorMessage as String)
#pragma unused errorMessage

#if TargetMacOS then
const kCancelledCode as integer = -999
#else
const kCancelledCode as integer = -9999999999
#endif

if errorNumber <> kCancelledCode then
break
end if


End Sub
#tag EndEvent
#tag EndEvents
Expand Down

0 comments on commit 95bd9a2

Please sign in to comment.