Page 3 of 9

Re: Multicolor Procedure List

Posted: Wed May 29, 2019 10:14 am
by RSBasic
Multicolor Procedure List 1.1.1 has been released.

Changelog:
  • Added: SpiderBasic support
  • Deleted: Language setting: The language is now automatically determined from the PB or SB settings file.

Re: Multicolor Procedure List

Posted: Fri May 31, 2019 8:44 pm
by RSBasic
Multicolor Procedure List 1.1.2 has been released.

Changelog:
  • Added: Support of project files
  • Added: The tool is now compatible with the "Automatically hide the panel" setting.

Re: Multicolor Procedure List

Posted: Fri May 31, 2019 11:05 pm
by Zebuddi123
Thank you RSBasic :)

Re: Multicolor Procedure List

Posted: Sun Jun 02, 2019 6:25 am
by HanPBF
Hello RSBasic,
added support for project files
-> what does this mean?

When I set a color for background/foreground in procedure list, I can define my own colors in the windows very own color dialog.
Could it be possible to save the last defined colors (and maybe reset them)?
Not the biggest problem, I know... :)

Thanks a lot for this great tool!

Re: Multicolor Procedure List

Posted: Sun Jun 02, 2019 7:00 am
by BarryG
I downloaded this to try it (1.1.3), but it doesn't work with my Prefs (no icons appeared above the procedure list). I had to use a clean PureBasic install to make it work. When I have time I'll try to work out what's stopping it.

But, where do the colors get saved? I colored a procedure, saved my source, quit PureBasic, started it again, loaded my source, and there's no color for the procedure?

Re: Multicolor Procedure List

Posted: Sun Jun 02, 2019 7:22 am
by RSBasic
HanPBF wrote:
added support for project files
-> what does this mean?
Because my tool has to determine the full path and file name using the window title to assign the colors you specified to your open PB file, project files were slightly different.
It did not correctly determine the file name for project files. Has been fixed.
HanPBF wrote:When I set a color for background/foreground in procedure list, I can define my own colors in the windows very own color dialog.
Could it be possible to save the last defined colors (and maybe reset them)?
I'll see if it's possible. I don't know if you can add custom colors to ColorRequester() right now. Or if it is only possible with WinAPI function ChooseColor_().
With WinAPI function ChooseColor_() it is possible to pass custom colors to the requester:

Code: Select all

EnableExplicit

Structure COLORREF
  RGB.l[16]
EndStructure 

Define CHOOSECOLOR.CHOOSECOLOR
Define COLORREF.COLORREF

COLORREF\RGB[0] = RGB(255, 0, 0)
COLORREF\RGB[1] = RGB(0, 255, 0)
COLORREF\RGB[2] = RGB(0, 0, 255)

CHOOSECOLOR\LStructSize = SizeOf(CHOOSECOLOR)
CHOOSECOLOR\hwndOwner = 0;WindowID(#Window)
CHOOSECOLOR\rgbResult = RGB(100, 200, 50)
CHOOSECOLOR\lpCustColors = COLORREF
CHOOSECOLOR\flags = #CC_ANYCOLOR | #CC_FULLOPEN | #CC_RGBINIT

If ChooseColor_(@CHOOSECOLOR)
  Debug "Color: " + CHOOSECOLOR\rgbResult
Else
  Debug "No color selected."
EndIf
BarryG wrote:But, where do the colors get saved? I colored a procedure, saved my source, quit PureBasic, started it again, loaded my source, and there's no color for the procedure?
No portable version: %AppData%\RSBasic\Multicolor Procedure List\ProcedureColors.ini
Portable version: <Current directory of program>\Data\ProcedureColors.ini

Re: Multicolor Procedure List

Posted: Sun Jun 02, 2019 7:29 am
by BarryG
I looked in ProcedureColors.ini and found your bug: you're not saving the source filename properly (it's cropped in the INI file).

This is because my folder paths have [ and ] in them, and your save routine is incorrectly parsing them:

Image

Re: Multicolor Procedure List

Posted: Sun Jun 02, 2019 7:53 am
by RSBasic
Thank you for your information. I have to escapene "[" and "]". Version comes later.

Re: Multicolor Procedure List

Posted: Sun Jun 02, 2019 10:16 am
by RSBasic
Multicolor Procedure List 1.1.3 has been released.

Changelog:
  • Added: ColorRequester(): All custom colors are saved and loaded.
  • Bugfix: Characters "[" and "]" are escaped in the file name.

Re: Multicolor Procedure List

Posted: Sun Jun 02, 2019 10:44 am
by BarryG
RSBasic wrote:Bugfix: Characters "[" and "]" are escaped in the file name.
Confirmed fixed. :)

But my tools panel is set to auto-hide, and MPL doesn't start with the IDE, despite saying that it supports this setting. If I disable auto-hide, then MPL starts correctly with the IDE.

Re: Multicolor Procedure List

Posted: Sun Jun 02, 2019 8:47 pm
by RSBasic
Zebuddi123 wrote:This is how my templates Look, all automated from a program I wrote. As you can see there are quite a number of proc's which I`m always forgetting whats where. The search function of MPL what be a god send here for me.

https://ibb.co/41yx84q
Have fun: viewtopic.php?f=27&t=72940

Re: Multicolor Procedure List

Posted: Sun Jun 02, 2019 9:35 pm
by RSBasic
Multicolor Procedure List 1.1.4 has been released.

Changelog:
  • Bugfix: Setting "Automatically hide the Panel".

Re: Multicolor Procedure List

Posted: Mon Jun 03, 2019 2:08 am
by BarryG
Confirmed fixed for auto-hiding tool panel. Thanks a lot.

Re: Multicolor Procedure List

Posted: Wed Jun 05, 2019 9:20 pm
by RSBasic
Multicolor Procedure List 1.1.5 has been released.

Changelog:
  • Bugfix: Is now compatible with the "Help Tool" tool.

Re: Multicolor Procedure List

Posted: Thu Jun 06, 2019 6:36 am
by HanPBF
Hello RSBasic,

had a strange behaviour I thaught only since today.
But now I am not convinced any more, because the beahaviour is very particular.

When I start PureBasic and have Project panel open and start debugging, I don't get mouse over hints anymore for variables.
When I then switch to procedure panel with multicolor tool enabled, tooltips work again.

I deactivated multicolor tool, and did restart all -> tooltips work even when project panel shown.

You could imagine I was hopeless, because I did not remember the multicolor tool anymore (because it's great and simply "belongs" now to the IDE). And even now all is clear, first, You don't know where to look after.

Could You check the behaviour and see, if it's possible to fix it?

Thanks a lot!