Create APIs Rainlendar2

Hi @Rainy

Can you create APIs…

  1. Rainlendar_Language
    Parametre : None
    Return : Current language use Rainlendar2 e.g. “en_US
    Discription : Return the language used in “Options/General/Language” in code: “en_US” or “fr_FR”…

  2. Insert image in tooltip
    you can put a title with: Rainlendar_SetItemValue(RSS_window, "RSS.list", "list." .. pos .. ".tooltipHeader", title)
    you can put text with: Rainlendar_SetItemValue(RSS_window, "RSS.list", "list." .. pos .. ".tooltipText", text)
    I want to be able to do the same thing with an picture ! e.g. "list." .. pos .. ".tooltipPic"

Best regards.

The first one should be easy to implement. I’ll need to check what it requires to show the images in the tooltips. I’ll add both of these to my backlog.

1 Like

@Rainy THX for add :
[2.19.0 Build 172]
o New API function: Rainlendar_GetLocale()
o Generic list and its tooltips can contain images (“list.1.image” and “list.1.tooltipImage”)

can you make a little tutorial how to use (“list.1.image” and “list.1.tooltipImage”) thank you

Here’s a simple list window which shows images in the list and also in the tooltips.

image

ImageList.zip (38.9 KB)

1 Like