Re: [perl-win32-gui] Disabling RichEdit control
Hey guys, I found a "fix" to my problem.Here it is: $EM_SETBKGNDCOLOR = 1091; # enable RichEdit control and set background color to white $M-rchText-SendMessage( $EM_SETBKGNDCOLOR, 0, 0xFF ); $M-rchText-InvalidateRect(1); $M-rchText-Enable(); # disable RichEdit control and set background color to gray $M-rchText-SendMessage( $EM_SETBKGNDCOLOR, 0, 0xC0C0C0 ); $M-rchText-InvalidateRect(1); $M-rchText-Disable(); Felice
Re: [perl-win32-gui] Disabling RichEdit control
Hey guys, Here's my script that's having trouble. Actually, I created a script to show you the differences. You will notice that when I disable the textfield, the background color turns grey.However, when I disable the RichEdit no background color changes. BTW ... the control does get disabled ... my bad. However, I still ask why when disabling the textfield the background color changes and when disabling the RichEdit the background color does not change. Felice (See attached file: exgui.pl) Aldo Calpini [EMAIL PROTECTED] on 11/08/2000 12:00:21 PM Please respond to [EMAIL PROTECTED] To: "[EMAIL PROTECTED]" [EMAIL PROTECTED] cc:(bcc: Felice Vittoria/Aut/Schneider) Subject: Re: [perl-win32-gui] Disabling RichEdit control [EMAIL PROTECTED] wrote: Hello all, I have a RichEdit control designed on my form. When I try to do something like $M-txtText-Disable(), this will not disable the RichEdit control. Please note ... $M =DialogBox, txtText = RichEdit ControlName. However, if I convert txtText from RichEdit control to Textfield control, the Disable method works properly. Any ideas on why it's not working for RichEdit? seems to work for me. no idea, sorry... perhaps you can post something more from your code. cheers, Aldo __END__ $_=q,just perl,,s, , another ,,s,$, hacker,,print; exgui.pl
Re: [perl-win32-gui] Disabling RichEdit control
[EMAIL PROTECTED] wrote: However, I still ask why when disabling the textfield the background color changes and when disabling the RichEdit the background color does not change. it does for me, I see them both grey when disabled. I think it's just that your system (in particular, your version of RICHED32.DLL) decided this way... who knows ;-) BTW, I'm on a Win2k Advanced Server. on which system are you running? cheers, Aldo __END__ $_=q,just perl,,s, , another ,,s,$, hacker,,print;
Re: [perl-win32-gui] Disabling RichEdit control
Oops ... The control is disabled, just not greyed out (I can't type more data in there.) Cheers PB *** Important. This E-mail is intended for the above named person and may be confidential and/or legally privileged. If this has come to you in error you must take no action based on it, nor must you copy or show it to anyone; please inform the sender immediately. ***
Re: [perl-win32-gui] Disabling RichEdit control
Aldo ( and everyone ) , I'm running Windows NT 4.0 SP5 ActiveState Perl 5.6 build 620 Win32-GUI version 0.0.490 And here are my RichEdit DLL versions ( found in c:\winnt\system ): 11/10/99 03:01a 431,376 riched20.dll 05/07/98 06:36p 174,352 riched32.dll Felice Aldo Calpini [EMAIL PROTECTED] on 11/09/2000 07:15:18 AM Please respond to [EMAIL PROTECTED] To: "[EMAIL PROTECTED]" [EMAIL PROTECTED] cc:(bcc: Felice Vittoria/Aut/Schneider) Subject: Re: [perl-win32-gui] Disabling RichEdit control [EMAIL PROTECTED] wrote: However, I still ask why when disabling the textfield the background color changes and when disabling the RichEdit the background color does not change. it does for me, I see them both grey when disabled. I think it's just that your system (in particular, your version of RICHED32.DLL) decided this way... who knows ;-) BTW, I'm on a Win2k Advanced Server. on which system are you running? cheers, Aldo __END__ $_=q,just perl,,s, , another ,,s,$, hacker,,print;