Search found 12 matches

by cage
Tuesday 17th September 2019 7:13pm
Forum: General
Topic: Kill FireFox
Replies: 8
Views: 56

Re: Kill FireFox

Thanks vuott for the information. It's weird but I tried it again today and for some reason it works fine. Really strange. Anyone that uses this way of vuott needs to know that you have to install gb.desktop and gb.image to make it work. I found that when installing those components to save the proj...
by cage
Tuesday 17th September 2019 8:00am
Forum: General
Topic: Kill FireFox
Replies: 8
Views: 56

Re: Kill FireFox

Okay got it working but now it always shows Fire Fox as not running. In other words wid.Count always equals zero. Not sure what desktop or Distro your are using but I am using Arch Linux with a XFCE desktop. I never used the gb.desktop before and would really like to learn and understand it. It look...
by cage
Tuesday 17th September 2019 3:44am
Forum: General
Topic: Kill FireFox
Replies: 8
Views: 56

Re: Kill FireFox

That looks very interesting but I get an error when I run it. Can you tell me how and I need to make it work?
by cage
Sunday 15th September 2019 8:08am
Forum: General
Topic: Kill FireFox
Replies: 8
Views: 56

Re: Kill FireFox

I look at it this way. If you have $2000.00 worth of tools why use a breaker bar to break loose the lug nuts on you car when you can use a impact wrench. I have done it with the task manager, and a script from the command line. But it's more fun making things work with Gambas. :D Gambas is just anot...
by cage
Saturday 14th September 2019 8:41pm
Forum: General
Topic: Kill FireFox
Replies: 8
Views: 56

Kill FireFox

For some reason after the latest update to FireFox it seems that the browser does not close every time. Thanks to cogier's caps lock example I figured out how to check to see if FireFox is running or not, and to kill it if it is. The program is very simple, if FF is running the program will tell you...
by cage
Thursday 12th September 2019 8:14am
Forum: General
Topic: Strange Stuff with the Gambas editor
Replies: 8
Views: 198

Re: Strange Stuff with the Gambas editor

Okay I tested it out with other controls, seems that only Buttons, TextArea, and TextEdit work. Otherwise colors will not change, so I think there is a problem with Gambas with setting colors.
by cage
Thursday 12th September 2019 3:35am
Forum: General
Topic: Strange Stuff with the Gambas editor
Replies: 8
Views: 198

Re: Strange Stuff with the Gambas editor

I change the component in project properties from GB.GUI to Gb.gui.qt. Now clicking on the colour button opens a different more complex colour selection dialogue and also sets the colour of the button correctly. Also, now setting the colour of the button manually displays the correct colour. Same o...
by cage
Wednesday 11th September 2019 6:22am
Forum: General
Topic: Strange Stuff with the Gambas editor
Replies: 8
Views: 198

Re: Strange Stuff with the Gambas editor

I had a few problems but mostly with changing colors. I fixed most of those problems by using QT4/QT5 switcher component. I run Arch Linux and it mostly uses GTK3 but Gambas doesn't seem to like GTK3 very much. I don't know it it's a bug or that Gambas just doesn't like QT5 but for some reason it ju...
by cage
Wednesday 11th September 2019 6:13am
Forum: General
Topic: Using Keypress
Replies: 1
Views: 30

Using Keypress

This is a little routine to use the Sub Form_KeyPress to determine whether a key was a numeric number or not. Might be a good routine to place into a calculator program or a program where you can use keyboard numbers entered. ' Gambas class file Public Sub Form_Open() '******************************...
by cage
Sunday 08th September 2019 7:47pm
Forum: Project showcase
Topic: Fractions Caculator
Replies: 3
Views: 87

Re: Fractions Caculator

I fixed the crashing error and you can fix it as follows.

At the end of the btnEquals sub find:
If Error Then Message( Error )
Replace it with:
Catch 
    Message(Error.Text)
That will prevent the program from crashing when the numbers
are entered incorrectly.