[Gambas-user] TextEdit.Format.Background glitch

Bruce Steers bsteers4 at gmail.com
Wed Jun 22 19:46:43 CEST 2022


There is a problem with the TextEdit.Format.Background property.

If you set color to 0 (Color.Black) the background will be black
If you set it to -1 (Color.Default) it is transparent so doc background
shows.

Problem is.. initially, if unset, the Background reports a value of 0
(Color.Black) when it is -1 (Default/transparent)
So you cannot tell if Background is black or transparent unless it has been
explicitly set.

Can the control be made to consider an unset Background as -1 not 0 ?

Respects
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220622/5788b687/attachment.htm>


More information about the User mailing list