View Issue Details

IDProjectCategoryView StatusLast Update
0014889MMW v4Framework: Scripts/Extensionspublic2018-08-27 14:22
Reporterzvezdan Assigned To 
PrioritynoneSeverityminorReproducibilityalways
Status closedResolutionfixed 
Fixed in Version4.1.22 
Summary0014889: (GroupBox|Panel).Common.ControlName displayed as Caption
DescriptionGroupBox and Panel should not display any text if it is not specified as Caption. However, Panel displays ControlName in both skinned and non-skinned versions, while GroupBox displays ControlName when Caption is empty only in non-skinned version.
Steps To ReproduceOption Explicit

Sub OnStartUp()
    Dim oMenuItem

    Set oMenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_File, 0, 0)
    oMenuItem.Caption = "ControlName test"
    oMenuItem.OnClickFunc = "Test"
    oMenuItem.UseScript = Script.ScriptPath
End Sub

Sub Test(oMenuItem)
    Dim oForm
    Dim btnClose
    Dim grpTest
    Dim pnlTest

    Set oForm = SDB.UI.NewForm
    oForm.Common.SetRect 100, 100, 350, 190
    oForm.BorderStyle = 3
    oForm.FormPosition = 4
    oForm.Caption = oMenuItem.Caption

    Set grpTest = SDB.UI.NewGroupBox(oForm)
    grpTest.Common.SetRect 10, 10, 300, 40
    grpTest.Common.ControlName = "Blah_Blah"

    Set pnlTest = SDB.UI.NewPanel(oForm)
    pnlTest.Common.SetRect 10, 60, 300, 40
    pnlTest.Common.ControlName = "Blah_Blah"

    Set btnClose = SDB.UI.NewButton(oForm)
    btnClose.Caption = SDB.Localize("&Close")
    btnClose.Common.SetRect 220, 110, 90, 25
    btnClose.Cancel = True
    btnClose.ModalResult = 2

    oForm.showModal
End Sub
TagsNo tags attached.
Fixed in build1876

Relationships

related to 0004968 closedjiri Regression: <Object>.Common.ControlName Overides <Object>.Caption 
related to 0014944 new ControlName before SetRect adds an unwanted item to DropBox in non-skinned version 

Activities

Ludek

2018-07-09 20:43

developer   ~0050732

Fixed in 4.1.22.1876

peke

2018-08-27 14:22

developer   ~0050990

Verified 1876