StringGadget has a flag #PB_String_BorderLess!
What about ListIconGadget and EditorGadget and other?
#PB_Gadget_BorderLess
Re: #PB_Gadget_BorderLess
Easy to do on windows, with one API call. Don't know about other OSes though...
Good morning, that's a nice tnetennba!
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Re: #PB_Gadget_BorderLess
with pb only, a dirty trick is use a container to remove the border

Code: Select all
ContainerGadget(0,0,0,100,30,#PB_Container_BorderLess)
EditorGadget(1,-2,-2,104,34)
If translation=Error: reply="Sorry, Im Spanish": Endif
Re: #PB_Gadget_BorderLess
Well, he should have mentioned that we already discussed this in another post.
Re: Frames gadget
Re: Frames 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: #PB_Gadget_BorderLess
Maybe in the future version, will you support #PB_Gadget_Borderless? Otherwise, ContainerGadget is not convenient to use!?
Re: #PB_Gadget_BorderLess
There must be reasons why Fred hasn't implemented it in the first place. However, I don't know what they are.
Workarounds are always a bit cumbersome, but usually good enough to tide you over.
Workarounds are always a bit cumbersome, but usually good enough to tide you over.
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: #PB_Gadget_BorderLess
For at least some gadgets like buttons, you can try something like the following where X is the ID of the gadget you want to remove the border from:
Code: Select all
CocoaMessage(0, GadgetID(X), "setBordered:", #NO)