[Gambas-user] Inherit Button, looks bad in the IDE?

Bruce Steers bsteers4 at gmail.com
Wed Feb 17 14:22:49 CET 2021


Hi.
I've been playing around making custom controls using Inherit
I've made a Button that Flashes bg random color (to grab attention)

the class file starts like this...
--------------------------
' 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)

thanks for any info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210217/b0600ef3/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Snap.png
Type: image/png
Size: 12498 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210217/b0600ef3/attachment.png>


More information about the User mailing list