Green.a = Val(StringField(Values, 2, ","))īlue.a = Val(StringField(Values, 3, ","))Īlpha.a = Val(StringField(Values, 4, ","))Ĭolor00.s = FormatColor::DoIt(RGB(255,125,125))Ĭolor01. The file for the color data, PBNamedColorLists.pb, is useable as PB-File to copy the colors or constants and uses. Create different folders like 'PureBasicv3.94' and 'PureBasicv4' and install the related PureBasic version in each folders. Select StringField(FormattedColor, 1, "(") When the IDE or SysWindow is closed, the files are written to with any changed information. These files are read when the IDE or a SysWindow is started and contain information about the font, size, and color options. Colours are defined like HTML with followed by 6 or 8 hexadecimal. The BASIS IDE and SysWindow create user preference files in the users home directory. PureBasic - Preference example file (c) Fantaisie Software - IfCreatePreferences(GetTemporaryDirectory()+'Preferences.prefs') PreferenceGroup('Global') WritePreferenceString('ApplicationName', 'MP3 Player') WritePreferenceString('Version', '1. Values.s = StringField(StringField(FormattedColor, 2, "("), 1, ")") Language settings are determined from the file extension but this can be changed. A simple syntax file, only used to display comments in another color. The author can in no way be held responsible FishInTank(0)Color Red, White and Black FishInTank(1)Kind Box. This code is free to be use where ever you like Before they are compiled, PureBasic programs are just plain text files (usually. Now, color printing is enabled on your printer. Having only 1 preference file accessible at one time is sometimes (in my cases often) not sufficient.
0 Comments
Leave a Reply. |