Skip to content
Snippets Groups Projects
Commit 8976834a authored by Allan Blanchard's avatar Allan Blanchard
Browse files

[gui] Allows to set checkbox label

parent 70ecd23c
No related branches found
No related tags found
No related merge requests found
...@@ -211,6 +211,7 @@ class checkbox ~label ?tooltip () = ...@@ -211,6 +211,7 @@ class checkbox ~label ?tooltip () =
inherit [bool] selector false as s inherit [bool] selector false as s
inherit! gobj_action button as b inherit! gobj_action button as b
method! set_enabled e = s#set_enabled e ; b#set_enabled e method! set_enabled e = s#set_enabled e ; b#set_enabled e
method set_label l = button#set_label l
method! set a = s#set a ; button#set_active a method! set a = s#set a ; button#set_active a
initializer initializer
begin begin
......
...@@ -130,6 +130,7 @@ class checkbox : label:string -> ?tooltip:string -> unit -> ...@@ -130,6 +130,7 @@ class checkbox : label:string -> ?tooltip:string -> unit ->
object object
inherit action inherit action
inherit [bool] selector inherit [bool] selector
method set_label : string -> unit
end end
class switch : ?tooltip:string -> unit -> class switch : ?tooltip:string -> unit ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment