Search found 755 matches

by cogier
Thursday 23rd September 2021 2:32pm
Forum: General
Topic: Passing an argument from Filemanager to a Gambas-App
Replies: 5
Views: 136

Re: Passing an argument from Filemanager to a Gambas-App

There is no need for gb.args . The basic one works fine for what you are looking for. The 'Arguments' are passed to Gambas as an array. The 1st argument, [0], in the array is the name of your program so what you need is the 2nd argument, [1]. Your file manager will pass the full path to Gambas so, t...
by cogier
Tuesday 07th September 2021 9:03am
Forum: Lounge
Topic: Cross Platform
Replies: 3
Views: 174

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

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

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

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 14 times
by cogier
Sunday 29th August 2021 3:03pm
Forum: Project showcase
Topic: 2048 The game
Replies: 1
Views: 114

2048 The game

Anyone for 2048? Comments and feedback requested.

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

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

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

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

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...