Search found 873 matches

by cogier
Thursday 12th May 2022 4:40pm
Forum: General
Topic: help with error message
Replies: 4
Views: 187

Re: help with error message

We will need to see your code, or part of it that creates the warning, to progress any further.
by cogier
Thursday 12th May 2022 11:56am
Forum: General
Topic: help with error message
Replies: 4
Views: 187

Re: help with error message

I don't think you have anything to worry about. GTK often throws up a warning. Have a look here. If it bothers you, try changing from gb.gui to gb.gui.qt.
by cogier
Monday 09th May 2022 2:01pm
Forum: Beginners
Topic: switch to previous instance
Replies: 4
Views: 249

Re: switch to previous instance

Is there in Gambas something like VB's PrevInstance? I don't think there is, but you can see what windows are open with the following code: - Public Sub Form_Open() Dim hWindow As DesktopWindow Desktop.Windows.Refresh() For Each hWindow In Desktop.Windows Print hWindow.VisibleName Next End
by cogier
Monday 09th May 2022 1:35pm
Forum: General
Topic: Paint sample
Replies: 2
Views: 175

Re: Paint sample

This code should help (I had to change your line 27 as it caused a crash): - Private afPoints As New Float[][] Public Sub ToolButton1_Click() afPoints.Add([10, 100]) afPoints.Add([60, 10]) afPoints.Add([60, 10]) afPoints.Add([110, 100]) afPoints.Add([30, 50]) afPoints.Add([80, 50]) DrawingArea1.Refr...
by cogier
Thursday 05th May 2022 3:24pm
Forum: Component
Topic: barcode scanner component
Replies: 4
Views: 684

Re: barcode scanner component

I have altered gbWilly's code a little. This little program works well with my USB reader.
SimpleBarcode-0.0.1.tar.gz
(11.86 KiB) Downloaded 13 times
by cogier
Wednesday 04th May 2022 1:23pm
Forum: General
Topic: Control FiscalPrinter via external library
Replies: 6
Views: 333

Re: Control FiscalPrinter via external library

dmg244 wrote:
Tuesday 03rd May 2022 4:36pm
Did you mean to change "WCHAR_T" to "wchar_t"?
Maybe. Try it.
by cogier
Tuesday 03rd May 2022 3:37pm
Forum: General
Topic: Control FiscalPrinter via external library
Replies: 6
Views: 333

Re: Control FiscalPrinter via external library

I don't know the answer, but I think you need to look at WCHAR_T. This is a Microsoft speciality. Does it need to be there, or should it be in lower case?
by cogier
Sunday 01st May 2022 12:11pm
Forum: Project showcase
Topic: GauchoSketch a CAD to make simple diagrams.
Replies: 2
Views: 197

Re: GauchoSketch a CAD to make simple diagrams.

There is some very nice programming here. I have used 2D CAD in a professional capacity, so I was looking for various features. Here are some of my observations: - About - Clicking this got no response, a project can live or die on its documentation. Line Styles and line Weights - Can you indicate w...
by cogier
Saturday 30th April 2022 12:46pm
Forum: Web
Topic: Anybody having issue with web-debugging?
Replies: 4
Views: 301

Re: Anybody having issue with web-debugging?

You need to switch on the HTTP server. From the Debug Menu select Configuration.. and turn on the HTTP server. https://www.cogier.com/gambas/WebServer.png I changed your code slightly: - ' Gambas class file Export Public Sub WebButton1_Click() Message("This is a message box.") End Public Sub WebTime...
by cogier
Friday 29th April 2022 1:46pm
Forum: Web
Topic: Anybody having issue with web-debugging?
Replies: 4
Views: 301

Re: Anybody having issue with web-debugging?

Can you post an example of your code?