1. IDE problem with LabelEdit and Upper Case

Hi,

If I create a LabelEdit input box with Judiths IDE v1.0.4 and then tick the Upper Case Control Style the IDE incorrectly sets the ES_UPPERCASE option on the associated LText control, this has the affect of causing the label to not be displayed.

Here's some example code:-

code generated by Win32Lib IDE v1.0.4 Build July-06-2008

constant TheProgramType="exw"

include Win32lib.ew without warning


Window Window1 constant Window1 = createEx( Window, "Window1", 0, Default, Default, 400, 300, 0, 0 ) constant LText4 = createEx( LText, "Name:", Window1, 52, 68, 40, 20, 0, 0 ) constant EditText2 = createEx( EditText, "EditText locked to uppercase", Window1, 92, 68, 248, 20, w32or_all({ES_UPPERCASE}), 0 ) constant LabelEdit3 = createEx( EditText, "LabelEdit locked to uppercase", Window1, 92, 108, 248, 20, w32or_all({ES_UPPERCASE}), 0 ) constant LabelEdit5 = createEx( EditText, "LabelEdit not locked to uppercase", Window1, 92, 148, 248, 20, 0, 0 ) constant LTextLabelEdit3 = createEx( LText, "Name: ", Window1, 60, 112, 40, 20, w32or_all({ES_UPPERCASE}), 0 ) constant LTextLabelEdit5 = createEx( LText, "Name: ", Window1, 60, 152, 40, 20, 0, 0 )


WinMain( Window1,Normal )

If you run this you'll see that the middle LabelEdit does not correctly display it's label. If you replace the "w32or_all({ES_UPPERCASE})" with 0 in the createEx command for LTextLabelEdit3 then it works as expected.

I think this is a bug with the code generator in the IDE. I had a quick look to see if I could fix it, but I bottled out.

Cheers, Mark

new topic     » topic index » view message » categorize

2. Re: IDE problem with LabelEdit and Upper Case

Sorry I'm out of practise posting to the forum and I forgot to preview before posting. I've reposted the code from above in a eucode block....

--  code generated by Win32Lib IDE v1.0.4 Build July-06-2008 
 
constant TheProgramType="exw"  
  
include Win32Lib.ew 
without warning 
 
-------------------------------------------------------------------------------- 
--  Window Window1 
constant Window1 = createEx( Window, "Window1", 0, Default, Default, 400, 300, 0, 0 ) 
constant LText4 = createEx( LText, "Name:", Window1, 52, 68, 40, 20, 0, 0 ) 
constant EditText2 = createEx( EditText, "EditText locked to uppercase", Window1, 92, 68, 248, 20, w32or_all({ES_UPPERCASE}), 0 ) 
constant LabelEdit3 = createEx( EditText, "LabelEdit locked to uppercase", Window1, 92, 108, 248, 20, w32or_all({ES_UPPERCASE}), 0 ) 
constant LabelEdit5 = createEx( EditText, "LabelEdit not locked to uppercase", Window1, 92, 148, 248, 20, 0, 0 ) 
constant LTextLabelEdit3 = createEx( LText, "Name: ", Window1, 60, 112, 40, 20, w32or_all({ES_UPPERCASE}), 0 ) 
constant LTextLabelEdit5 = createEx( LText, "Name: ", Window1, 60, 152, 40, 20, 0, 0 ) 
--------------------------------------------------------- 
--------------------------------------------------------- 
 
 
WinMain( Window1,Normal ) 
new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu