Search found 64 matches

by Askjerry
Saturday 16th April 2022 8:51pm
Forum: Beginners
Topic: Form Background Picture - Scale or Tile
Replies: 9
Views: 3456

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: 3456

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: 3456

Re: Form Background Picture - Scale or Tile

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

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: 19
Views: 6265

Re: Using DrawArea - Simplified

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

Attached:
Sample.zip
(28.35 KiB) Downloaded 195 times
Feedback Welcome
by Askjerry
Saturday 26th March 2022 8:32pm
Forum: Beginners
Topic: Using DrawArea - Simplified
Replies: 19
Views: 6265

Re: Using DrawArea - Simplified

Thanks to a Spanish web page and the wonders of Google Translate... I got it now. With Paint .Brush = Paint.Color(&H00FFCC00) x1 = 250 y1 = 250 .MoveTo(x1, y1) x2 = Cos(Rad(Slider1.value + offset_angle + 135)) * 20 + 250 y2 = Sin(Rad(Slider1.value + offset_angle + 135)) * 20 + 250 .LineTo(x2, y2...
by Askjerry
Saturday 26th March 2022 6:26pm
Forum: Beginners
Topic: Using DrawArea - Simplified
Replies: 19
Views: 6265

Re: Using DrawArea - Simplified

Simple question... Why isn't the pointer RED? I Used &H00 FF 00 00 which as I understand it is Alpha, RED, GRN , BLU with alpha 00=100% Opaque. Am I using the .COLOR command wrong?? ( Well obviously... but why? ) :roll: The screen consist of only 3 items... Drawarea1 (500,500 pixels) Textbox1 (S...
by Askjerry
Friday 25th March 2022 7:32pm
Forum: Beginners
Topic: Using DrawArea - Simplified
Replies: 19
Views: 6265

Re: Using DrawArea - Simplified

VUOTT - Thank you! That worked perfectly, and I see now the DrawingArea1.Refresh causes the drawing area to clear, and the subroutine DrawingArea1_Draw() is where all the graphics command must reside. Now I have a handle on it... I can make an array of points for a gauge arrow, then read a sensor i...
by Askjerry
Thursday 24th March 2022 11:39pm
Forum: Beginners
Topic: Using DrawArea - Simplified
Replies: 19
Views: 6265

Using DrawArea - Simplified

This should not be so difficult. I created a simple form (600x600) with only two objects. - DrawingArea1 - Button1 Super simple... the idea is that if I click the button, it draws a line. Should be eazy-peasy... but I just don't understand what Gambas wants from me. ' Gambas class file ' Variables P...
by Askjerry
Thursday 24th March 2022 1:07am
Forum: Component
Topic: Vector graphics support ?
Replies: 16
Views: 17540

Re: Vector graphics support ?

I was playing with SVG in Gambas and the images look stunning. I can create nice gradients and such that always look nice. Gambas class file Public Sub Form_Open() Dim pic As Picture pic = Image.Load("./pg.svg").Stretch(PictureBox1.w, PictureBox1.h).Picture PictureBox1.Picture = pic End Pu...