See Format() command
https://gambaswiki.org/wiki/lang/format
Also see Date() command as you don't really want to be running shell timedatectl when gambas has built in date functions.
https://gambaswiki.org/wiki/lang/date
There is lots of info in the gambas help system. https://gambaswiki.org/wiki
Search found 1563 matches
- Friday 26th April 2024 9:33am
- Forum: General
- Topic: Converting UTC time
- Replies: 1
- Views: 20
- Thursday 25th April 2024 11:02am
- Forum: Beginners
- Topic: Anyone using dot notation with strings?
- Replies: 4
- Views: 1316
Re: Anyone using dot notation with strings?
I guess it comes down to Len() being a built in function and String.Len() being in the "handler of utf-8 strings" String.class from gb.util With your logic then theoretically also Mid() and InStr(), etc would be expected to work UTF-8 strings too? But no I think it makes sense. As it stand...
Re: icon move
I am using the Bicycle icon from stock but can not find the path to it. It says" icon:/32/bicycle" on PictureBox Picture column. Confused@Cliofuse :geek: It's Stock. Stock class uses a mix of the system icons and some built in gambas ones. the icon:/ path links internally to gb.form.stock...
Re: icon move
Ok Thank you @BruceSteers So don't I need a Drawing Area over PictureBox then. Hope im not vague again .me a beginner :D No a PictureBox shows a picture that you create using paint methods. (you can also use Paint.Begin(PictureBox1.Picture to edit the picturebox's picture directly) Or you could use...
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: 273
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: 273
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: 273
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...