Function JBColorDialog$() v.1.3.0

Programming Tools, Tips, and Tutorials.
Post Reply
joan-74
Posts: 2
Joined: Thu Jul 03, 2014 8:10 am

Function JBColorDialog$() v.1.3.0

Post by joan-74 »

Hi,

I have programmed a ColorDialog$() function for JB users.
Features : wrote: ==========
- The JBColorDialog$ function tries to reproduce the ColorDialog function, which not exist in JustBasic.
- It is based on WindowsXP ColorDialog() version.
- No known bug with this version.
- By default, the language is in English, but you can make your own language by modify 'language.txt' file.

3 files are will be automatically created during the 1st execution of JBColorDialog$().
- matrix.bmp : The matrix colors (background)
- matrix-cursor.bmp : The cursor of the matrix (Sprite)
- language.txt : The file containing the language

How use JBColorDialog$() ? :
============================
'----------------------------------------------------------------------------------------------'
'Initialization of the variables color$ and chosen$ (=> OPTIONAL)
color$ = "0 0 0" ' or another value rgb that you wish to send to the function.
chosen$ = ""

'… [your program here]…

chosen$ = JBColorDialog$(color$, byref chosen$)

'… [continuation of your program here]…


'… [SUBS and FUNCTIONS of JBColorDialog$() here]…
'----------------------------------------------------------------------------------------------'

@+
joan74
lbasic.fr
Attachments
JBColorDialog_130plus.zip
JBColorDialog$() + French language file for translate exemple
(30.27 KiB) Downloaded 369 times
Post Reply