Page 3 of 3

Re: a Gambas recent files Lister (TrayIcon)

Posted: Monday 19th September 2022 1:44pm
by BruceSteers
Couple of updates...

Added an opacity setting option

There was a glitch or 2 in the new search box, it now refreshes grid properly and only uses filenames not paths in the search

Also now window can be resized and moved without the title bar visible by clicking bottom right to resize and between the search box and close buttons for move.

(updated archive in first post)

For some reason on my system after moving/resizing it seems to loose the height of a title bar on next open, cant stop it doing that :(
Otherwise it's cool :)

Re: a Gambas recent files Lister (TrayIcon)

Posted: Tuesday 18th October 2022 9:49am
by BruceSteers
I was getting a glitch

"Mostly" the startup delay worked okay but occasionally it would fail and load the pseudo icon and not open in the systray.

I have added a fix for this.
A new option "Wait for SysTray" forces the app to wait for up to 60 seconds if no systray is loaded and checks every second.
  $bHasTray = Desktop.HasSystemTray
  $bWaitForTray = Settings["WaitForTray", False]
  If $bWaitForTray And If Not $bHasTray Then 
    For c As Integer = 1 To 60
      Wait 1
      fList.Retries = c
      $bHasTray = Desktop.HasSystemTray
      If $bHasTray Then Break
    Next
  Endif

If the program had to wait then it tells you so on the About dialog and as a tooltip. (just for curiosity)

Updated the archive on the first post.

Re: a Gambas recent files Lister (TrayIcon)

Posted: Monday 19th December 2022 11:45am
by BruceSteers
Have made some updates to this....
including...

it no longer has option to show/hide window titlebar for resizing as resizing works by grabbing any edge now.

it has a directory lister. it makes a note of the most commonly used folder for the projects in your gambas recents list and has an option to list ALL the projects in that dir.

option to open on single or double click

option to re-compile projects.

option to kill running tasks matching the name of your project (uses pgrep -f, can be useful for programs that have hung)

it has an updater option. checks it's gitlab repo for updates and if yes it downloads and re-compiles the new source.

Respects
BruceS

Re: a Gambas recent files Lister (TrayIcon)

Posted: Friday 30th December 2022 8:11pm
by BruceSteers
Big update here.. 8-)

Changes of note...

new options form , the menu was getting too large.
New options form
New options form
Untitled.png (351.58 KiB) Viewed 5556 times
re-designed the list position saving as was glitching sometimes forgetting it's position.

You can just scroll the mouse wheel on the trayicon to select items and then clicking the tray icon will open the project.

Right click an item to get the following options...
* Execute the projects .gambas file (this option is hidden if no exe exists)
* Execute the project with gbx (use gbx3 to run the project directory, no exe required)
* Open the project directory
* Re-compile and make exe (use gbc3 and gba3 to quickly re-compile the project and make the executable)
* Kill Tasks (Kill all found instances of the task name, hidden if none are found and for glaunch itself) This is useful if you have problems with an active hung program.


Launcher icon actions.
Set the glaunch.desktop icon that will add the selected number of gambas recents to the Actions list. (Actions are right click icon options)
Many launchers do not update the icons very often but the list will be refreshed at each boot.
I've just been messing around here trying to get a crude recents lists option like ms-windows does when you right click an icon.
It works but could probably do with more development. the icon can be dragged onto the buttonbox if you don't know it's location.

Also now when the gambas recent list is read it makes a note of the most used project parent directory,
then it populates another list via Task.class with ALL the projects found in that folder
Main window
Main window
Untitled.png (363.43 KiB) Viewed 5556 times

Re: a Gambas recent files Lister (TrayIcon)

Posted: Friday 30th December 2022 8:53pm
by BruceSteers
also with not using menus but having checkboxes now i was able to add many informative tooltips.
plus i added a load of info to the readme.

Re: a Gambas recent files Lister (TrayIcon)

Posted: Saturday 31st December 2022 3:52pm
by cogier
Thanks for this, it works a treat. Why the transparency?

Image

Re: a Gambas recent files Lister (TrayIcon)

Posted: Saturday 31st December 2022 8:11pm
by BruceSteers
You're welcome 😁
I find it pretty useful so hopefully others will 😎

I like a little opacity 😁

You can adjust it in the settings with a slider