ChanServ changed the topic of #picolisp to: PicoLisp language | Channel Log: https://irclog.whitequark.org/picolisp/ | Picolisp latest found at http://www.software-lab.de/down.html | check also http://www.picolisp.com for more information
PurpleMessenger[ has quit [Ping timeout: 256 seconds]
clacke[m] has quit [Ping timeout: 256 seconds]
orivej has joined #picolisp
rob_w has joined #picolisp
mtsd has joined #picolisp
<Nistur> good morning
<mtsd> Good morning Nistur
<Regenaxer> Hi Nistur, mtsd
<mtsd> Hi Regenaxer
<Nistur> o7
clacke[m] has joined #picolisp
PurpleMessenger[ has joined #picolisp
clacke[m] has quit [Ping timeout: 240 seconds]
PurpleMessenger[ has quit [Ping timeout: 256 seconds]
clacke[m] has joined #picolisp
alexshendi has joined #picolisp
PurpleMessenger[ has joined #picolisp
rob_w has quit [Quit: Leaving]
<sriram_> Good morning...I had a question about mouse interaction with canvas..canvas.l defines click, double click etc.
<sriram_> canvas.js has mouse down, mouse up etc. If I want those higher granularity events in PicoLisp how would I go about it
<Regenaxer> Hi sriram_!
<Regenaxer> ok, let me find an example
<Regenaxer> This is a complete example https://software-lab.de/pdfPage.tgz
<Regenaxer> it is a PDF page editor and generator
<Regenaxer> You can run it locally as ./pil misc/pdfPage.l -main -go +
<Regenaxer> Check the 'draw>' method in lib/pdfPage.l
<sriram_> many thanks...i will look at it..
<Regenaxer> It supports clicks and drags
<Regenaxer> also double clicks
<Regenaxer> based on the value of 'F'
<sriram_> yes, the click and drag were also in osmgeo
<sriram_> i was wondering about separate mouseUp and mouseDown
<Regenaxer> ah, possibly
<sriram_> as defined in canvas.js
<Regenaxer> I think it is not distinguished
<sriram_> yes...np..i was thinking of clicking on a tile, dragging it to a new location, then releasing
<Regenaxer> up and down are only analyzed to generate the clicks iirc
<sriram_> i thought i would need the mouseUp event
<sriram_> yes
<Regenaxer> Yep, but this is done by drag
<Regenaxer> in the pdf page you can drag rectangles
<Regenaxer> or resize them
<Regenaxer> and draw them etc.
mtsd has quit [Quit: Leaving]
<Regenaxer> You can also try it directly on http://BlitzMenu.7fach.de
<sriram_> ok...i will look at that code more closely (ah nice...that is convenient)
<Regenaxer> There is a sandbox mode somewhere
<Regenaxer> yes, a demo to play with
<Regenaxer> you can build your menus (assuming you are a restaurant ;)
<sriram_> yes :) (i hate cooking :) )
<Regenaxer> hehe
<sriram_> but the site itself looks wonderful (from learning perspective)
<Regenaxer> good :)
<sriram_> in fact, the picolisp https://software-lab.de/doc/index.html page is also very good for learning (I tried view source on it, but could not understand how the various frames are setup)
<sriram_> and how a click on one frame causes opening link in the other...etc
<sriram_> but i digress :)
<Regenaxer> Ah, I also don't know. This was made by Jon Kleiser
<sriram_> will explore the restaurant site now...thanks!
<Regenaxer> Surely you switched to English?
<Regenaxer> Then "Try yourself"
<sriram_> yes (US :) )
<Regenaxer> ok
<Regenaxer> I forgot the detail, did that a long time ago
<Regenaxer> But it is based on @lib/pdfPage.l
<sriram_> yes...i think it shows all the power of Pil..
<sriram_> in a general way that is
<Regenaxer> yeah, or you try locally just ./pil misc/pdfPage.l -main -go +
<Regenaxer> Then trace to see what happens
<Regenaxer> BTW, I made the text area in PilBox REPL read-only unless in edit mode
<sriram_> by the way i was trying to remember how this was done when testing satapps...if you have a page generated by html
<Regenaxer> cause it was confusing *where* to enter text
<sriram_> can you have the output go to the console as well (or to a file)
<sriram_> so that i can paste it in jsfiddle
<Regenaxer> hmm, not surec
<Regenaxer> did we do that?
<Regenaxer> You can do (out "file.html" (load "mypage.l")) or so
<sriram_> (i was testing the html on my side that way...so that could check that the css commands were correctly embedded)
<Regenaxer> good, yes
<sriram_> i tried (trace 'html) but that was not how it was done
<sriram_> ah i think i printed it out on the js side maybe
<Regenaxer> yes, we need the I/O side effects
<sriram_> i mean the client side
<Regenaxer> yes
<Regenaxer> but the above 'load' should output everything normally sent to the client
<Regenaxer> when called in the right runtime env
<sriram_> so in this case (pdfPage.l)...if i want to see what html is generated in one case
<Regenaxer> no, this loads everything
<sriram_> i could do ./pil -"(out "file.html\" (load \"misc/pdfPage.l\"))" -main -go +
<Regenaxer> no
<Regenaxer> I meant normal GUI pages
<sriram_> oh static ones
<Regenaxer> idForm pages etc
<Regenaxer> with (menu ... )
<Regenaxer> ie (html ...)
<sriram_> yes thats what i want too
<Regenaxer> pdfPage.l is a whole program defining funcwions
<sriram_> but puzzled where to embed the out...as follows ? (out "file.html" (html ...) )
<Regenaxer> What you need is the whole session traffic
<Regenaxer> Perhaps wireshark?
<sriram_> ah i c ..capture at the socket level
<sriram_> request and response
<Regenaxer> for pdfPage it is all via the 'work' function
<sriram_> its a bit too much for what i was looking to do...for example in the phoneGui case, did view source on the generated page in the browser
<sriram_> but was wondering if there is a way to print out on the server side on the console itself
<sriram_> by adding a debug wrapper around html
<Regenaxer> yeah, but not trivial
<sriram_> ok...can let that be...i can get it through view source
<Regenaxer> I really think wireshark is better then
<sriram_> ok...will read on wireshark...i remember using a different sniffer tool...dont remember the name
<sriram_> will play with pdfPage now...many thanks for all your help!
<Regenaxer> welcome :)
<sriram_> seems lib/svg.l is missing (when i do locally)
<sriram_> maybe an older version of pil is what i have installed
<Regenaxer> @lib/svg.l is now part of the distro
<Regenaxer> Better get the newest
<sriram_> yes..will do
inara has quit [Quit: Leaving]
inara has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
<sriram_> Hi again.. does pagePdf.l use svg or canvas element..seems to use both
<sriram_> i am also not able to figure out how the grid was drawn
<Regenaxer> yes, uses both. SVG is used to produce the final output, Canvas is only on screen
<Regenaxer> (let? G (* (: grid) (: zoom))
<Regenaxer> (csDrawDots 1 1
<Regenaxer> (make
<Regenaxer> in 'drawPage'
<sriram_> ah ok so I should just focus on the canvas part....(thanks for the grid, i missed that)
<Regenaxer> np :)
<sriram_> a very basic question (sorry), but lots of references to : home page and : grid. I am not able to deduce which objects these refer to and where
<sriram_> := grid is defined. I thought :home obj refers to a gui object in current form
<sriram_> but there is no (form ..) in the file
<Regenaxer> yes, (: home) is the form a gui component is in
<Regenaxer> lib/pdfPage.l defines only the components
<sriram_> the class must be PdfPage
<Regenaxer> the form is in misc/pdfPage.l
<Regenaxer> 'work' function
<sriram_> oh i see...ok..thanks
dtornabene has joined #picolisp
alexshendi has quit [Ping timeout: 276 seconds]
alexshendi has joined #picolisp
_1\2MaTTo has joined #picolisp
_1\2MaTTo has quit [Ping timeout: 260 seconds]
dtornabene has quit [Remote host closed the connection]