Frames gadget
Frames gadget
How do I disable frames on gadgets, such as ListIconGadget, EditorGadget?
Re: Frames gadget
In which OS ?
Re: Frames gadget
I think the poster means the focus ring.
Re: Frames gadget
StringGadget has a flag #PB_String_BorderLess!
What about ListIconGadget and EditorGadget?
What about ListIconGadget and EditorGadget?
Re: Frames gadget
Well, I thought that the frame is the reason for this gadget.
I used to always take a ContainerGadget and a TextGadget. Now with the 'new' flag #PB_Frame_Container I changed it.
So my answer would be:
I used to always take a ContainerGadget and a TextGadget. Now with the 'new' flag #PB_Frame_Container I changed it.
So my answer would be:
Code: Select all
ContainerGadget(Gadget, X, Y, W, H, #PB_Container_BorderLess)
CloseGadgetList()
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
Re: Frames gadget
Here is what I do with EditorGadget. Should work with ListIconGadget as well. And should be OS-independend.
I know, there is also this theme thing on windows... IMHO that works only if you avoid the scrollbars...
Code: Select all
ContainerGadget(Gadget, X, Y, W, H, #PB_Container_BorderLess)
EditorGadget(Gadget2, X-1, Y-1, W+2, H+2)
CloseGadgetList()
Code: Select all
; SetWindowTheme_(GadgetID(Gadget), @"", @"")
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
Re: Frames gadget
Figured it out! If it's useful to someone

Code: Select all
CocoaMessage(0, CocoaMessage(0, GadgetID(gadget), "enclosingScrollView"), "setDrawsBackground:", #NO)