Page 1 of 1
#PB_Gadget_BorderLess
Posted: Mon Sep 15, 2025 4:31 pm
by rndrei
StringGadget has a flag #PB_String_BorderLess!
What about ListIconGadget and EditorGadget and other?
Re: #PB_Gadget_BorderLess
Posted: Mon Sep 15, 2025 8:25 pm
by jacdelad
Easy to do on windows, with one API call. Don't know about other OSes though...
Re: #PB_Gadget_BorderLess
Posted: Mon Sep 15, 2025 9:52 pm
by minimy
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)
Re: #PB_Gadget_BorderLess
Posted: Tue Sep 16, 2025 2:41 pm
by Axolotl
Well, he should have mentioned that we already discussed this in another post.
Re: Frames gadget
Re: #PB_Gadget_BorderLess
Posted: Tue Sep 16, 2025 3:06 pm
by rndrei
Maybe in the future version, will you support #PB_Gadget_Borderless? Otherwise, ContainerGadget is not convenient to use!?
Re: #PB_Gadget_BorderLess
Posted: Tue Sep 16, 2025 4:24 pm
by Axolotl
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.
Re: #PB_Gadget_BorderLess
Posted: Thu Sep 18, 2025 12:44 pm
by mrbungle
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)