Search found 1113 matches
- Wednesday 25th November 2020 6:18pm
- Forum: General
- Topic: put several sounds
- Replies: 2
- Views: 2384
Re: put several sounds
Hi kanba and welcome to the forum. Try this code: - ''Needs gb.sdl2.audio Public Sub Form_Open() Dim sSound1 As Sound = Sound.Load("16.wav") 'Change as necessary Dim sSound2 As Sound = Sound.Load("20.wav") 'Change as necessary Channels[1].Play(sSound1) Channels[2].Play(sSound2) E...
- Tuesday 24th November 2020 4:27pm
- Forum: Project showcase
- Topic: ScriptED script editor.
- Replies: 8
- Views: 10720
Re: ScriptED script editor.
The enthusiasm for this project is palpable but I still need more help. An example of how and what it does would help. There are quite a few buttons with no ToolTips. Panel1 needs padding(5). Panel3 is 'squishing' all the buttons, I suggest you remove it. I was playing around with replacing the 'Too...
- Sunday 22nd November 2020 6:00pm
- Forum: Web
- Topic: View HTML pages
- Replies: 9
- Views: 14009
Re: View HTML pages
Why can't you use QT?
- Saturday 21st November 2020 12:24pm
- Forum: General
- Topic: Calendar, Scheduler in Gambas
- Replies: 5
- Views: 4217
Re: Calendar, Scheduler in Gambas
Have a look at the attached. Is that what you are looking for?
- Friday 20th November 2020 4:22pm
- Forum: General
- Topic: Drawingarea drag&drop
- Replies: 12
- Views: 8408
Re: Drawingarea drag&drop
I have had a look at this and come up with a place to start. Run this code in a new 'Graphical application'. The next step would be to create a Class (called Plant?) containing text and/or a picture so that you can add this to the DrawingArea. This would give you the option to move the 'Plant' aroun...
- Thursday 19th November 2020 6:26pm
- Forum: General
- Topic: Drawingarea drag&drop
- Replies: 12
- Views: 8408
Re: Drawingarea drag&drop
Hi Bill,
I am a little confused here. You say 'I wish to drag an item from a gridview to a picturebox' but your example uses a DrawingArea ?
Do you want to drag the text from a GridView Cell to the DrawingArea/PictureBox and put a circle around it?
Can you provide a little more explanation.
I am a little confused here. You say 'I wish to drag an item from a gridview to a picturebox' but your example uses a DrawingArea ?
Do you want to drag the text from a GridView Cell to the DrawingArea/PictureBox and put a circle around it?
Can you provide a little more explanation.
- Monday 16th November 2020 2:55pm
- Forum: General
- Topic: Application.Restart=String[] ?
- Replies: 3
- Views: 2945
Re: Application.Restart=String[] ?
You could have a look at my program AutoUpdater. It stops a running program, uncompresses a tar file containing a Gambas program, copies it and then restarts it.
- Sunday 15th November 2020 4:15pm
- Forum: General
- Topic: Application.Restart=String[] ?
- Replies: 3
- Views: 2945
Re: Application.Restart=String[] ?
I had a look at this but I can't get it to do anything. I found this quote ..desktop sessions are now supported, the Application.Restart property allows to define the command executed by the session manager to put the application back on the desktop when starting the desktop. I know you will have se...
- Friday 13th November 2020 4:33pm
- Forum: General
- Topic: Decode Bit-coded
- Replies: 3
- Views: 2949
Re: Decode Bit-coded
Is this what you are looking for? TextBoxIn As TextBox GridViewDisplay As GridView Public Sub TextBoxIn_Change() Dim iLoop As Integer Dim sBin As String GridViewDisplay.Clear If Len(Trim(TextBoxIn.Text)) > 3 Then TextBoxIn.Text = Left(TextBoxIn.Text, -1) Try sBin = Bin(TextBoxIn.Text, 7) If Error Th...
- Tuesday 10th November 2020 4:59pm
- Forum: General
- Topic: Did you know?
- Replies: 91
- Views: 412068
Re: Did you know?
Can you think of a good use for Boxed Strings? You mustn't ask me these questions :o. My mind went off and came up with the code below. The use of Boxed String is on Line 13 and here it is very useful. It could be done with a 'Mid' statement but this is more elegant. The code should work without th...