in reply to Re: Change readonly status of Win32::GUI::RichEdit
in thread Change readonly status of Win32::GUI::RichEdit
Just for clarification:
$mainform->tab->Page4->AddRichEdit(-name=>'articletext',-style=>WS_VISIBLE|WS_VSCROLL,-multiline=>1,-text=>"",-width=>745,-height=>450,-left=>10,-top=>35,-readonly=>1);
Is used to create the object/control/widget
The -name=>'articletext' option gives the object its name.
The following is used to modify the object (or at least that is what i had hoped it would do).
$mainform->tab->Page4->articletext(-readonly=>0);
Here is a breakdown of the objects:
$mainform = The main window object
$mainform->tab = tab object within $mainform
$mainform-tab->Page4 = a page object within $mainform->tab
$mainform->tab->Page4->articletext = The RichEdit control (widget) within $mainform-tab->Page4
I have tried using the Refresh method to inform the system of the change, however that didn't work either.