QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: Petr on December 10, 2021, 03:32:46 pm
-
Hi. Try use $NoPrefix and $Color:32 in one source code. It works not. Is this OK or not?
-
Hi. Try use $NoPrefix and $Color:32 in one source code. It works not. Is this OK or not?
Doesn't work.
$COLOR:32 defines us a color called Red.
$NoPrefix strips the underscore off _RED.
Now, what exactly does Red do?
It tosses errors, of course. ;)
-
Yes I understand. I was hoping for some magic that one meta-command would take the other in its basic form, that the meta-commands didn't apply to the others meta-comands... come on no, well. Thank you :)
-
Yes I understand. I was hoping for some magic that one meta-command would take the other in its basic form, that the meta-commands didn't apply to the others meta-comands... come on no, well. Thank you :)
Actually, I think the latest development build offers a fix for this. If I recall correctly, if the two commands are used in conjecture, the color names are changed slightly. Red changes to become NP_Red, or some such. I honestly don't remember exactly what the prefix is off the top of my head, but you can look inside the source folder and check that easily enough.
-
'$COLOR:32
'Color constants for 32bit mode, based on HTML color names, when using $NOPREFIX
Const C_AliceBlue~& = 4293982463
Const C_Almond~& = 4293910221
Const C_AntiqueBrass~& = 4291663221
Const C_AntiqueWhite~& = 4294634455
They're C_ prefixed if you use both together in the latest development builds. ;)
-
Glad to hear it. Thanks for the information. I'm using version 2.0, I can't update the IDE so often :)