Search found 1559 matches
Re: icon move
'This is the code but not working :shock: ----------------------------------------------- ' Gambas class file ' This code assumes you have a form named "Form" with a PictureBox named "PictureBox1" representing the game board. ' Inside the PictureBox, you have a Label named "...
Re: icon move
Hmm you need to read the wiki on how to use Paint.class. that code is pretty far out. Ironically I wrote a snake game that uses a picture box last year. So you've come to the right place for help :D https://forum.gambas.one/viewtopic.php?t=1671 I'll have a look at you code later when I finish work 😎
Re: icon move
Embed it in another picture object
Or
Change the PictureBox.Picture.X and Y
Or If you want more detailed less vague answers ask more detailed less vague questions.
Or post the code/project with details of what you need.
Welcome to the forum
Or
Change the PictureBox.Picture.X and Y
Or If you want more detailed less vague answers ask more detailed less vague questions.
Or post the code/project with details of what you need.
Welcome to the forum
- Monday 22nd April 2024 3:06am
- Forum: Beginners
- Topic: Draw randomly colored dots in DrawingArea - how?
- Replies: 9
- Views: 210
Re: Draw randomly colored dots in DrawingArea - how?
... or make your dots an array that the Draw event paints the same array each time. Ouch! That was like a wake up slap - duh - :mrgreen: ! Haha. I think your main problem was thinking the Draw() event and refresh do little bits. But no , the refresh triggers the Draw event for a complete draw. know...
- Sunday 21st April 2024 9:49pm
- Forum: Beginners
- Topic: Draw randomly colored dots in DrawingArea - how?
- Replies: 9
- Views: 210
Re: Draw randomly colored dots in DrawingArea - how?
Hey Bruce, I've modified my code as you had it above and noticed that the DrawingArea refresh several times when loses or gains focus and on form resize. Is this something that can be overcome? As it currently stands, it's not ideal for what I'm planning to do with it. The PictureBox is already gai...
- Sunday 21st April 2024 8:47pm
- Forum: Beginners
- Topic: Draw randomly colored dots in DrawingArea - how?
- Replies: 9
- Views: 210
Re: Draw randomly colored dots in DrawingArea - how?
Depending on the application it can be better to use a simple PictureBox and use paint functions to paint the picture. Like I say it depends on the application, sometimes a DrawingArea is prefered , sometimes a Picture A PictureBox can be easily manipulated and things added to it, PictureBox1.Pictur...
- Sunday 21st April 2024 8:36pm
- Forum: Beginners
- Topic: Draw randomly colored dots in DrawingArea - how?
- Replies: 9
- Views: 210
Re: Draw randomly colored dots in DrawingArea - how?
The DrawingArea_Draw event is to paint the entire Drawing area surface , totally, from blank. Calling .Refresh triggers the draw event to clear the area and draw anew. (not just part of it) So what you have there is an animation rapidly showing random single dots. you should put the loop in the Draw...
- Thursday 18th April 2024 7:40pm
- Forum: Component
- Topic: Change column width in a DataView not working [solved]
- Replies: 2
- Views: 130
Re: Change column width in a DataView not working
The code should look more like this... DataView1.View.Columns[1].Width = 50 you are missing the Width property DataView1.View.Columns[1] is a pointer to the the Column object not it's width property. PS. It can help a lot to just try hitting . (dot/full stop) after anything and see if the auto-compl...
- Thursday 18th April 2024 5:21pm
- Forum: Project showcase
- Topic: Germinal - a terminal with some potential
- Replies: 6
- Views: 2287
Re: Germinal - a terminal with some potential
hai bruce, you may should disable the selection of proportional fonts and just show monospaced ... cause its very ugly ;-) micha Probably a good idea. Cheers :) How do you like it though? Used Ctrl to move the cursor yet? I'm loving that feature, it makes things like editing a paste of the gambas d...
- Wednesday 17th April 2024 4:12pm
- Forum: Project showcase
- Topic: Germinal - a terminal with some potential
- Replies: 6
- Views: 2287
Re: Germinal - a terminal with some potential
I've just created a development branch on gitlab so i can test things there before merging to main and keep the revision raising to a min. I've just ironed out some bugs in the new routines. : :roll: I have made it so changing prompt line from showing full path to only folder also restores the comma...