Listviewgadget active frame
Posted: Thu Oct 02, 2025 11:26 am
How to remove the active frame of the gadget highlighting in blue Listviewgadget?
http://www.purebasic.com
https://www.purebasic.fr/english/
Code: Select all
If OpenWindow(0, 100, 100, 400, 300, "Disable Focus Ring", #PB_Window_SystemMenu)
listID = ListIconGadget(#PB_Any, 10, 10, 300, 200, "Column", 150)
For i = 0 To 10
AddGadgetItem(listID, -1, "Row " + Str(i))
Next
; Disable the halo around the table (focus ring)
CocoaMessage(0, GadgetID(listID), "setFocusRingType:", 1) ; 1 = NSFocusRingTypeNone
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
How comes ur lately interested only in "UI cosmetics"?