Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 13 2016 03:24
    @PeterWAWood banned @Vexercizer
Nenad Rakocevic
@dockimbel
@planetsizecpu Great! :clap: :-)
Boleslav Březovský
@rebolek

@GiuseppeChillemi @pekr some improvements:
http://i.imgur.com/LZm7Vas.png

  • columns can be reordered
  • long text is automatically truncated
  • text can be aligned to left or right
  • active cell or row can be highlighted
  • header
  • and probably some others I forgot.

Next is keyboard navigation and editing (probably using fieldstyle, I will see).

Petr Krenzelok
@pekr
Just some input - when you reorder column - do you physically move the data? I hope it is just virtual?
Boleslav Březovský
@rebolek
Virtual, moving all data would be too much work ;)
Petr Krenzelok
@pekr
As for editing - it is just me, so feel just easy, but I don't like in-place Excel like editing. In real-life DB apps, what I like is INS, DEL, ENTER keyboard, and entering the form to change/input new data .... just my opinion though, but if I can influence the design, please allow forbidding the in-place editing as an option ....
btw - is there going to be a vartical scroller too, if there is more than visible amount of columns? Well, beware - that might result in another request to have some columns frozen (not scrolling) at the left :-)
My final word - great work, looks good and will allow ppl to start to produce DB apps, so thanks for that!
Boleslav Březovský
@rebolek
  • Vertical scroller - I'd like to avoid that as long as I can ;)
  • In-place editing - actually having separate editor would be easier to do than in-place one, so I may start with separate one and add in-place later. I need to do some testing to see what is easier.
    And thanks, I'm glad you like it!
Petr Krenzelok
@pekr
as for an "editor" - it is upon the programmer, to design the form. It would be enough to allow double click, or using the keyboard navigation, plus enter event, to enter the form. I worked with many db apps in an enerprise. Grids rarely allowed to hilite the particular cell, the row was mostly enough. Also some allowed to tick the box, to select multiple rows, and then you could do some batch operations via some button, etc.
I really did not like in-place editing, as sometimes you need to do a validation against some other table, or the field triggers some other operations, etc.
Well, otoh I can understand, why someone might want the in-place editing though.
Boleslav Březovský
@rebolek
Highlighting the cell was easy enough to add, but now I realized I do not support highlighting multiple rows (or cell). I'm adding it to my todo list.
mikeparr
@mikeparr
Bug in Draw command - 'rotate' documentation? It says that the rotate angle is SET to the angle parameter. In my experiments, the parameter is ADDED to the current rotation amount. Thus, rotate 10 followed by: rotate -10 sets the rotate back to zero angle.
Henrik Mikael Kristensen
@henrikmk
@rebolek looks like a good table widget. :-)
Jose Luis
@planetsizecpu
@GiuseppeChillemi Looks well @rebolek good job! will test in 0.6.4
Boleslav Březovský
@rebolek
@henrikmk @planetsizecpu Thanks guys, there's still lot of work to do, but it's fun :)
Gregg Irwin
@greggirwin
Really nice Bolek! @pekr, in-place editing will be important in a spreadsheet model.
Boleslav Březovský
@rebolek
Thanks Gregg. The problem I have with in-place editing done using native widgets (field on top of custom table) would look strange.
Henrik Mikael Kristensen
@henrikmk
@rebolek is the table widget done with DRAW?
Boleslav Březovský
@rebolek
@henrikmk yes
Henrik Mikael Kristensen
@henrikmk
is there a plan for text editing via the DRAW engine? that could help solve your issue eventually.
Petr Krenzelok
@pekr
There is a new text editing widget, which is not yet in the mainline, or something like that. Rich text one ...
Henrik - how far you went with your new planned cross Rebol/Red gui? I mean - do you just start to experience Red?
Boleslav Březovský
@rebolek
Actually, I've already wrote text editor in Draw, so I need to put it together.
Henrik Mikael Kristensen
@henrikmk

@pekr The new GUI is presently going nowhere, because I'm spending a lot of time in RebGUI right now.

What I would have liked to do is to work on the new GUI with Red and R2 and maybe later R3 and World. Right now, I'm just trying out the existing Red GUI to see what it can and will be able to do, so I don't just repeat what is already being done too much, if I ever get started again.

I have a couple of apps, I want to do in Red with its current GUI.

Petr Krenzelok
@pekr
So - welcome onboard :-) Red GUI is still work in progress and if you look in Trello, you will see, that constant improvements are planned. Feel free to throw new ideas in. And if you would like to see some conceptual change, it would be best to do some short article, so that guys at FullStack can consider it ....
Henrik Mikael Kristensen
@henrikmk
@pekr thanks. it probably wasn't the best idea to berate the work already done. sorry about that. (but my opinion stands)
Boleslav Březovský
@rebolek
Henrik Mikael Kristensen
@henrikmk
@rebolek wow, that is better than I expected. :-)
Boleslav Březovský
@rebolek
:smile:
Henrik Mikael Kristensen
@henrikmk
is there any sort of widget level resizing yet?
Boleslav Březovský
@rebolek
not yet
you have to resize manually
Henrik Mikael Kristensen
@henrikmk

feel free to be inspired by the VID Extension Kit resize method, written by Brian Hawley and me.

https://github.com/henrikmk/VID-Extension-Kit/blob/master/source/ctx/ctx-resize.r

that of course depends on the resize model you choose. this one is inspired by MacOSX/NeXTSTEP.
Gregg Irwin
@greggirwin
@henrikmk, it's easy to jump into something new and compare to what you have needed in the past. Red is so different in some ways, and so early, that we haven't started to tap its potential. e.g. the latest blog that talks about the GUI test system, foreach-face (we've done some resizing experiments using that), and reactivity. I did most of the 7GUIs tasks in Red, and Doc's Ballot example, ported from JS. You're coming in at a good time. Plenty in place to play with, but still many areas to contribute to.
Again, really nice Bolek. Wow.
Resizing will probably start with a simple system, but I think it could be fun to implement Cassowary in Red. It will be a big task, and not on any task list, but something any one of us could do.
Maybe we could port yours, just to see what it looks like in Red.
Dave Andersen
@dander
I agree, that looks great @rebolek
Henrik Mikael Kristensen
@henrikmk
@greggirwin Resizing is tightly linked to usability both for the user and the application author, so it makes sense that the resizing algorithm is kept simple.
geekyi @geekyi is a bit frustrated that he can't just copy paste run @henrikmk's code :/
Henrik Mikael Kristensen
@henrikmk
@geekyi you mean, it needs to be adapted?
geekyi
@geekyi
@henrikmk No, it's dead easy to run code snippets in Red usually, I had to download a zip from github this time :p
Btw, what tests should I look at?
image.png
Henrik Mikael Kristensen
@henrikmk
Yes, those
tests/browsers/style-browser.r is a complete program where some resizing is done. if it runs, that is. :-)
geekyi
@geekyi
FYI that was
>> do %tests/resize/window.r

@henrikmk

tests/browsers/style-browser.r is a complete program where some resizing is done. if it runs, that is. :-)

well, that doesn't run (Win 10, REBOL/View 2.7.8.3.1 1-Jan-2011)