Bug 151740

Summary: Naming of ImageURL / Graphics property is inconsistent between properties page in dialog editor and actual written code
Product: LibreOffice Reporter: Ray Culp <documentfoundation.org.user>
Component: BASICAssignee: Not Assigned <libreoffice-bugs>
Status: UNCONFIRMED ---    
Severity: trivial CC: ilmari.lauhakangas
Priority: medium    
Version: 7.4.2.3 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Screen shot of dialog editor

Description Ray Culp 2022-10-24 21:23:31 UTC
Description:
The property of the ImageControl that points to the image to be displayed is different when viewed in the properties page of the dialog designer in the Basic IDE ("Graphics") and when referenced in code ("ImageURL").

Steps to Reproduce:
1. View the properties page of ImageControl in dialog designer at design time. The property is called "Graphics".
2. Write a line of code to dynamically change the image displayed in an ImageControl. The property is called "ImageURL" (Example: oDialog1.getModel().getByName("ImageControl1").ImageURL = sURL)

Actual Results:
Different names are used for the same property.

Expected Results:
The names should be the same in the dialog editor and in the line of code.


Reproducible: Always


User Profile Reset: No

Additional Info:
Although I have selected the severity "trivial", it is actually quite a hindrance if you are trying to find guidance on how to change the property "Graphics" of an ImageControl at runtime and are unable to find any information because the property is named differently when used in code.
Comment 1 Ray Culp 2022-10-24 21:28:37 UTC
Created attachment 183243 [details]
Screen shot of dialog editor
Comment 2 Buovjaga 2023-02-28 13:13:15 UTC
The string is in

extensions/inc/strings.hrc:48:#define RID_STR_IMAGE_URL                       NC_("RID_STR_IMAGE_URL", "Graphics")