You may use this workaround to obtain a transparent grow box:Polo wrote:Only on PB apps the grow box background color is white, and it doesn't look really good.
Code: Select all
EnableExplicit
ImportC ""
HIViewGetFirstSubview(ViewRef.L)
HIViewGetKind(ViewRef.L, *HIViewKind)
HIViewGetNextView(ViewRef.L)
HIViewGetRoot(WindowRef.L)
HIGrowBoxViewSetTransparent(GrowBoxRef.L, Transparent.L)
EndImport
Structure HIViewKind
Signature.L
Kind.L
EndStructure
Procedure SetGrowBoxTransparent(WindowID.L)
Protected RootView.L
Protected SubView.L
Protected ViewKind.HIViewKind
RootView = HIViewGetRoot(WindowID(WindowID))
If RootView
SubView = HIViewGetFirstSubview(RootView)
While SubView <> 0
If HIViewGetKind(SubView, @ViewKind) = 0
If ViewKind\Kind = 'grow'
HIGrowBoxViewSetTransparent(SubView, #True)
Break
EndIf
EndIf
SubView = HIViewGetNextView(SubView)
Wend
EndIf
EndProcedure
OpenWindow(0, 270, 100, 250, 120, "Transparent grow box", #PB_Window_SystemMenu | #PB_Window_SizeGadget)
SetGrowBoxTransparent(0)
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow