Re: Unified libraries to allow porting code to other oses

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

Wrapping wxWidgets using a similar idea wouldn't be too hard, the names may vary a bit. But wrapping Windows !?!

Here's get_text for a window or button, according to win32lib:

  elsif find(ctrl_Family[pId], {WINDOW, BUTTON, STATIC}) then 
        iLength = sendMessage( pId, WM_GETTEXTLENGTH, 0, 0 ) 
        if iLength > 0 then 
            iLength += 1 
            buffer = w32acquire_mem(0, iLength ) 
 
            iLength = sendMessage( pId, WM_GETTEXT, iLength, buffer ) 
            lCapText = peek( {buffer, iLength} ) 
            w32release_mem( buffer ) 
 
        end if 

Are you kidding me?

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

Search



Quick Links

User menu

Not signed in.

Misc Menu