Search found 448 matches

by BruceSteers
Wednesday 21st April 2021 11:00pm
Forum: Beginners
Topic: Insert Image , Smilies?
Replies: 6
Views: 64

Re: Insert Image , Smilies?

that must have been a cheap keyboard :lol:

can you "Return" it ? ;) (see what i did there) :? :roll:

(I'll get my coat...)
by BruceSteers
Wednesday 21st April 2021 11:08am
Forum: Component
Topic: Vector graphics support ?
Replies: 11
Views: 191

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 som...
by BruceSteers
Tuesday 20th April 2021 5:42pm
Forum: Component
Topic: Vector graphics support ?
Replies: 11
Views: 191

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 li...
by BruceSteers
Monday 19th April 2021 11:53pm
Forum: General
Topic: [Solved] Advice 0n converting this VB code
Replies: 7
Views: 108

Re: Advice 0n converting this VB code

The function just checks the last digit is zero so there are other ways.
Like using % that gives the remainder of a division
eg.
Dim BarcodeLocal As Integer = 10 - IIf(Total % 10 = 0, 10, Total % 10)
by BruceSteers
Monday 19th April 2021 10:08am
Forum: Component
Topic: Vector graphics support ?
Replies: 11
Views: 191

Re: Vector graphics support ?

Unfortunately the result is not what I hoped for, namely that such vector graphics would adapt automatically to their container’s size – there is an SvgImage.class So if you Dim MyImage as SvgImage and use that image you may have further control like using Paint and Resize to make it correct size I...
by BruceSteers
Friday 16th April 2021 11:21am
Forum: Lounge
Topic: Bruce gets recognition in Gambas 3.16.0
Replies: 4
Views: 63

Re: Bruce gets recognition in Gambas 3.16.0

aaw bless ya guys to be fair i had to recognise myself :lol: Ben asked on the mailing list for any contributors to add themselves to the contributors file. I deliberated for a bit thinking I hadn't done much but tons of bug reporting (tons and tons of bug reporting). So i added myself and listed the...
by BruceSteers
Thursday 15th April 2021 2:29pm
Forum: General
Topic: Trapping Return - Serious problem ?
Replies: 16
Views: 316

Re: Trapping Return - Serious problem ?

Well then, I’m somehow back to where it all began. Using key.code & Key.[names] was something I already had tried, but I didn’t know why it went wrong with certain keys. Now I do. Too bad that my latest idea can’t be used on every computer, because it really works for any key on my computer. This i...
by BruceSteers
Thursday 15th April 2021 9:03am
Forum: General
Topic: Trapping Return - Serious problem ?
Replies: 16
Views: 316

Re: Trapping Return - Serious problem ?

Good morning - or which part of the day it is where you live. I have been pretty busy testing your suggestions and when one sort of combines some of them even an amateur like self can find a very satisfying solution. Keypoint was this little code from Steve : Public Sub Form_KeyPress() Dim varKey A...
by BruceSteers
Wednesday 14th April 2021 11:27pm
Forum: General
Topic: Trapping Return - Serious problem ?
Replies: 16
Views: 316

Re: Trapping Return - Serious problem ?

Also there is this way. (Using Key["Return"] method not Key.Return constant)

Select Key.Code
   Case Key["Return"], Key["Enter"]
   Print "Enter or return was hit"

  Case Key["F1"]
  Print "F1 was hit"

End Select
by BruceSteers
Wednesday 14th April 2021 11:07pm
Forum: General
Topic: Trapping Return - Serious problem ?
Replies: 16
Views: 316

Re: Trapping Return - Serious problem ?

AltGrKey does not work. (it broken in gambas) the right alt key is actually called ISO_Level3_Shift (the Windows keys are called Super) It's a pain dealing with it it's hex value with gtk will be 0xfe03 (as per keysymdef.h) If Key.Code = &hfe03& with qt it's integer value is 16781571 (annoyingly a d...