Ask Your Question
0

Ubuntu-Mate inconsistent drop-down list button in my dialogs.

asked 2019-07-15 06:09:41 +0200

DavidMcCracken gravatar image

My libre-basic library contains several dialogs with drop-down list and combo boxes. In Windows 10 the drop-down buttons are all narrow 3D in the dialog builder, preview, and execution. In Ubuntu-Mate 18.04-64 my library executes as it does in W10 but the 3D buttons are only in one of the dialogs. All of its drop-down buttons are 3D. All of drop-down buttons in the other dialogs are flat arrowheads. I wouldn't mind this except that these consume a much wider space even though the arrowhead itself is narrow. The dialog builder shows all of these buttons in all dialogs as 3D. Dialog preview shows them all as flat in all dialogs. A 3D button listbox copied from the good dialog looks correct in the dialog builder but is flat in execution. Somehow the flat dialogs force the button to go flat, but the dialogs all have identical characteristics. Plus this doesn't happen in Windows. Any ideas about how this could happen?

edit retag flag offensive close merge delete

Comments

Just a hint: (un-) check Tools -> Options -> View -> Category: Graphics Output -> Option: Use OpenGL for all rendering and test.

Opaque gravatar imageOpaque ( 2019-07-15 09:44:10 +0200 )edit

Thanks for your response. In my Graphics Output options the only options are "Use hardware acceleration" and "Use anti-aliasing". I tested these both enabled and disabled with no effect.

DavidMcCracken gravatar imageDavidMcCracken ( 2019-07-15 19:09:55 +0200 )edit

??? - Please tell us your LO version and whether you use the packages from your Ubuntu distribution.

Opaque gravatar imageOpaque ( 2019-07-15 20:04:40 +0200 )edit

LO version 6.0.7.3 Build 1:6.0.7-0ubuntu0.18.04.7. Linux 4.15. UI render: default. VCL: gtk3. Standard Ubuntu distro with no side-loads. On Windows, where I don't find the problem, the LO version is 6.1.5.2. Both systems are 64 bit. Locale: en-US.

DavidMcCracken gravatar imageDavidMcCracken ( 2019-07-16 05:54:14 +0200 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2019-07-17 19:22:54 +0200

DavidMcCracken gravatar image

On further inspection I realized that the root cause of the run-time difference is not in the dialogs but in my macro code. For the one dialog that renders the buttons as I want I had added the statement bmDlg.getPeer().setProperty( "NativeWidgetLook", False ) in order to be able to dynamically change the background color of some controls. Apparently, the dialog editor automatically does this while the previewer does not. I couldn't find any way to build this into the model or to change the preview behavior, making preview essentially worthless if run-time look will be non-native. But at least the dialog editor renders non-native. I now intend to make all my dialogs non-native, not just for this button issue, but because it would be very difficult to design a dialog for every conceivable "native look".

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2019-07-15 06:09:41 +0200

Seen: 21 times

Last updated: Jul 17