[Gambas-user] Inherit Button, looks bad in the IDE?
Tobias Boege
tobs at taboege.de
Wed Feb 17 14:56:34 CET 2021
On Wed, 17 Feb 2021, Bruce Steers wrote:
> --------------------------
> ' Gambas class file
>
> Export
> Inherits Button
>
> Public Const _Properties As String = "*,Delay=200"
> Public Const _Similar As String = "Button"
>
> '' Get or set Time between flash on/off in ms , default 500
> Property Delay As Integer
> Private $Delay As Integer
> '' Get or set default Time between flash on/off in ms , default 500
> Static Public Default_Delay As Integer = 500
>
> ----------------------------
>
> It works a treat in operation but the button in the IDE looks nothing like
> the other buttons.
> It looks fine at runtime but any idea how to get it to look right in the
> IDE?
> (see attached snapshot, the button called FlashButton)
>
_Similar is not related to appearance. I think you need the _DrawWith
constant. See http://gambaswiki.org/wiki/dev/gambas
Best,
Tobias
--
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
More information about the User
mailing list