Issue 122636

Summary: [sidebar] non-pro build does not show field length in sidebar panels
Product: General Reporter: Regina Henschel <rb.henschel>
Component: uiAssignee: AOO issues mailing list <issues>
Status: UNCONFIRMED --- QA Contact:
Severity: Normal    
Priority: P3 CC: awf.aoo, elish, issues
Version: 4.0.0-devKeywords: needhelp
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Simple patch to force recursive child processing. none

Description Regina Henschel 2013-06-29 13:31:24 UTC
If you use a non-pro build you can enable an option to show the width of fields in dialogs. This option does not work for the sidebar, but would be useful there too as in other dialogs.
Comment 1 Andre 2013-07-01 11:05:29 UTC
I am not familiar with this feature.  Can you explain how to activate it.
Comment 2 Regina Henschel 2013-07-01 11:56:41 UTC
Use Ctrl+Alt+Shift+D do open the dialog for the debug settings. In section 'Test options' check 'Dialog'. OK.

Now open e.g Tools > Options > ... You see, that the controls have got a background color. The color shows, how large the field is really. So you can see, whether there is enough space for longer words in other languages. For more details see the help of the debug settings.

I don't know, what need to be done, to make the sidebar react on this debug setting, likely Ariel knows.
Comment 3 Andre 2013-07-01 12:06:01 UTC
Ah, in the debug settings dialog. Thanks.  Will look into this when I find the time.
Comment 4 Andre 2013-07-01 12:41:50 UTC
The colorization (and other visual clues) are set in DbgDialogTest() (vcl/source/app/dbggui.cxx).

A) This function is only called from Window::Show(), so in order to trigger it, you have to click the closer in the sidebar (just the tab bar remains visible) and then click on the property button to show the sidebar deck again.

B) DbgDialogTest() then iterates over all child windows of the window that just received the Show() command.  This is the SidebarDockingWindow.  It seems that only the direct children are processed.  In case of the sidebar that does not include any panels or their controls.
This iteration loop would have to be changed to work for sidebar panels.
Comment 5 Andre 2013-07-01 13:08:15 UTC
Created attachment 80968 [details]
Simple patch to force recursive child processing.

This patch iterates recursively over all children not just the top level ones.

You still have to close and reopen the sidebar deck.