Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2047 from runrevben/bugfix-checkbox-lcb-error
Browse files Browse the repository at this point in the history
[[ Fix ]] No longer throws errors but this widget needs rewritten
  • Loading branch information
livecodeali committed Mar 12, 2015
2 parents 3b98fdd + eeae765 commit 7afd463
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions extensions/widgets/checkbox/checkbox.lcb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public handler OnLoad(in pProperties as Array)
end handler

public handler OnCreate()
put "windows-" into mTheme
put "windows-8" into mTheme
put "Check Box" into mLabel
put false into mIsChecked
put "" into mState
Expand Down Expand Up @@ -234,6 +234,8 @@ private handler getPaint(in pObject as String) as Paint
end if

end if

return solid paint with color [0, 0, 0]
end handler

private handler getFont(in pObject as String) as Font
Expand All @@ -248,8 +250,9 @@ private handler getFont(in pObject as String) as Font
else if mTheme is "windows-8" then
return font "Segoe WP" at size kFontSize
end if

end if

return font (the name of the font of this canvas)
end handler

public handler setTheme(in pTheme as String) as undefined
Expand Down

0 comments on commit 7afd463

Please sign in to comment.