Bug 151740 - Naming of ImageURL / Graphics property is inconsistent between properties page in dialog editor and actual written code
Summary: Naming of ImageURL / Graphics property is inconsistent between properties pag...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
7.4.2.3 release
Hardware: All All
: medium trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-24 21:23 UTC by Ray Culp
Modified: 2023-02-28 13:13 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Screen shot of dialog editor (25.91 KB, image/png)
2022-10-24 21:28 UTC, Ray Culp
Details

Note You need to log in before you can comment on or make changes to this bug.
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")