Re: Unified libraries to allow porting code to other oses
- Posted by irv May 24, 2015
- 2620 views
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?