Suggestion: Colorcodes in PB Editor

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by cor.

A nice feature in the PB editor would be.

A colorcode picker which can be used for the colour commands

Registered user of PB

C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.
A nice feature in the PB editor would be.
A colorcode picker which can be used for the colour commands
You can easily make your own from the example file called "Requester.pb".
In fact, I'll do one for you:

Code: Select all

Colour = ColorRequester()
If Colour > -1
  MessageRequester("Info", "Red: "+Str(Red(Colour))+", Green: "+Str(Green(Colour))+", Blue: "+Str(Blue(Colour)), 0)
EndIf

PB - Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by cor.

Thanks for the help, but I didn't need the code for in a program.

Only the colorcodes needed for programming.

I just found that PB has one.

File->Preferences-Coloring

Click on the ....

Registered user of PB

C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
Post Reply