Multiple pictures in controls
Posted
#1
(In Topic #1442)
Regular

Damned if I can find it and the Search doesn't help (just keeps saying "too many common terms")
Would appreciate a reminder.
tia
b
Posted
Guru

Then paint both pictures to it.
Code (gambas)
Posted
Regular

This time I want to make it 3 or 4 or 200,000,000 pics wide. :ugeek:
Will return if I can't get it going.
b
Posted
Guru

Here's my function from my VBoxMounter program that does it dynamically adding an svg logo icon and maybe a couple of other icons if required.
The picture is then used in a the GridView
Code (gambas)
- Select sFind
- sp = SvgImage.Load("./icons/debian.svg")
- sp = SvgImage.Load("./icons/linuxmint.svg")
- sp = SvgImage.Load("./icons/ubuntu.svg")
- sp = SvgImage.Load("./icons/suse.svg")
- sp = SvgImage.Load("./icons/manjaro.svg")
- sp = SvgImage.Load("./icons/linux-tux.svg")
- sp.Resize(16, 16)
- Paint.Begin(p)
- sp.Paint(0, 0, 16, 16)
- Paint.End
- ' dynamically assign width
- Paint.Begin(pRet)
- Paint.DrawPicture(p, 0, 0, 16, 16) ' add logo
- Paint.End
- Return pRet
1 guest and 0 members have just viewed this.



