Search found 49 matches

by Askjerry
Saturday 25th June 2022 12:42am
Forum: Component
Topic: DrawingArea PAINT.ROTATE(RAD(x))
Replies: 2
Views: 49

Re: DrawingArea PAINT.ROTATE(RAD(x))

I created a new file in QT, pasted in the code and attempted to run it... NULL OBJECT in FMAIN 36 TEMP-ERROR.png Bummer. :( I do appreciate the effort... maybe I'm just missing something small. :roll: It also appears as if your code is rotating the entire drawingarea ... ( I could be wrong) my metho...
by Askjerry
Wednesday 22nd June 2022 12:49am
Forum: Component
Topic: DrawingArea PAINT.ROTATE(RAD(x))
Replies: 2
Views: 49

DrawingArea PAINT.ROTATE(RAD(x))

I have become pretty good at making gauges for GAMBAS, I drop in an SVG image, then overlay it with a DRAWINGAREA and draw a gauge with .stroke and .fill which look great. Public Sub drawingarea1_Draw() Dim cx As Integer = DrawingArea1.W / 2 'Horizontal Center Dim cy As Integer = DrawingArea1.h / 2 ...
by Askjerry
Thursday 28th April 2022 10:30pm
Forum: Beginners
Topic: Form Background Picture - Scale or Tile
Replies: 9
Views: 1066

Re: Form Background Picture - Scale or Tile

I found an easy work around, I just set an image box on the form, place the picture into it with "STRETCH" set to "TRUE".
Then, I set it to be the same size as the background form... for what I'm doing... it works a charm.
Control Panel Demo.png
Control Panel Demo.png (200.49 KiB) Viewed 676 times
Thanks,
Jerry
by Askjerry
Thursday 21st April 2022 10:53pm
Forum: Beginners
Topic: Using DrawArea - Simplified
Replies: 8
Views: 1093

Re: Using DrawArea - Simplified

I'll look into ways of ending/quitting/stopping the program. Once I get this thing running... it will be for school events, robotics meetings, etc. there won't... or shouldn't be much starting/stopping once we begin the event. Ever since starting with the Raspberry Pi I've been looking for a way to ...
by Askjerry
Wednesday 20th April 2022 9:35pm
Forum: Beginners
Topic: Using DrawArea - Simplified
Replies: 8
Views: 1093

Re: Using DrawArea - Simplified

I've made a lot of progress on the graphics and how to make really nice looking controls. Not sure if there is an interest or not... if there is, I'll zip up everything and put it here for you.
Image
by Askjerry
Saturday 16th April 2022 8:51pm
Forum: Beginners
Topic: Form Background Picture - Scale or Tile
Replies: 9
Views: 1066

Re: Form Background Picture - Scale or Tile

I'm not really sure... it is that latest package that was installed to this desktop from LinuxCNC as i was going to use this machine for CNC control. I am developing my GAMBAS skills here... then I will migrate to the Raspberry Pi B3+ as I have several and will be building some teaching devices such...
by Askjerry
Thursday 14th April 2022 1:06am
Forum: Beginners
Topic: Form Background Picture - Scale or Tile
Replies: 9
Views: 1066

Re: Form Background Picture - Scale or Tile

This says Version 3.12.2 so I will see if i can update it.

--> I went to the synaptic package manager... I did not see any versions beyond what i already have.

Thanks,
Jerry
by Askjerry
Tuesday 12th April 2022 5:54am
Forum: Beginners
Topic: Form Background Picture - Scale or Tile
Replies: 9
Views: 1066

Re: Form Background Picture - Scale or Tile

unknown symbol 'stretch' in class 'picture' in FMain:7.
by Askjerry
Sunday 03rd April 2022 5:35pm
Forum: Beginners
Topic: Form Background Picture - Scale or Tile
Replies: 9
Views: 1066

Form Background Picture - Scale or Tile

I have an image that is much larger than my form... I want to scale it so that it is always the size of the form no matter what. I tried... FMain.Picture.Width = FMain.Width FMain.Picture.Height = FMain.Height But that failed.... so how can I resize it? I didn't see anything in the properties like "...
by Askjerry
Wednesday 30th March 2022 2:15am
Forum: Beginners
Topic: Using DrawArea - Simplified
Replies: 8
Views: 1093

Re: Using DrawArea - Simplified

If all works... this is a sample file.

Attached:
Sample.zip
(28.35 KiB) Downloaded 49 times
Feedback Welcome