Listviewgadget active frame

Mac OSX specific forum
User avatar
rndrei
Enthusiast
Enthusiast
Posts: 173
Joined: Thu Dec 28, 2023 9:04 pm

Listviewgadget active frame

Post by rndrei »

How to remove the active frame of the gadget highlighting in blue Listviewgadget?
mrbungle
Enthusiast
Enthusiast
Posts: 157
Joined: Wed Dec 30, 2020 3:18 am

Re: Listviewgadget active frame

Post 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

User avatar
rndrei
Enthusiast
Enthusiast
Posts: 173
Joined: Thu Dec 28, 2023 9:04 pm

Re: Listviewgadget active frame

Post by rndrei »

Yes, everything works. Thank you!
User avatar
Piero
Addict
Addict
Posts: 996
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

Re: Listviewgadget active frame

Post 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:
User avatar
rndrei
Enthusiast
Enthusiast
Posts: 173
Joined: Thu Dec 28, 2023 9:04 pm

Re: Listviewgadget active frame

Post by rndrei »

:D, good interface, also a very important thing!
Post Reply