Search found 679 matches

by BruceSteers
Thursday 02nd December 2021 12:42am
Forum: Beginners
Topic: Warning message in IDE when running app
Replies: 9
Views: 263

Re: Warning message in IDE when running app

Thanks Bruce for investing your time also. That's an excellent explanation for me. I would've never figured that out. I've downloaded your attachment and I'll see if I can understand your RunFree.class, it sounds far better than running in a timer. This is very, very helpful. you are welcome, the R...
by BruceSteers
Wednesday 01st December 2021 6:59pm
Forum: Beginners
Topic: Warning message in IDE when running app
Replies: 9
Views: 263

Re: Warning message in IDE when running app

I believe your error is because you use the "Wait" command in the Capture function. Wait() in Gambas triggers a function like VB's DoEvents() to check the event loop for pending events, qt does not like it inside a keyboard event handler. Because the Capture() command is run from the Form_KeyPress()...
by BruceSteers
Thursday 25th November 2021 11:01am
Forum: General
Topic: Installing Gambas Runtime
Replies: 8
Views: 313

Re: Installing Gambas Runtime

Okay, so the app uses gb.image.

so...
sudo apt install gambas3-gb-image

then repeat the process until you have the needed additional components.

it might be easier to type...

sudo apt install gambas3

that will install the most common components for you.
by BruceSteers
Thursday 25th November 2021 1:55am
Forum: General
Topic: Installing Gambas Runtime
Replies: 8
Views: 313

Re: Installing Gambas Runtime

You have to type the full path to the file or use ./forms.gambas if in application folder.

Then it will tell you what components are missing.
Most Gambas apps will use some other components than just the runtime
by BruceSteers
Wednesday 24th November 2021 1:51am
Forum: Beginners
Topic: Question about Message class
Replies: 2
Views: 114

Re: Question about Message class

Message should pop to front.
Does Form2 need to be Utility window? a modal window will get top position so maybe a Utility window does too? i'd make both Forms normal to expect normal usage from them both at the same time :)
by BruceSteers
Wednesday 24th November 2021 1:32am
Forum: General
Topic: Works in IDE; not when made as an executable
Replies: 19
Views: 538

Re: Works in IDE; not when made as an executable

PS.
You can yourself find if your running app has a parent terminal associated or not by using something like this..

If File.In.IsTerm Then
  ' app has a parent terminal so output formatting may occur
Else
  ' Terminal formatting may not occur
Endif
Just in case you need to know :)
by BruceSteers
Wednesday 24th November 2021 1:24am
Forum: General
Topic: Works in IDE; not when made as an executable
Replies: 19
Views: 538

Re: Works in IDE; not when made as an executable

I discovered this by using Quote() in the result to see any differences ;) :lol: I could see the colour codes in the text. The colour codes are interfering with your grep command if you run a gambas app via a terminal or from the IDE it has a stdout terminal stream to use but if just running an app ...
by BruceSteers
Wednesday 24th November 2021 1:17am
Forum: General
Topic: Works in IDE; not when made as an executable
Replies: 19
Views: 538

Re: Works in IDE; not when made as an executable

you are not using the "-c 0" flag i mentioned to remove the colour codes! I find it does what you say if i do not omit the colours but it works if i do. without using -c 0 my output running the exe is this... "\x0312CPU: \x03\x0312Topology\x03 Quad Core \x0312model\x03 Intel Core i5-3470S \x0312bits...
by BruceSteers
Wednesday 24th November 2021 1:03am
Forum: General
Topic: Works in IDE; not when made as an executable
Replies: 19
Views: 538

Re: Works in IDE; not when made as an executable

Just a note. Gambas uses sh by default in a Shell not bash. Maybe that's the problem? (it may not be but sh does behave differently to bash) To make gambas use bash you have to put the following code in.... Public Sub Form_Open() System.Shell = System.Find("bash") ' Now Shell will use bash not sh En...
by BruceSteers
Tuesday 23rd November 2021 3:56am
Forum: General
Topic: Works in IDE; not when made as an executable
Replies: 19
Views: 538

Re: Works in IDE; not when made as an executable

stevedee wrote:
Monday 22nd November 2021 3:21pm
BruceSteers wrote:
Monday 22nd November 2021 3:11pm
...It just seems to add \n line feeds in different places...
That's weird, I get escape characters were you get line feeds (i.e. x1B or 27 decimal)
yeah i used

Shell "inxi -C -c 0" To sText
TextArea1.Text =Quote(sText)

That omitted the color codes and showed the LFs as \n for me.