World: r3wp
[!RebGUI] A lightweight alternative to VID
older newer | first last |
Graham 27-Jun-2006 [4109] | just encap |
Pekr 27-Jun-2006 [4110] | I know - but if you want to have all in one exe file as a result? You have to somehow "include" your code, no? 'do is not enough, is it? (as it would expect it being placed in external .r file ... |
Graham 27-Jun-2006 [4111x2] | not understanding ... |
tour.r is an example of script that can be encapped | |
Pekr 27-Jun-2006 [4113x2] | will look in tour.r .... but normally, when I use rebol and encap something, if you have "do %rebgui.r", then that file is not being encapped, the app expects it it on your hd ... |
I could use prebol, using include, but then I have to adapt my scripts all the time with single change, as rebol itself will not understand preprocessor instructions ... belongs to SDK probably ... | |
Henrik 27-Jun-2006 [4115] | pekr, I built my own "compiler" for such things and use make files to build projects like this. I'd imagine that would be simple to do? |
Pekr 27-Jun-2006 [4116] | yes, probably the way to go, or maybe I should look for Ladislav's include.r script .... |
Gordon 27-Jun-2006 [4117] | I'm having trouble running the list-view.r demo. The error message that comes up is: list-view has no value where: layout Near: list-view 100x80 data [[... I've checked and found the list-view widget in rebgui-widgets.r so I added that to my test program as follows: do %../rebgui-widgets.r and I get the following error message: Error: colors has no value near: color: colors/edge this latest error is happening during the execution of the "do rebgui-widgets.r" as the statement following this is not being reached. All other demos seem to work okay. |
Ashley 27-Jun-2006 [4118x2] | Pekr, the SDK trick we use in RebGUI is to have the following lines in your script: #include %rebgui.r unless value? 'ctx-rebgui [do %rebgui.r] These appeared in earlier versions of %tour.r but were [inadvertently] removed. I'll add them back in. |
Gordon, the demo directory and scripts (bubble-menu, list-view & triggers) were part of earlier releases. The directory was removed when the source was migrated to SVN, and all non-stable widgets (including list-view, bubble-menu and a few others) were removed. There is no need to "do %rebgui-widgets.r" as this is included directly in the new merged %rebgui.r script (and invoked from %rebgui-ctx.r if you run from the SVN source direct). LIST-VIEW is an important widget which we are hoping Henrik will be able to port to RebGUI from the excellent work he has done on this already. | |
Graham 28-Jun-2006 [4120x2] | I'm trying my way of creating templates, but have come across a problem with the check-group. This takes, none, true and false as values, these are in the global context. If I define more local words with the same names as these, how I can set them to the values in the global context? |
eg: ... /local true ][ true: value-as-defined-in-global context ... ] | |
Anton 28-Jun-2006 [4122x2] | context [true: system/words/true] |
func [/local true] compose [true: (true)] | |
Graham 28-Jun-2006 [4124x2] | thanks. |
give that a go | |
Volker 28-Jun-2006 [4126x3] | there are also #[none], #[true], #[false] |
which are directly processe by load, giving the values, not the words. | |
but looks ugly. | |
Pekr 28-Jun-2006 [4129] | are Robert's/Cyphre's changes already checked against official archive? |
Graham 28-Jun-2006 [4130x2] | Is this a rebgui error ? There is an error in your template: make object! [ code: 400 type: 'math id: 'zero-divide arg1: none arg2: none arg3: none near: [visible / total] where: 'view ] |
i'm not dividing by total anywhere, so perhaps it's part of the rebgui display function? | |
Volker 28-Jun-2006 [4132x2] | visible sounds like resizing. |
maybe some face has a 0-size? | |
Graham 28-Jun-2006 [4134] | let me check |
Volker 28-Jun-2006 [4135x2] | sometimes "echo on trace/functions on" helps, if you activatge it shortly before the crash. |
but its hard to read. | |
Graham 28-Jun-2006 [4137x3] | odd .. it displays this large template, and then crashes the second time round |
they're all anonymous widgets | |
i'd better make sure i'm not screwing anything up ... | |
Volker 28-Jun-2006 [4140] | maybe it tries to scale it down? calculates ones and does an auto-resize? and something gets to small? |
Graham 28-Jun-2006 [4141] | I might be doing something bad when i try and restore values .... |
Anton 28-Jun-2006 [4142] | visible and total are variable names I tend to use. It might be some of my recent code... |
Pekr 28-Jun-2006 [4143] | guyyyys, pleaaaaase, when latest changes will be synced? :-) Or are you suggesting I should install CSV product? :-) |
Graham 28-Jun-2006 [4144] | it's up to Ashley |
Pekr 28-Jun-2006 [4145] | so when I install some CSV product, I will be able to reach it? What product do you suggest? |
Volker 28-Jun-2006 [4146] | real rebolers use always the betas :) |
Pekr 28-Jun-2006 [4147] | CVS I mean :-) |
Graham 28-Jun-2006 [4148] | we never have anything but beta |
Volker 28-Jun-2006 [4149] | svn you mean ;) |
Anton 28-Jun-2006 [4150] | Indeed, area.r contains this line: face/pane/ratio: min 1 (visible / total) |
Pekr 28-Jun-2006 [4151x2] | Volker: I think that with Rebol, we are always using beta versions :-) |
Volker: whatever :-) | |
Volker 28-Jun-2006 [4153] | yup. Carl likes weird spelling. rebol, beta instead of rebel, better.. |
Graham 28-Jun-2006 [4154] | I've discovered that it is related to the area field |
Volker 28-Jun-2006 [4155] | The rebgui-wiki suggest tprtoise, but ihave no wiki-link |
Graham 28-Jun-2006 [4156x2] | if I enter some text into my area field before save the values, when I restore the template, it works. |
but if I have an empty area field.. the template when restore crashes with the divide by 0 area. | |
Anton 28-Jun-2006 [4158] | It's when the scroller inside the area is at zero height. |
older newer | first last |