Did you know?

User avatar
sjsepan
Posts: 51
Joined: Saturday 12th October 2019 10:11pm
Location: Leeper, PA, USA
Contact:

Re: Did you know?

Post by sjsepan » Saturday 02nd November 2019 5:41pm

That of the gui apps that you can create*, including ...

'Graphical application'**, 'GTK+ 3 application', 'GTK+ 2 application', and 'QT application',

...the following do not have a Toolbar control in the 'Container' category in the form designer...

'Graphical application'**, 'GTK+ 2 application'

...so you will need to work around that by using something else, like perhaps a Panel control.
_______________
* -- observation made in Gambas 3.14
** -- (Gtk/Qt switcher)

User avatar
sjsepan
Posts: 51
Joined: Saturday 12th October 2019 10:11pm
Location: Leeper, PA, USA
Contact:

Re: Did you know?

Post by sjsepan » Saturday 02nd November 2019 6:29pm

That in a sub-class you need to use the Me keyword (as in Me.SomeParentMember) in order to access members of a parent class.

You do not need to do anything special to reference those same members (assuming they are public in the parent class) in order to access them from a client of the sub-class.

observed in Gambas 3.14

User avatar
stevedee
Posts: 198
Joined: Monday 20th March 2017 6:06pm

Re: Did you know?

Post by stevedee » Thursday 14th November 2019 5:12pm

If you spend a lot of time coding in Gambas, go to menu Tools > Preferences > Code Snippets and look to see if there are any shortcuts that you may be able to use.
CodeSnippets.png
CodeSnippets.png (129.5 KiB) Viewed 316 times
I wish you luck if you plan to memorise them all!

You can also make up and add your own, as is the case with "dx" in the list above.

To use a Code Snippet while in the editor, just type the letter(s) followed by the <TAB> key.
Example: c <TAB>
Private Const Name As Type = Value
...where "Name" is highlighted ready to over-write.

User avatar
grayghost4
Posts: 56
Joined: Wednesday 05th December 2018 5:00am
Location: Concord, CA usa

Re: Did you know?

Post by grayghost4 » Friday 17th January 2020 5:54am

try this :
   If Dialog.SelectDirectory() Then Return
  Print Dialog.Path
  Print File.Dir(Dialog.Path)
  Print File.Dir(File.Dir(Dialog.Path))
 Print File.Dir(File.Dir(File.Dir(Dialog.Path)))
will produce this:

/home/mhc/Documents/workinggambas/printchecks
/home/mhc/Documents/workinggambas
/home/mhc/Documents
/home/mhc

But you all know that :D

Post Reply