Page 1 of 1

[Modules] TileButton Gadget (all OS / DPI)

Posted: Sun May 29, 2022 5:37 pm
by Thorsten1867
Tile Button Gadget - Module (all OS / DPI / 64Bit)
  • Additional row with description
  • Support for an image
  • Color themes
  • alternatively with arrow and/or switch
  • Toggle button bar
Image Image Image

Code: Select all

; Tiles::AddImage()           - adds an image to the button
; Tiles::CombineToggle()      - combine a group of toggle buttons
; Tiles::Disable()            - similar to 'DisableGadget()'
; Tiles::Free()               - similar to 'FreeGadget()'
; Tiles::Gadget()             - similar to 'ButtonGadget()'
; Tiles::GetData()            - similar to 'GetGadgetData()'
; Tiles::GetID()              - similar to 'GetGadgetData()', but string
; Tiles::GetState()           - similar to 'GetGadgetState()'
; Tiles::GetText()            - similar to 'GetGadgetText()'
; Tiles::SaveColorTheme()     - saves a custom color theme
; Tiles::SetAutoResizeFlags() - [#MoveX|#MoveY|#Width|#Height]
; Tiles::SetAttribute()       - similar to 'SetGadgetAttribute()'
; Tiles::SetColor()           - similar to 'SetGadgetColor()'
; Tiles::SetColorTheme()      - sets a colour theme
; Tiles::SetData()            - similar to 'SetGadgetData()'
; Tiles::SetFont()            - similar to 'SetGadgetFont()'
; Tiles::SetID()              - similar to 'SetGadgetData()', but string
; Tiles::SetState()           - similar to 'SetGadgetState()'
; Tiles::SetText()            - similar to 'SetGadgetText()'
; Tiles::Hide()               - similar to 'HideGadget()'
Download TileButtonModule.pbi

Re: [Modules] TileButton Gadget (all OS / DPI)

Posted: Sun May 29, 2022 7:07 pm
by Caronte3D
Very nice!
Thanks for sharing it! :wink:

Re: [Modules] TileButton Gadget (all OS / DPI)

Posted: Sun May 29, 2022 7:53 pm
by punak
Excellent and modern. :D I will definitely test it.
Thanks for your efforts.

Re: [Modules] TileButton Gadget (all OS / DPI)

Posted: Sun May 29, 2022 10:05 pm
by BarryG
Screenshots?

Re: [Modules] TileButton Gadget (all OS / DPI)

Posted: Mon May 30, 2022 9:17 am
by Cyllceaux
BarryG wrote: Sun May 29, 2022 10:05 pmScreenshots?
Are in the first post. :)

Re: [Modules] TileButton Gadget (all OS / DPI)

Posted: Fri Jun 17, 2022 1:09 pm
by tatanas
Hi,
I'm playing with this module and I notice a change in the behaviour with disabled gadget display compared to your other modules.
I've got a black background inside the button (I'm don't use ModuleEx). I am using this tile button as a ButtonImage (32x32) without text.

Is it normal ?

Re: [Modules] TileButton Gadget (all OS / DPI)

Posted: Sat Jun 18, 2022 2:28 pm
by Thorsten1867
Bugfix: Disable()

Re: [Modules] TileButton Gadget (all OS / DPI)

Posted: Mon Jun 20, 2022 8:44 am
by tatanas
Thanks !

Do you think you could add a disabled effect on the image too ?

Another thing :
It seems the text is not centered correctly when "text only" is used. I think the problem comes from the "X = GetTextOffset(TileBt()\Title\Width)" in "Draw_" procedure.
The offset value seems insufficient.