Search found 754 matches

by cogier
Tuesday 07th September 2021 9:03am
Forum: Lounge
Topic: Cross Platform
Replies: 3
Views: 128

Re: Cross Platform

While Gambas is not cross-platform the fact that Windows now supports Linux to some extent is helpful. Here is a picture of my Gambas program, Simple Barcode (It's on the Gambas Farm), running with the Gambas IDE on Windows 10 under WSL (Windows Subsystem for Linux). https://www.cogier.com/gambas/Wi...
by cogier
Sunday 05th September 2021 10:29am
Forum: Project showcase
Topic: GradientButton, set 2 colours and the background blends
Replies: 7
Views: 181

Re: GradientButton, set 2 colours and the background blends

Excellent stuff Bruce. Do you ever sleep, he asks, looking at your posting times? You can improve the IDE look by adding an image: - 1/. Create an image with all lower case name of your project, in this case ' gradientbutton.png '. 2/. Create a folder ' .hidden/control ' in the application folder. 3...
by cogier
Wednesday 01st September 2021 1:50pm
Forum: Component
Topic: Combining Event Handlers
Replies: 2
Views: 151

Re: Combining Event Handlers

Run this code in a Graphical Program. Hopefully it will help you. hButton As Button Label1 As Label Public Sub AllButtons_Click() Label1.Text = Last.Name End Public Sub Form_Open() ''All this is to add components to the Form Dim sButtonNames As String[] = ["btnDoSomething1", "btnDoAnything1", "btnDo...
by cogier
Monday 30th August 2021 11:19am
Forum: Project showcase
Topic: 2048 The game
Replies: 1
Views: 104

Re: 2048 The game

Updated due to 'New' colours not working in Debian. Tested with Linux Mint 20.2, Gambas 3.16.2 and Debian 10, Gambas 3.12.2.
2048-1.1.tar.gz
(48.18 KiB) Downloaded 10 times
by cogier
Sunday 29th August 2021 3:03pm
Forum: Project showcase
Topic: 2048 The game
Replies: 1
Views: 104

2048 The game

Anyone for 2048? Comments and feedback requested.

Image
2048-1.0.tar.gz
(46.04 KiB) Downloaded 17 times
by cogier
Thursday 26th August 2021 1:14pm
Forum: Component
Topic: is there a tuturial for dynamic control creation
Replies: 11
Views: 514

Re: is there a tuturial for dynamic control creation

Put all the controls you want on one tab. Post the form so we can see it. We might be able to create the necessary code for you. It is very difficult to help when we don't know what the end game is.

Have a look at my 15 Puzzle game on the Gambas Farm. All the GUI components are created in code.
by cogier
Wednesday 25th August 2021 5:02pm
Forum: Component
Topic: popup menu help
Replies: 4
Views: 229

Re: popup menu help

I had a long thought about this and came up with one routine that could do what you want. 1/. Create a global variable e.g. sName 2/. Make the Group property of all the controls the same e.g. Ctrls 3/. Create a routine Public Sub Ctrls_Enter() . This will catch the mouse moving into any of the contr...
by cogier
Monday 23rd August 2021 9:47pm
Forum: Component
Topic: mediaview help
Replies: 3
Views: 158

Re: mediaview help

Have a look at 'Very Simple Video Player' on the Farm. It works well with .webm videos, not so well with .mp4
by cogier
Thursday 19th August 2021 4:41pm
Forum: Project showcase
Topic: InFile
Replies: 38
Views: 6783

Re: InFile

I have just been having a look at D-Bus. I just need to go into a darkened room for an hour! Am I any wiser - Er.. NO! There is a program called D-feet (available from the Ubuntu Repos) that shows all the available connections on the D-Bus. Have you created an example program in Gambas that will dem...
by cogier
Wednesday 18th August 2021 3:38pm
Forum: General
Topic: Compiling
Replies: 3
Views: 193

Re: Compiling

When you press the 'Compile' button, you will be offered a dialogue box. Click on the 'Options' Tab, then make sure a Desktop Shortcut is created. EDIT: - 'Compile' is incorrect and should be 'Make executable'. Compile in Gambas is NOT the same a Compile in VB. If your program is called MyProg then ...