Re: EditText Bug?

new topic     » goto parent     » topic index » view thread      » older message » newer message
AndyDrummond said...

Fine. I did that change - more or less - so all is well. You know I hate posting problems, it always sounds to me like criticism, but you guys all do a fantastic job to keep us simple guys coding. And what easier way to write code than in Euphoria with these libraries and Judith's IDE?

Andy

Hi All,

I downloaded win32lib_r50.zip and used the required values of following constants/variables in win32lib v0.70.5 -

In win32constants.ew

    -- RichEdit mask flags 
    ENM_CHANGE = 1, 
 
    EM_GETEVENTMASK = #043B, 

Also in win32lib.ew (required for EuIDE to work properly)

--/topic Constants 
--/const Win32LibVersionEx 
--/desc Contains the current version of win32lib library. 
-- This is a sequence containing five elements. /n 
--/li Major version number (integer) 
--/li Minor version number (integer) 
--/li Patch or /i Revision number (integer) 
--/li Revision for patch (character) 
--/li Date of the version in DD-Mmm-YYYY format (string) 
-- 
-- The indexes of these parts are known as Win32libVersionExMajor, Win32libVersionExMinor, 
-- Win32libVersionExPatch, Win32libVersionExRevision and Win32libVersionExDate, respectively. 
-- 
-- If there is no revision letter, the latter is a space 
-- 
--Example 
--/code 
--       setText(SB, sprintf("Win32Lib version %d.%d Patch#%d%s, %s", 
--                            Win32LibVersion)) 
-- or, if you don't want the extra space when there is no revision letter: 
--       setText(SB, sprintf("Win32Lib version %d.%d Patch#%d" 
--                             & w32iff(Win32LibVersionEx[Win32libVersionExRevision]=' ',"","%s") -- letter or nothing 
--                             & ", %s",                                  -- the date 
--                            Win32LibVersionEx)) 
--/endcode 
global constant 
    Win32LibVersionEx = {0,70,5,0, "13-Feb-2009"}   -- {Major, Minor, Patch, Revision, Date} 
global constant 
    Win32libVersionExMajor = Win32libVersionMajor, 
    Win32libVersionExMinor = Win32libVersionMinor, 
    Win32libVersionExPatch = Win32libVersionPatch, 
    Win32libVersionExRevision = 4, 
    Win32libVersionExDate = 5 

Now mouse clicks on EditText are working and I could do away with my workaround. Thanks for the fix.

One more issue:

Once EditText is disabled using setEnable(abc, w32false), it does not get back its original background colour after using setEnable(abc, w32True) though that EditText gets enabled properly.

I will download and try out w32lib 51 too.

Thanks & Regards, Rad.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu