Page 1 of 1

Listviewgadget active frame

Posted: Thu Oct 02, 2025 11:26 am
by rndrei
How to remove the active frame of the gadget highlighting in blue Listviewgadget?

Re: Listviewgadget active frame

Posted: Thu Oct 02, 2025 8:31 pm
by mrbungle

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


Re: Listviewgadget active frame

Posted: Fri Oct 03, 2025 8:10 am
by rndrei
Yes, everything works. Thank you!

Re: Listviewgadget active frame

Posted: Fri Oct 03, 2025 1:06 pm
by Piero
rndrei wrote: Fri Oct 03, 2025 8:10 am everything works
How comes ur lately interested only in "UI cosmetics"?
Seems a good sign: did u solve all the "technical" stuff?

My guess: ur trying to impress some cute Russian girl :wink: :mrgreen:

Re: Listviewgadget active frame

Posted: Fri Oct 03, 2025 4:34 pm
by rndrei
:D, good interface, also a very important thing!