Hi. I created a function to show/hide specific objects on a page.
When I disable page redrawing (or DialogEx) the radiobuttons are not hidden or shown again properly. Only when I do not disable redrawing the buttons disappear and reappear. It's a bug?
Example Code:
When I disable page redrawing (or DialogEx) the radiobuttons are not hidden or shown again properly. Only when I do not disable redrawing the buttons disappear and reappear. It's a bug?

Example Code:
Code:
function ShowSettings(nCategory) Debug.ShowWindow(true); -- Objects with "x" as first char in the object name are static and always displayed --DialogEx.SetRedraw(false); -- Hide Items tblObjects = DialogEx.EnumerateObjects(); Debug.Print("nCategory: "..nCategory.."\r\n"); for i, v in pairs(tblObjects) do strCat = String.Left(v, 1); if strCat ~= "x" then strCat = String.ToNumber(strCat); -- dont compare str with nCategory number! nObjType = DialogEx.GetObjectType(v); --Debug.Print("nObjType: "..nObjType.."\r\n"); --Debug.Print("strCat: "..strCat.."\r\n"); if nObjType == OBJECT_LABEL and strCat ~= nCategory then Label.SetVisible(v, false); elseif nObjType == OBJECT_LABEL and strCat == nCategory then Label.SetVisible(v, true); end if nObjType == OBJECT_IMAGE and strCat ~= nCategory then Image.SetVisible(v, false); elseif nObjType == OBJECT_IMAGE and strCat == nCategory then Image.SetVisible(v, true); end if nObjType == OBJECT_RADIOBUTTON and strCat ~= nCategory then Debug.Print("HideRadio: "..v.."\r\n"); RadioButton.SetVisible(v, false); elseif nObjType == OBJECT_RADIOBUTTON and strCat == nCategory then Debug.Print("ShowRadio: "..v.."\r\n"); RadioButton.SetVisible(v, true); end end end DialogEx.SetRedraw(true); --DialogEx.Redraw(); end
Comment