Multicolor Procedure List

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: Multicolor Procedure List

Post 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.
Image
Image
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: Multicolor Procedure List

Post 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.
Image
Image
User avatar
Zebuddi123
Enthusiast
Enthusiast
Posts: 794
Joined: Wed Feb 01, 2012 3:30 pm
Location: Nottinghamshire UK
Contact:

Re: Multicolor Procedure List

Post by Zebuddi123 »

Thank you RSBasic :)
malleo, caput, bang. Ego, comprehendunt in tempore
HanPBF
Enthusiast
Enthusiast
Posts: 563
Joined: Fri Feb 19, 2010 3:42 am

Re: Multicolor Procedure List

Post 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!
BarryG
Addict
Addict
Posts: 3294
Joined: Thu Apr 18, 2019 8:17 am

Re: Multicolor Procedure List

Post 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?
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: Multicolor Procedure List

Post 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
Image
Image
BarryG
Addict
Addict
Posts: 3294
Joined: Thu Apr 18, 2019 8:17 am

Re: Multicolor Procedure List

Post 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
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: Multicolor Procedure List

Post by RSBasic »

Thank you for your information. I have to escapene "[" and "]". Version comes later.
Image
Image
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: Multicolor Procedure List

Post 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.
Image
Image
BarryG
Addict
Addict
Posts: 3294
Joined: Thu Apr 18, 2019 8:17 am

Re: Multicolor Procedure List

Post 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.
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: Multicolor Procedure List

Post 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
Image
Image
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: Multicolor Procedure List

Post by RSBasic »

Multicolor Procedure List 1.1.4 has been released.

Changelog:
  • Bugfix: Setting "Automatically hide the Panel".
Image
Image
BarryG
Addict
Addict
Posts: 3294
Joined: Thu Apr 18, 2019 8:17 am

Re: Multicolor Procedure List

Post by BarryG »

Confirmed fixed for auto-hiding tool panel. Thanks a lot.
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: Multicolor Procedure List

Post by RSBasic »

Multicolor Procedure List 1.1.5 has been released.

Changelog:
  • Bugfix: Is now compatible with the "Help Tool" tool.
Image
Image
HanPBF
Enthusiast
Enthusiast
Posts: 563
Joined: Fri Feb 19, 2010 3:42 am

Re: Multicolor Procedure List

Post 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!
Post Reply