@@ -9,7 +9,7 @@ class form1 : public form {
99 auto dialog = color_dialog {};
1010 dialog.color (selected_color);
1111 dialog.custom_colors (custom_colors);
12- if (dialog.show_dialog (* this ) == forms::dialog_result::ok) {
12+ if (dialog.show_dialog (self_ ) == forms::dialog_result::ok) {
1313 selected_color = dialog.color ();
1414 color_label.text (color_translator::to_html (selected_color));
1515 test_zone.invalidate ();
@@ -30,9 +30,9 @@ class form1 : public form {
3030private:
3131 color selected_color = system_colors::control();
3232 color_dialog::colors custom_colors = {color::red, color::green, color::blue, color::yellow, system_colors::control ()};
33- button button1 = button::create(* this , " Color..." , {10 , 10 });
34- panel test_zone = panel::create(* this , {10 , 50 });
35- label color_label = label::create(* this , color_translator::to_html(selected_color), {10 , 160 });
33+ button button1 = button::create(self_ , " Color..." , {10 , 10 });
34+ panel test_zone = panel::create(self_ , {10 , 50 });
35+ label color_label = label::create(self_ , color_translator::to_html(selected_color), {10 , 160 });
3636};
3737
3838auto main () -> int {
0 commit comments