Re: [Pipmak-Users] Unofficial Release of Pipmak Build 155 for Win32
Status: Alpha
Brought to you by:
cwalther
From: Christian W. <cwa...@gm...> - 2007-06-18 19:01:41
|
Andrea Viarengo wrote: > I have tried to use lua 5.0 but I always get a fastidious linker error about > symbol _HUGE (not found...!!??). > This error does not happen with compiled lib of lua5.1. > Ok, I retry to compile lua 5.0. I had no problems compiling Lua 5.0.3 with MSVC 6. I can send you the .lib and project files if that helps. > I have tryed also texteditor feature that you are developping: > > Probably there are still some errors in defaults.lua > in function pipmak_internal.texteditor(properties) > sometime you check type of "patch"...instead "properties", > Have you copied the structure of the function from another lua function, > and you have forgot to change some variable names? Exactly, copy & paste error. Good catch, thanks - because it's only in the error checking I didn't notice that. Fixed in my working copy, I'll check it in together with other changes when they're done. > I've correct this on my copy, and I get a working texteditor object, > But I never got the ibeam cursor...ok it is still in developping, > but I am curious....I hope this can help you. To get the I-beam cursor, and to make the text editor accept mouse clicks, you need to place a handle above it that takes care of that. It looks about like this in my working version of the Lua command line panel: local te = texteditor { x = 15 + 3, y = 44 + 2, w = width-14 - 5, maxlength = 300 } patch { x = 15 - 3, y = 44 - 3, w = width-14 + 6, leftmargin = 4.5, rightmargin = 4.5, image = "../1/textfield.png" } handle { x = 15, y = 44, w = width-14, h = 17, cursor = pipmak.ibeam, onmousedown = function() te:mouse(true) end, onmousestilldown = function() te:mouse(false) end } I currently consider text editors an internal, undocumented feature and intend to keep it that way until I have collected some experience with using them in the internal GUI. I hope I'll get around to finishing and checking in the Lua command line panel soon, so that you'll have an example to tinker with in the meantime. -Christian |