Replies: 5 comments 13 replies
-
My initial goal (for the most part met at this point) was to create a low level binding to html and JavaScript. My next step beyond another demo or two and some filling in some blanks on the binding will be in the way of visual tools. I have considered adding higher level approaches but have not settled on anything concrete yet (at least for me to do, hopefully others will take and consider extending CLOG as well). Do you have any links to some sample code or tutorials for either of the approaches you mentioned? I’d love to become familiar with them. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the video and direction. It is certainly very doable on top of CLOG, but having trouble thinking of how I would use the feature in say a business app? |
Beta Was this translation helpful? Give feedback.
-
I am working through plans now to incorporate some of the ideas of presentations. I don't know how close in syntax to CLIM it will be as I want something simple like (create-presentation clog-obj any-class-obj) and (create-presentation-item clog-obj any-class-obj any-slot) to instantly associate any class with visual elements. The idea would be to quickly turn a class in to a form/visual rep, use CLOS before and after to handle initializations and validations, everything remains pure data/model. I'd like that when I change a slot in code the change is on screen, when on screen is already in the object in memory (post validation). All very doable with CL and the CLOG approach. This will also be the means to hook in to database and data serialization. I like the idea of methods also instantly becoming buttons and other actionable controls. |
Beta Was this translation helpful? Give feedback.
-
Woohoo! I’ll try to take a look soon. Neat stuff.
|
Beta Was this translation helpful? Give feedback.
-
Thank you for that update, I looked around and it was neat, but here's a use case I have that might be of interest (I can open a new discussion if it isn't the right place). I want to have a "command" like "process_x_and_y" that as input takes two objects, one of type X and one of type Y. I like to be able to activate the command (through any means, maybe a click on a button) which brings two input fields, user can either input elements of X and Y by typing them, or can click on any element of type X on the screen and any element of type Y on the screen. It can certainly be done on top of clog at the moment, but a built-in method would make it much simpler. This code in clim would be something like... (define-presentation-type X ())
(define-presentation-type Y ())
(define-foo-command (comm-process_x_and_y :name t :menu t)
((x 'X) (y 'Y)) ;; input x of type X and y of type Y
(do-stuff x y)) |
Beta Was this translation helpful? Give feedback.
-
Is there any plan to include CLIM and Genera-style presentations?
If you're unfamiliar, anything that goes to the screen can have a presentation type associated with it. Things like mouse actions can be bound to presentation types, rather than screen-element by screen-element. It also means that if you ask for input of a certain presentation type, they'll highlight as being available for a click.
Beta Was this translation helpful? Give feedback.
All reactions