Search found 84 matches

by Doctor Watson
Sunday 25th April 2021 8:22am
Forum: General
Topic: The benefits of using vector graphics
Replies: 8
Views: 4795

The benefits of using vector graphics

This isn’t about posting a new problem, but why and how to use a solved one. The problem was ‘Vector graphics support’ as you may find in the Component section. Thanks to the solution provided by Bruce we now can easily ‘stretch’ a graphic to the size we want. And I say ‘graphic’ because ‘picture’ a...
by Doctor Watson
Sunday 25th April 2021 8:11am
Forum: Component
Topic: Vector graphics support ?
Replies: 16
Views: 18650

Re: Vector graphics support ?

Congratulations Bruce! That one needed some thinking over indeed. There is unfortunately almost nothing to be found on how to use ‘stretch’ in the Gambas documentation, certainly no example code. Now that the right way of using the ‘stretch’ property has been found, I’d like to explain why I wanted ...
by Doctor Watson
Thursday 22nd April 2021 11:58am
Forum: Component
Topic: Vector graphics support ?
Replies: 16
Views: 18650

Re: Vector graphics support ?

Hi PJBlack
I already tried that and even a whole new project.
Same - negative - result.

To all : I'll be away for a couple of days. :D
by Doctor Watson
Wednesday 21st April 2021 2:30pm
Forum: Component
Topic: Vector graphics support ?
Replies: 16
Views: 18650

Re: Vector graphics support ?

Nope. Still black is black.
Tried with other graphics formats as well.
Sigh :(
by Doctor Watson
Wednesday 21st April 2021 5:39am
Forum: Component
Topic: Vector graphics support ?
Replies: 16
Views: 18650

Re: Vector graphics support ?

I never considered the Stretch option, so I tried it now. I thought the following code could get a ‘stretched’ Image into a control, also in one that only accepts Pictures. Problem solved? NO. The code runs without errors, but the result is just an empty black graphic. I am obviously forgetting some...
by Doctor Watson
Tuesday 20th April 2021 6:08am
Forum: Component
Topic: Vector graphics support ?
Replies: 16
Views: 18650

Re: Vector graphics support ?

Hi Bruce This SvgImage seems to be useless for actual resizing an .svg image. The example in gb.qt4 does work, but both setting width & height or using Resize give as result a cropped section of somewhere in the middle of the original image. Resize should apply to the entire image. If would have...
by Doctor Watson
Monday 19th April 2021 11:17am
Forum: Component
Topic: Vector graphics support ?
Replies: 16
Views: 18650

Re: Vector graphics support ?

OK Bruce, I'll have a go at it.
by Doctor Watson
Monday 19th April 2021 7:38am
Forum: Component
Topic: Vector graphics support ?
Replies: 16
Views: 18650

Re: Vector graphics support ?

Hi Cogier. After changing the filter to ‘All Files’ you can indeed use any vector graphics, also as Form background and Controls with the ‘Picture’ property. Unfortunately the result is not what I hoped for, namely that such vector graphics would adapt automatically to their container’s size – like ...
by Doctor Watson
Sunday 18th April 2021 6:17am
Forum: Component
Topic: Vector graphics support ?
Replies: 16
Views: 18650

Vector graphics support ?

I was wondering, does Gambas support vector graphics (.AI, .EPS., .SVG, .DRW)? I tried to use some, but Gambas doesn’t seem to know them. It would be ideal for setting quality stable backgrounds, buttons and such. Certainly when you would be using resizable controls or background pictures for small ...
by Doctor Watson
Thursday 15th April 2021 1:44pm
Forum: Beginners
Topic: Insert Image , Smilies?
Replies: 6
Views: 4838

Re: Insert Image , Smilies?

Right. That simple. Once you know it. ;)
Thanks again Steve.

Cogier, as you will notice on my keyboard the 'Return' key and 'Enter' key are both named 'Enter'.
That's why I kept looking at Key.Enter and not getting the result I wanted.
KeyBoard.png
KeyBoard.png (234.69 KiB) Viewed 4828 times