World: r3wp
[!REBOL3 GUI]
older newer | first last |
Pekr 19-Jan-2011 [5306x2] | btw - maybe more direct question - where's defined spacing between the elements? I mean - I run Carl's demo next to RMA's demo, and I think that Carl's version got element spacing more pleasant. Where should I look to change it? |
Any pointer appreciated ... | |
Henrik 19-Jan-2011 [5308] | Cyphre is ill (flu), so there might be some delays in answers. |
Robert 19-Jan-2011 [5309x2] | Petr, do you have a screenshot? |
We have the box-model like CSS, so there are a lot of different spacing things that can be defined. | |
Pekr 19-Jan-2011 [5311x3] | ok, I'll make one right away .... |
http://xidys.com/pekr/rebol/r3-gui-comparison.jpg | |
this is just first prototype of first section. I have problem making a panel, to work reliably ... I don't understand the space at the top of the panel, that is still probably buggy on my part ... | |
Robert 19-Jan-2011 [5314] | Cool... you already made good progress. Do you know the boxmodel graphic? I might need to add it to our web-page. |
Pekr 19-Jan-2011 [5315x2] | no, I don't ... just the general doc for the WIP, plus your resizing docs ... |
I vote for the MDP docs being added into the distro, if possible ... or their generated html variant ... | |
Ladislav 19-Jan-2011 [5317] | So, guys, is there any new revised release in the plan? - most probably next week Or any explanations to my findings? - having trouble to reproduce some of your findings here, and some problems are related to the parts Cyphre is working on |
Robert 19-Jan-2011 [5318x2] | http://www.rm-asset.com/code/level1/r3-gui/resizing/#sect5 |
HTML docs are online. | |
Ladislav 19-Jan-2011 [5320x2] | regarding your layout containing the WHEN and CLICKER elements, they look like still being incompatible with the current resizing |
(that was a note to Pekr) | |
Pekr 19-Jan-2011 [5322x6] | I know Ladislav - I even tried to comment them out, becuase I was nervous about the top empty space, which can be seen in the image I posted. |
I even took the content out, to remove it from the demo dependency, and tried, I posted short script, and the space is still there ... | |
You can see the short script few of my messages above - the spaca is still there. I worry, that I still don't have good understanding of panel content handling functions, I used: child: make-face 'vpanel [] set-panel-content child lay view child | |
or 'hpanel [break-after: 1] | |
You can see what I have got resizing such a layout: http://xidys.com/pekr/rebol/messy-resizing.jpg | |
When i close window, and call my %test.r3 again, I get stack overflow we discussed earlier ... Dunno, why I did not get it running the first time ... | |
Ladislav 19-Jan-2011 [5328] | CLICKER was not adapted, so no matter how hard you try, without adapting it, you cannot achieve good results |
Pekr 19-Jan-2011 [5329x2] | I think that the trouble is in make-face and how the panel is preconstructed .... because when I use the same layout submitted just to view, it works correctly ... |
I am not judging the clicker, just comment it out :-) | |
Ladislav 19-Jan-2011 [5331] | so what, when I comment the two incompatible parts of the layout out, it looks normal doesn't it? |
Pekr 19-Jan-2011 [5332] | OK, just try very simple layout: lay: [button "OK"] child: make-face 'hpanel [break-after: 1] set-panel-content/no-show child lay view child |
Ladislav 19-Jan-2011 [5333] | what is wrong with that? |
Pekr 19-Jan-2011 [5334x2] | It does just the same here - first the dialog box with button is displayed ... I close it ... then I do the script again, and I get stack-overflow ... |
I use the latest r3-gui.r3 | |
Ladislav 19-Jan-2011 [5336x2] | that part is not reproducible for me |
(even when doing it ten times, no stack overflow) | |
Pekr 19-Jan-2011 [5338] | OK, I'll redownload all stuff again from RMA ... |
Ladislav 19-Jan-2011 [5339x3] | that may not help, I probably have a bit newer code |
or, maybe I use a different system | |
But Cyphre might be able to reproduce your problem once he is back | |
Pekr 19-Jan-2011 [5342x2] | I redownloaded everything. Still the same ... |
the culprit is set-panel-content -> insert-panel-content -> parse panel .... imo :-) I'll wait for newer code containing some fixes ... | |
Robert 19-Jan-2011 [5344] | stackoverflow: We are taking care of this with Carl at the moment. We have a test-case where I can reproduce the problem. |
Pekr 19-Jan-2011 [5345x2] | Carl? Nice. The culprit is the following code, which is simply wrong: show-native: :show show: funct [gob] [ update-subgobs gob show-native gob ] |
show-native calls show = itself ... strange indeed, as It does not crash with first viewing of the window, but at the second viewing. Do you think the problem is low level? | |
Ladislav 19-Jan-2011 [5347] | simply wrong - why do you think? |
Robert 19-Jan-2011 [5348] | This is the code: code: view [ title "Opinion Survey" text "Do you want programs to be easy to build?" hpanel 2 [ label "Answer:" hgroup [ radio "Agree" radio "Disagree" radio "Not sure" ] pad check "I'm a programmer." pad check "I am also a REBOL expert." label "Name:" field label "Comment:" area ] hgroup [ button "Submit" submit http://www.rebol.net/cgi/submit.r button "Reset" reset button "Cancel" close ] ] loop 10 [ do code ] print "all code passed - no crashes" halt |
Ladislav 19-Jan-2011 [5349x2] | all code passed - no crashes |
regarding the above Show-native issue - that is a do-once-only-code, as I see it. If you run it only once in the console, you don't get any stack overflow | |
Pekr 19-Jan-2011 [5351] | aha, you see? my wrong understanding :-) I thought calling such a show causes infinite loop :-) |
Ladislav 19-Jan-2011 [5352x4] | But, sure, that should be corrected to not cause any trouble if somebody inadvertently runs the code twice |
as a temporary measure, you could replace the show-native: :show by unless any-function? :show-native [show-native: :show] | |
...or if command? :show [show-native: :show] | |
Robert, does that cure the problem for you? | |
older newer | first last |