Code: Select all
view = GadgetID(#GadgetID)
CocoaMessage(0, view, "setNeedsLayout:", #YES)
CocoaMessage(0, view, "layoutIfNeeded")
CocoaMessage(0, view, "setNeedsDisplay:", #YES)
Code: Select all
view = GadgetID(#GadgetID)
CocoaMessage(0, view, "setNeedsLayout:", #YES)
CocoaMessage(0, view, "layoutIfNeeded")
CocoaMessage(0, view, "setNeedsDisplay:", #YES)
Code: Select all
If Not IsGadget(#Gadget_Base_Category + index)
ButtonGadget(#Gadget_Base_Category + index, 564 - categoryWidth, yPos + 27, categoryWidth, 20, category)
CocoaMessage(0, GadgetID(#Gadget_Base_Category + index), "setBezelStyle:", 13)
SetGadgetFont(#Gadget_Base_Category + index, LoadFont(#GadgetFont, #DisplayFont$, 10))
Else
SetGadgetText(#Gadget_Base_Category + index, category)
ResizeGadget(#Gadget_Base_Category + index, 564 - categoryWidth, yPos + 27, categoryWidth, 20)
EndIf
HideGadget(#Gadget_Base_Category + index, #True)
HideGadget(#Gadget_Base_Category + index, #False)
; force icon
view = GadgetID(#Gadget_Base_Category + index)
CocoaMessage(0, view, "setNeedsLayout:", #YES)
CocoaMessage(0, view, "layoutIfNeeded")
CocoaMessage(0, view, "setNeedsDisplay:", #YES)
If Not IsGadget(#Gadget_Base_Edit + index)
ButtonGadget(#Gadget_Base_Edit + index, 576, yPos + 6, 50, 40, "Edit")
EndIf
HideGadget(#Gadget_Base_Edit + index, #False)