[Gambas-user] Possible bug with ColorPalette
Bruce
adamnt42 at gmail.com
Fri Jul 3 18:53:03 CEST 2020
On 4/7/20 1:45 am, Hans Lehmann wrote:
> I just wanted to show that the function ColorPalette1.Colors.Delete(0,
> n) is NOT the right function,
because it returns only an array with the deleted colors!
> This does NOT trigger the deletion of colors from the array.
>
> With kind regards
>
> Hans
>
Well spotted Hans!
To remove a color from the --control--
Dim hList As Integer[] = ColorPalette1.Colors
hList.Remove(0, 1)
ColorPalette1.Colors = hList
N.B. Contrary to what the help says ColorPalette.Colors is not a read
only integer[] property.
b
More information about the User
mailing list