Added changes for Debug & Release

Fixed bug in <Fill Button> for setting flags 2^63 (UINT64) -> MaxFlags on UI controls = 10 bits