https://bugs.documentfoundation.org/show_bug.cgi?id=148129

            Bug ID: 148129
           Summary: UNOControlDateField: Can't enable dropdown from macro
                    code
           Product: LibreOffice
           Version: 7.4.0.0 alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: sdk
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 179021
  --> https://bugs.documentfoundation.org/attachment.cgi?id=179021&action=edit
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

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to