1. Background Colour for re-enabled controls

Hi,

I am using Win32Lib v0.70.7. I had put this query sometime back to Derek.

On re-enabling controls like EditText, RichEdit, and Combo, they do not regain normal background colour.

The colour of 'disabled control' (gray in case of EditText and Combo, where as background colour of parent control in case of RichEdit) is retained though they can be accessed.

Has this issue been addressed in the latest version of Win32Lib?

Thanks & Regards, Rad.

new topic     » topic index » view message » categorize

2. Re: Background Colour for re-enabled controls

Rad said...

Has this issue been addressed in the latest version of Win32Lib?

I thought I'd fixed that one. You can pick up the bleeding edge (latest) source version of win32lib from Sourceforge

new topic     » goto parent     » topic index » view message » categorize

3. Re: Background Colour for re-enabled controls

Hi Derek,

I downloaded latest includes.tar.gz for Win32Lib. (0.70.17 - July 21, 2009)

Following are the observations:

1] EditText - works fine.

2] RichEdit - still retains the disabled background colour after being enabled.

3] Combo - If I use CBS_DROPDOWNLIST in "Control Styles - Flags" of Judith's IDE, then Combo retains the disabled background colour, otherwise works fine.


Following are the other observations as compared to version 0.70.7 which was previous version I was using:

1] RETURN/ENTER key does not work for moving from control to control.

2] ColoredButtons have to be clicked twice to get the desired result. Normal Buttons work fine.

Same program/code works fine for both the above issues by reverting to version 0.70.7.

Thanks & Regards, Rad.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Background Colour for re-enabled controls

Rad said...

Hi Derek,

I downloaded latest includes.tar.gz for Win32Lib. (0.70.17 - July 21, 2009)

Following are the observations:

1] EditText - works fine.

2] RichEdit - still retains the disabled background colour after being enabled.

3] Combo - If I use CBS_DROPDOWNLIST in "Control Styles - Flags" of Judith's IDE, then Combo retains the disabled background colour, otherwise works fine.

I've fixed the background color issue. You can get the code for revision 67 from SourceForge. Make sure you get all three files that were updated.

Rad said...

Following are the other observations as compared to version 0.70.7 which was previous version I was using:

1] RETURN/ENTER key does not work for moving from control to control.

I'm not sure what you are referring to. I thought that the RETURN key was not supposed to be used for moving between fields; the TAB key is used for that. Is this something that is expected for EditText controls only? Can you detail exactly what you are expecting the library to do - eg. which control types and under what circumstances.

Rad said...

2] ColoredButtons have to be clicked twice to get the desired result. Normal Buttons work fine.

I know nothing about these ColoredButtons. They are not a part of win32lib. What include file is needed to use them and where can I get a copy of that from?

new topic     » goto parent     » topic index » view message » categorize

5. Re: Background Colour for re-enabled controls

Hi Derek,

After using revision 67 of win32lib (3 files), background colour issue is solved. Thanks for the same.

About win32lib.ew 0.70.17/rev. 67:

In global procedure deleteLine()

"then" is missing at the end of line 18206 in win32lib.ew which results in an error.

18202    if atom(line) then 
18203        lFirstLine = line 
18204        lLastLine = line 
18205 
18206    elsif length(line) = 2 ---- 
18207    	lFirstLine = line[1] 
18208    	lLastLine = line[2] 
18209 
18210    else 
18211    	return 
18212    end if 

Other issues:

1] RETURN/ENTER key does not work for moving from control to control.

Sorry for the confusion, yes you are right, what I meant was "from EditText to EditText" control.

But after a second thought, as you have mentioned, TAB would be more appropriate key for moving from control to control. I mentioned the RETURN/ENTER key as it was working in version 0.70.7. A non-issue really.

2] ColoredButtons have to be clicked twice to get the desired result. Normal Buttons work fine.

ColoredButtons.ew is utility by Judith Evans, which is provided along with the IDE. It is also available as a separate code (demo included). It allows the user to put borders, graphics, colors & text on buttons and position graphics+text in desired way.

Now with the latest win32lib, one has to click twice on the button, which is specified as colored button, to get the _w32onClick result.

Is anybobdy maintaining Judith's IDE/ColoredButtons code? Maybe I should put this Q under a separate topic.

Thanks & Regards, Rad.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu