Page 1 of 1

[Module] ContainerEx - Module (all OS)

Posted: Sat Nov 16, 2019 12:19 pm
by Thorsten1867
Extended Container Gadget - Module (all OS / DPI / 64Bit)
  • change background color
  • automatic gadget size adjustment
  • add title possible (similar to FrameGadget)
  • change text align, color and font possible
  • automatic adjustment of the border to the text size
Image _ _ _ Image

Code: Select all

; ContainerEx::Close()              - similar to 'CloseGadgetList()'
; ContainerEx::DisableReDraw()      - disable redraw
; ContainerEx::Gadget()             - similar to 'ContainerGadget()'
; ContainerEx::SetAutoResizeFlags() - [#MoveX|#MoveY|#Width|#Height]
; ContainerEx::SetColor()           - similar to 'SetGadgetColor()'
; ContainerEx::SetFont()            - similar to 'SetGadgetFont()'
; ContainerEx::SetText()            - similar to 'SetGadgetText()'
Download: ContainerExModule.pbi

Re: [Module] ContainerEx - Module (all OS)

Posted: Sun Nov 17, 2019 4:29 pm
by Cyllceaux
Line 337: If IsWindow(ListEx()\Window\Num)

ListEx() not found

Re: [Module] ContainerEx - Module (all OS)

Posted: Sun Nov 17, 2019 5:46 pm
by Thorsten1867
Fixed

Re: [Module] ContainerEx - Module (all OS)

Posted: Tue Nov 19, 2019 9:27 am
by Cyllceaux
Thorsten1867 wrote:Fixed
still there :(

If you use Themes and SetText, the top border is not drawn correctly.


Btw... hide would be usefull ;)

Re: [Module] ContainerEx - Module (all OS)

Posted: Tue Nov 19, 2019 1:15 pm
by Thorsten1867
There were actually still some hidden behind a CompilerIf.

Re: [Module] ContainerEx - Module (all OS)

Posted: Tue Nov 19, 2019 2:12 pm
by Cyllceaux
I mean a hide function.

the canvas is always drawn. If I make "HideGadget()" it's still drawn

Re: [Module] ContainerEx - Module (all OS)

Posted: Tue Nov 19, 2019 4:53 pm
by Thorsten1867
Update: Added ContainerEx::Hide()

Re: [Module] ContainerEx - Module (all OS)

Posted: Wed Nov 20, 2019 10:15 am
by Cyllceaux
In the dark theme and resize, its flickering really hard between white and blue.

I commented line 389 and I noticed, the gadget changed to white.

Re: [Module] ContainerEx - Module (all OS)

Posted: Wed Nov 20, 2019 3:26 pm
by Thorsten1867
Then it must be the original background color of the CanvasGadget. Obviously it will be deleted automatically when resizing.

Re: [Module] ContainerEx - Module (all OS)

Posted: Thu Nov 21, 2019 11:42 am
by Cyllceaux
Found a flickering Solution...

I added additionally on line 518: BindGadgetEvent(ContainerEx()\CanvasNum, @_ResizeHandler(), #PB_EventType_Resize)

now, everything is smooth


on line 283, I changed to: RoundBox(X, Y, Width, Height,8,8, ContainerEx()\Color\Border)
This looks cool... maybe it is a good theme option?

Re: [Module] ContainerEx - Module (all OS)

Posted: Thu Nov 21, 2019 3:00 pm
by Thorsten1867
Update:
  • Added: Attribute '#Corner'
  • Fixed resizing