View Issue Details

IDProjectCategoryView StatusLast Update
0013888MMW v4Framework: Scripts/Extensionspublic2017-02-03 23:06
Reporterpeke Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status assignedResolutionopen 
Target Version4.1.15 
Summary0013888: Option Sheet: Common Option Sheet values are not read correctly
DescriptionWhen user read first "Sheet.Common.Width" after reopen the options and init sheet value is not read correctly, every other read is correctly read.
Additional Informationhttp://forum.mediamonkey.com/viewtopic.php?f=19&t=86746
TagsNo tags attached.
Attached Files
Panel.vbs (1,270 bytes)   
        Sub OnStartup
           Dim ind
           
           ind = SDB.UI.AddOptionSheet("TestSheet",Script.ScriptPath,"InitSheet","SaveSheet",-2)
           
        End Sub

        Sub InitSheet(Sheet)
           Dim form, Panel1, Panel2, Panel3, Panel4, PanelWidth

           PanelWidth = Sheet.Common.Width -20
           
           Set Panel1 = SDB.UI.NewGroupBox(Sheet)
           Panel1.Common.Anchors = 1+2+4
           Panel1.Caption = "Panel 1"
           
           Set Panel2 = SDB.UI.NewGroupBox(Sheet)
           Panel2.Common.Anchors = 1+2+4
           Panel2.Caption = "Panel 2"
           
           Set Panel3 = SDB.UI.NewGroupBox(Sheet)
           Panel3.Common.Anchors = 1+2+4
           Panel3.Caption = "Panel 3"
           
           Set Panel4 = SDB.UI.NewGroupBox(Sheet)
           Panel4.Common.Anchors = 1+2+4
           Panel4.Caption = "Panel 4"

           PanelWidth = Sheet.Common.Width -20

           Panel1.Common.SetRect 10,5,PanelWidth,50   
           Panel2.Common.SetRect 10,65,PanelWidth ,50   
           Panel3.Common.SetRect 10,125,PanelWidth,50   
           Panel4.Common.SetRect 10,185,PanelWidth,50   
        End Sub

        Sub SaveSheet(Sheet)
           
        End Sub
Panel.vbs (1,270 bytes)   
Fixed in build

Activities