Big Sur bugs

Marty Knapp martyknappster at gmail.com
Sun Nov 15 12:50:03 EST 2020


Here’s a work-around for the tabbed button issue (the text of the hilited tab is white on a white background, thus unreadable)

on preOpenCard
   if the platform is "MacOS" and BigSur() is true then
      repeat with x=1 to the number of btns of this stack
         if the menuMode of btn x of this stack is "tabbed" then
            set the backgroundColor of btn x of this stack to black
         end if
      end repeat
      
   else
      repeat with x=1 to the number of btns of this stack
         if the menuMode of btn x of this stack is "tabbed" then
            set the backgroundColor of btn x of this stack to empty
         end if
      end repeat
   end if
   pass preOpenCard
end preOpenCard

function BigSur
   --LC 9.6.1 reports "Big Sur" as version as 10.16, though Apple is calling it 11 - this covers both
   set the itemDelimiter to "."
   put the systemVersion into tVersion
   if item 1 of tVersion>10 or item 2 of tVersion>15 then
      return true
   else return false
end BigSur

Just put this in your main stack and Bob’s your uncle. Speaking of Bob, he has a customer control that circumvents the issue too. I’ll let him chime in to let you know where you can find that,

—Marty




More information about the use-livecode mailing list