Created attachment 179021 [details] sample document with a macro from Ilmari's email to dev mailing list [1]: > The dev guide references some known issues (without bug numbers). I > appreciate any help in figuring out if they are still relevant. > > https://wiki.documentfoundation.org/Documentation/DevGuide/LibreOffice_Basic#Date_Field > Dropdown is currently not working by program, but you can set it with > the Control Properties in the IDE. This still seems to be the case. Steps to reproduce: 1) open attached document "UnoControlDateField.odt" 2) run the macro Actual behavior: The left-hand date control has a dropdown menu to select the date, but the right-hand one doesn't. For the left-hand one, the "Dropdown" property has been enabled in the dialog editor ("Tools" -> "Macros" -> "Organize Dialogs"). For the right-hand one, it was attempted in the macro, relevant part: REM This is false, as expected, since "Dropdown" not enabled in IDE test2 = oDateFieldControlModel2.DropDown REM This doesn't work, still doesn't show a dropdown oDateFieldControlModel2.DropDown = true REM This is still false test2 = oDateFieldControlModel2.DropDown Version: 7.4.0.0.alpha0+ / LibreOffice Community Build ID: a3a233657435e26dd9ff19d2d5087729e64cdb03 CPU threads: 12; OS: Linux 5.16; UI render: default; VCL: kf5 (cairo+xcb) Locale: en-GB (en_GB.UTF-8); UI: en-US Calc: threaded [1] https://lists.freedesktop.org/archives/libreoffice/2022-March/088627.html
Created attachment 179022 [details] Screenshot showing the dialog and relevant variables in the IDE
This here (see comment, and arrow indicating the line for DROPDOWN) in `UnoControl::ImplModelPropertiesChanged` *might* be relevant: sal_uInt16 nPType = GetPropertyId( rEvent.PropertyName ); if ( mbDesignMode && mbDisposePeer && !mbRefreshingPeer && !mbCreatingPeer ) { // if we're in design mode, then some properties can change which // require creating a *new* peer (since these properties cannot // be switched at existing peers) if ( nPType ) bNeedNewPeer = ( nPType == BASEPROPERTY_BORDER ) || ( nPType == BASEPROPERTY_MULTILINE ) -> || ( nPType == BASEPROPERTY_DROPDOWN ) || ( nPType == BASEPROPERTY_HSCROLL ) || ( nPType == BASEPROPERTY_VSCROLL ) || ( nPType == BASEPROPERTY_AUTOHSCROLL ) || ( nPType == BASEPROPERTY_AUTOVSCROLL ) || ( nPType == BASEPROPERTY_ORIENTATION ) || ( nPType == BASEPROPERTY_SPIN ) || ( nPType == BASEPROPERTY_ALIGN ) || ( nPType == BASEPROPERTY_PAINTTRANSPARENT );
Reproduced in Version: 7.4.0.0.alpha0+ / LibreOffice Community Build ID: f461c889ac4bc053c306537f644ec4bf3e0d5128 CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3 Locale: es-ES (es_ES.UTF-8); UI: en-US Calc: threaded and according to https://wiki.documentfoundation.org/Documentation/DevGuide/LibreOffice_Basic#Date_Field this might be the case since OOo times
Dear Michael Weghorn, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Still reproducible with Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: e610847df369f02681603e34092fe7d39b749729 CPU threads: 32; OS: Linux 6.10; UI render: default; VCL: gtk3 Locale: en-GB (en_GB.UTF-8); UI: en-US Calc: CL threaded