Search found 104 matches

by Quincunxian
Wednesday 06th January 2021 4:04am
Forum: General
Topic: User Define Types
Replies: 10
Views: 125

Re: User Define Types

Gambas uses an object called a STRUCT Public Struct Employee EmployeeNo As String FirstName As String LastName As String DateOfHire As Date Salary As Float EmployeeNumber As Integer End Struct There are some overheads: please read this carefully on the Gambas Wiki on the STRUCT The difference betwee...
by Quincunxian
Wednesday 30th December 2020 11:42pm
Forum: General
Topic: Global Variables
Replies: 7
Views: 179

Re: Global Variables

There is one exception. If you assign a local variable to a global variable in a form or a class then the auto-complete does not work. ' Gambas class file Private MyLocalVariable as string = MyGlobalModule.SomeVariable ' Auto-complete does not work Public Sub Form_Open() Dim MyLocalVariable as strin...
by Quincunxian
Wednesday 30th December 2020 5:24am
Forum: General
Topic: Global Variables
Replies: 7
Views: 179

Re: Global Variables

Do yourself a favour and don't name your modules too long - it gets very stale, very quickly, having to type MyFunkySpecialModule.{my variable} I went full 1980's and named my two main modules: AV { application variables } - just global variables AG { application global } - Global functions and rout...
by Quincunxian
Sunday 20th December 2020 11:30pm
Forum: General
Topic: reseting the text in a textbox
Replies: 5
Views: 227

Re: reseting the text in a textbox

This is a routine that I use to prepare the controls on a form for validation. The passed container is normally a panel or frame which contains all the 'maintenance' controls. {text boxes, text areas, combo boxes, checkboxes etc...} It will then recursivity search for controls and then set their cho...
by Quincunxian
Sunday 06th December 2020 6:09am
Forum: General
Topic: Did you know?
Replies: 65
Views: 30561

Re: Did you know? - For Writers

If you wish to clean up the text imported from a document created in open office format (the only ones I've tried) then this will remove all of the punctuation, dialogues tags and other formatting codes so that you can write analysis functions on the remaining text. I'm 'trying' to create a Gambas a...
by Quincunxian
Monday 30th November 2020 10:51pm
Forum: Component
Topic: Document View - How do you add documents?
Replies: 1
Views: 307

Document View - How do you add documents?

It will be simple and obvious but for the moment it's eluding me !

How do you add a document to the view?
I can set 'blank' documents or placeholders for them by setting the count parameter,
but can't find a process to load or add a document.
by Quincunxian
Saturday 28th November 2020 11:49pm
Forum: General
Topic: Toolbar problem
Replies: 4
Views: 303

Re: Toolbar problem

Additionally: Found something interesting. I had an existing 'tool bar' and added a spring and it did not work in the way I expected. When I checked the hierarchy tab in the GUI, I found that the spring was last on the list for the container. ( a panel in this case) I moved the spring up to where it...
by Quincunxian
Saturday 28th November 2020 11:01pm
Forum: General
Topic: Toolbar problem
Replies: 4
Views: 303

Re: Toolbar problem

Hi Cogier,
Unless I have misunderstood the problem, this worked for me on Mint 20.

Added a toolbar to a form.
Added several toolbuttons and a single checkbox, seperated by a spring.
Ran the test and they were spaced as required.

Have I missed something ?
by Quincunxian
Saturday 31st October 2020 11:06pm
Forum: General
Topic: Calling Subs/Funct in other Modules
Replies: 5
Views: 431

Re: Calling Subs/Funct in other Modules

Two lessons I leant about modules. 1. Modules load alphabetically so be careful of dependencies if you are cross referencing variables or routines between them. 2. Keep Module names as short as practicable. My projects tend to have three modules. AE, AG and AV AE = Application Error Management - whi...
by Quincunxian
Thursday 08th October 2020 3:45am
Forum: Component
Topic: Colour button not displaying colour
Replies: 4
Views: 840

Re: Colour button not displaying colour

Thanks PJ,
I was using the QT4/5 component - then changed over to the qt5 and still not working.
given that it's working for you then I'd say it's a "me and my machine problem"

Thanks again for helping out.