Discussion of article "DoEasy. Controls (Part 9): Re-arranging WinForms object methods, RadioButton and Button controls"

 

New article DoEasy. Controls (Part 9): Re-arranging WinForms object methods, RadioButton and Button controls has been published:

In this article, I will fix the names of WinForms object class methods and create Button and RadioButton WinForms objects.

Compile the EA and launch it on the chart:


It can be seen that the button correctly adjusts its size to the text depending on the auto resize mode. CheckBox and RadioButton have normal light checkbox fields, while CheckBox itself now has some thickness.

I scrolled the mouse wheel while hovering the mouse over some controls. The following entries were displayed in the journal:

CGraphElementsCollection::OnChartEvent: Mouse scroll: Control element "Button" TstDE109_WFPanel_Elm02_Elm02
CGraphElementsCollection::OnChartEvent: Mouse scroll: Control element "Button" TstDE109_WFPanel_Elm02_Elm02
CGraphElementsCollection::OnChartEvent: Mouse scroll: Control element "Button" TstDE109_WFPanel_Elm02_Elm02
CGraphElementsCollection::OnChartEvent: Mouse scroll: Control element "Button" TstDE109_WFPanel_Elm02_Elm02
CGraphElementsCollection::OnChartEvent: Mouse scroll: Control element "Label" TstDE109_WFPanel_Elm01_Elm00
CGraphElementsCollection::OnChartEvent: Mouse scroll: Control element "Label" TstDE109_WFPanel_Elm01_Elm00
CGraphElementsCollection::OnChartEvent: Mouse scroll: Control element "Label" TstDE109_WFPanel_Elm00_Elm00

...

CGraphElementsCollection::OnChartEvent: Mouse scroll: Control element "CheckBox" TstDE109_WFPanel_Elm02_Elm00
CGraphElementsCollection::OnChartEvent: Mouse scroll: Control element "CheckBox" TstDE109_WFPanel_Elm02_Elm00
CGraphElementsCollection::OnChartEvent: Mouse scroll: Control element "RadioButton" TstDE109_WFPanel_Elm02_Elm01
CGraphElementsCollection::OnChartEvent: Mouse scroll: Control element "RadioButton" TstDE109_WFPanel_Elm02_Elm01
CGraphElementsCollection::OnChartEvent: Mouse scroll: Control element "GroupBox" TstDE109_WFPanel_Elm02

These entries indicate the correct choice of the active object for interacting with the mouse.

Author: Artyom Trishkin

Reason: