Thank you. With your clear instructions in COMPILING I have managed to compile this version. There are some warnings about ctrbegin.o and crtend.o not found that I don't understand because they exist in the system. (9009) Assembling vcl (9022) Compiling resource /tmp/vclua-0.6.3/lib/arm-linux/vcl.or (9015) Linking /tmp/vclua-0.6.3/libvcl-arm.so /tmp/vclua-0.6.3/src/vcl.lpr(43,30) Warning: (9034) "crtbegin.o" not found, this will probably cause a linking failure /tmp/vclua-0.6.3/src/vcl.lpr(43,30)...
Thank you. With your clear instructions in COMPILING I have managed to compile this version. There are some warnings about ctrbegin.o and crtend.o not found that I don't understand because they exist in the system. (9009) Assembling vcl (9022) Compiling resource /tmp/vclua-0.6.3/lib/arm-linux/vcl.or (9015) Linking /tmp/vclua-0.6.3/libvcl-arm.so /tmp/vclua-0.6.3/src/vcl.lpr(43,30) Warning: (9034) "crtbegin.o" not found, this will probably cause a linking failure /tmp/vclua-0.6.3/src/vcl.lpr(43,30)...
Added bugfixed source (vclua-0.6.3-arm.tar.gz) to files section. Tested on Raspberry Pi Zero W with raspbian buster. If you have problems, please attach the full error message.
Thank you very much for your help. I'll wait.
check your sourcecode. find XLabel and change it to xLabel, variable names are case sensitive!
Thanks for the quick anwser but It didn't work. Check the screen :
function selectFile(xLabel, xFile) xFile = selectFileR() -- xLabel:Refresh() xLabel.caption = xFile end
Refresh Label (Form)
im waiting for my new pi. After i received it i will try to compile it for you.
VCLua v0.6.3 or v0.7.1 for armv7 (Raspberry Pi)
Hi, the list of the key bindings is a 'built in' function in the propertygrid, so it is not accessible from lua. to get the default keybindings search for the procedure named TSynEditKeyStrokes.ResetDefaults at https://github.com/alrieckert/lazarus/blob/master/components/synedit/syneditkeycmds.pp Janos
Hi I am still greatly enjoying building by own editor with vclua 0.6.3. The Synedit control has some default keybindings and I can view a useful grid of these using the "doc" demo program (screenshot). But I can't copy this list to a text file - for later use in syntax highlighting. Is there any way to use Lua to extract this list of ecXXX commands and their default keybindings? I did try looking at the source for the doc program, but the grid display seems to be a PropertyGrid object and I can't...
Hi I am still greatly enjoying building by own editor with vclua 0.6.3. The Synedit control has some default keybindings and I can view a useful grid of these using the "doc" demo program (screenshot). But I can't copy this list to a text file - for later use in syntax highlighting. Is there any way to use Lua to extract this list of ecXXX commands and their default keybindings? I did try looking at the source for the doc program, but the grid display seems to be a PropertyGrid object and I can see...
Hi, both caretpos routines uses the synedit built in functions. i have no idea how to get coordinates of the caret. Maybe someone at the lazarus forum know how to solve the autocompleation in lazarus... The new version will handle the synedit module in the future. The first release is in the very alpha stage now. Janos 13:59 keltezéssel, Gavin Holt írta: Hi I have made a basic autocompleation script for synedit using vclua 0.6.3 under windows. I would like to popup a menu at the cursor position (not...
Hi I have made a basic autocompletion script for synedit using vclua 0.6.3 under windows. I would like to popup a menu at the cursor position (not the mouse position). Menu:Popup seems to require screen coordiniates. I tried synedit:GetTextPos() - this returns row:col coordinates. I tried synedit:GetCaretPos() - this returns row:col coordinates. I tried vcl:GetCursorPos() - this returns the mouse screen coordinates. I noticed synedit:MouseToCaretPos(), but it does not seem move the mouse to the cursor....
Hi I have made a basic autocompleation script for synedit using vclua 0.6.3 under windows. I would like to popup a menu at the cursor position (not the mouse position). Menu:Popup seems to require screen coordiniates. I tried synedit:GetTextPosition() - this returns row:col coordinates. I tried synedit:GetCaretPos() - this returns the mouse screen coordinates. I noticed synedit:MouseToCaretPos(), but it does not seem move the mouse to the cursor. -- Display menu *** Can't place this in the right...
Hi, Synedit component doesn't supports wordwrap (as i know) Did you tried to modify these properties below? property Keywords: TStringlist; property NonKeywords: TStringlist; SynEdit1:SetLang("LUA") SynEdit1.Highlighter.Keywords:Add("hello") regards Janos
Hi I am still having great fun "making my own editor" using VCLua and specifically TLuaSynEdit. I like having full control over the gui, menus, shortcuts and popup menus. Using the available functions I have multiple tabs, block cut copy duplicate sort prefix, autocorrection, snippets, lua macros, save backup, load backup, regex find and replace, run external tools and even a rudimentary command line. All this in Lua (5.1-5.3) and LuaJIT - it's a dream come true. I fully understand that vclua does...
Hi I am still having great fun "making my own editor" using VCLua and specifically TLuaSynEdit. I like having full control over the gui, menus, shortcuts and popup menus. Using the available functions I have multiple tabs, block cut copy duplicate sort prefix, autocorrection, snippets, lua macros, save backup, load backup, regex find and replace, run external tools and even a rudimentary command line. All this in Lua (5.1-5.3) and LuaJIT - it's a dream come true. I fully understand that vclua does...
Once again many thanks. My project is moving forward and I am enjoying it greatly. The code runs in lua51 and LuaJIT which offers access to FFI - and then the world! Gavin
Sorry, the correct way to prevent key triggering is: local function onKeyDown(Sender, key, shift) if shift=="[ssCtrl]" and mySynCtrlKeys[key] then Sender:CommandProcessor(mySynCtrlKeys[key]) return 0 -- set key to ecNone end return key -- continue trigger chain end
yes. local function onKeyDown(Sender, key, shift) if shift=="[ssCtrl]" and mySynCtrlKeys[key] then Sender:CommandProcessor(mySynCtrlKeys[key]) return 0 end end
yes. local function onKeyDown(Sender, key, shift) if shift=="[ssCtrl]" and mySynCtrlKeys[key] then Sender:CommandProcessor(mySynCtrlKeys[key]) **return 0** end end
Hi, I followed you example and it works for all keys not defined in SynEdit.KeyStrokes. When I try to use a key that is present in SynEdit (e.g. Crtl+N,Ctrl+M,Ctrl+T ) the SynEdit command is triggered in addition to my code. This means my SynEdit.onchange event is also triggered! I notice that Ctrl+N (for new file) does not work properly in any of the examples I have found for vclua (e.g. Notepad.lua, ide.exe). Is there any way to prevent the SynEdit command triggering when using these keyboard shortcuts?...
Hi, I followed you example and it works for all keys not defined in SynEdit.KeyStrokes. When I try to use a key that is present in SynEdit (e.g. Crtl+N,Ctrl+M,Ctrl+T ) the SynEdit command is triggered in addition to my code. This means my SynEdit.onchange event is also triggered! I notice that Ctrl+N (for new file) does not work properly in any of the examples I have found for (Notepad.lua, ide.exe). Is there any way to prevent the SynEdit command triggering when using these keyboard shortcuts?
Hi Janos, Many thanks for the explanation and the detailed example. Like many I am hacking my own editor and VCLua is great for this task. I run it with lua51.exe (when I want to view console output ie print debugging) and then in lua.exe for the pure GUI experience. Thanks again and happy coding. G
Hi Gavin! You found functions belongs to TCollection and not to TKeystrokes. To manage Synedit keystrokes directly is not available in the version 0.6.3. You can overdefine keyboard shortcuts using the 'OnKeyDown' event: SynEdit1 = VCL.SynEdit(Form1,'SynEdit1') local mySynCtrlKeys = { [75] = "ecDeleteEOL", -- 'K' } local function onKeyDown(Sender, key, shift) if shift=="[ssCtrl]" and mySynCtrlKeys[key] then Sender:CommandProcessor(mySynCtrlKeys[key]) end end SynEdit1._={ } regards,...
Hi, I am trying to remap the keystrokes in a synedit component (using vclua-0.6.3-win32-lua51.zip). As an example I would like Ctrl+K to execute ecDeleteEOL (Command 506). I have discovered some functions : MyForm.MySynEdit.Keystrokes:Clear() MyForm.MySynEdit.Keystrokes:Delete() MyForm.MySynEdit.Keystrokes:SetItem() MyForm.MySynEdit.Keystrokes:Insert() MyForm.MySynEdit.Keystrokes:GetItem() MyForm.MySynEdit.Keystrokes:Add() and I have read the synedit source to find default allocations in https://github.com/SynEdit/SynEdit/blob/master/Source/SynEditKeyCmdsEditor.pas...
OK, I found the solution! in function OnPaint(s) s:GetCanvas() is now s.Canvas (from function to property) Thank you again. Andrea.
OK, I found the solution! in function OnPaint(s) s:GetCanvas() is now s.Canvas() (from function to property) Thank you again. Andrea.
Thank you so much for the release of the version 0.6.3 for lua 5.1. It works fine with LuaJIT dll with just ONE PROBLEM in relationship with the old 0.6.0 release: The GetCanvas() routine (referred to Forms and ScrollBox object in my tests) does not work. Did you change something in the exposure of the GetCanvas() routine? Unfortunatly I do not find an updated version of the documentation (>0.6.1 PDF?) for checking this. I think that this GUI framework is the best available for Lua and LuaJIT in...
Thank you so much for the release of the version 0.6.3 for lua 5.1. It works fine with LuaJIT dll with just ONE PROBLEM in relationship with the old 0.6.0 release: The GetCanvas() routine (referred to Forms and ScrollBox object in my tests) does not work. Did you change something in the exposure of the GetCanvas() routine? Unfortunatly I do not find an updated version of the documentation (>0.6.1 PDF?) for checking this. I think that this GUI framework is the best available for Lua and LuaJIT in...
Hallo, I have problems in compiling VCLua 0.6.3 for lua 5.1 (LuaJIT usage). Please, can you compile and upload the LUA51 binary version of the DLL as you did for VCLua 0.6.0? Thank you, Andrea
VCLua for raspberry