Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 4042

Agnostic project and ToolBar Icons

$
0
0

The project is agnostic, so I created a data folder where the informations are stored (using default names: logo.png and address.txt) and read when needed in the program.

Now, I have to add icons I will use in the ToolBar and I realize that I do not know how to load dynamically a “Xojo Picture“ (better know as ImageSet) with two resolutions (1x and 2x).
Of course, I created the logo as Icons and when I wanted to code the ToolBarIcon change I realized… “I do not know how to do that”.

I read:
Getting Started with Graphics
HiDPI Support

Constructor(width As Integer, height As Integer, bitmaps() As Picture)
looks the way to go, but there is no indication on how to add bitmaps to the Picture.

Just before sending this, I made a search in the Fodum and found this same question from 2021 with an answer from Anthony G. Cyphers.

Please, add this to the documentation.

I will implement it hopping everything is OK.

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4042

Trending Articles