World: r3wp
[!RebGUI] A lightweight alternative to VID
older newer | first last |
Ashley 16-Jun-2008 [7561] | Pekr, using rebface instead of rebview will make a big difference as rebface excludes VID and all help text is stripped out. On OS/X I get the following: REBFACE >> stats == 2085621 >> recycle >> stats == 1911437 REBVIEW >> stats == 6260880 >> recycle >> stats == 4810174 You can also create a custom RebGUI build that excludes widgets you don't intend using (see http://trac.geekisp.com/rebgui/browser/create-distribution.r ) which will save a few more bytes. Lastly, make sure your app does not use any unneeded images (e.g. a background image when a simple draw effect might suffice). Even with these measures you'll only be left with about 3MB free ... but 3MB is better than 1MB. |
Pekr 16-Jun-2008 [7562] | Thanks Ashley, appreciated! |
Pekr 18-Jun-2008 [7563x3] | What do I need to "include", when doing rebface + rebgui? rebface.exe tour.r does not work ... |
LOL - RTFM :-) http://www.dobeash.com/RebGUI/cookbook.html#section-2 | |
hmm, no luck with linux SDK, there is one workaround, which seems to prevent us from rebface usage :-( | |
Graham 21-Jun-2008 [7566] | What's the approved way of setting the focus so that the caret is at home? set in area 'caret 1 set-focus/caret area ?? |
Ashley 22-Jun-2008 [7567x2] | Pekr, try the following (after the do/#include of %rebgui.r): ctx-rebgui/layout [text "?"] |
Graham, yes. | |
Pekr 23-Jun-2008 [7569] | so, after some testing, which I am confused a bit about, it seems that RebGUI is not all that memory savy. For simple hello world example based upon rebface, it consumed even more memory than VID. |
BrianH 23-Jun-2008 [7570x3] | Is that also the case for rebface builds of RebGUI? |
(sorry, missed it) | |
I'm not aware of any R2 GUI framework that is not a memory hog, but my standards are probably off. | |
Pekr 23-Jun-2008 [7573] | IIRC RebGUI was supposed to be more memory savy, which does not seem to be the case. What is also interesting is, that rebol 1.2.47 consumed less memory ... |
Graham 24-Jun-2008 [7574] | I'm experimenting a little now, but with multiple resizable panels, I think it might be easier to generate layouts on the fly rather than keep a static layout that one updates various fields. |
Robert 24-Jun-2008 [7575] | Petr, you will have a baseline memory consumption but it's not going up a lot. So make your app more complex ;-) |
Graham 25-Jun-2008 [7576x3] | think this might be classed as a bug in the layout display "" compose [ button "testing" 15.1 button "again"] do-events the first button does not display if there is a decimal size |
Because Rebgui uses a default pixel size that can be eg. 4, you can't easily get pixel precision in layouts. | |
correction .. the second button does not display | |
Pekr 25-Jun-2008 [7579] | Robert - there still has to be a leak in REBOL! Even if you try primitive hello world example, you start with 6MB of RAM, you do nothing, and after do-events it grows 3 - 4 MB, slowly, but constantly! |
Ashley 25-Jun-2008 [7580] | Out of interest, the memory figures on OS/X using rebface are: rebface 1.8Mb VID 3.2Mb after loading %view.r RebGUI 3.5Mb after loading %rebgui.r but these are for the respective defaults (VID apps often require additional patches/fixes and styles, RebGUI apps rarely use *all* the default widgets). I should also add that RebGUI (or indeed VID) have ever been fully profiled and optimized. |
Pekr 25-Jun-2008 [7581] | So the correct route is to build custom rebgui.r, including only widgets I am using? |
Graham 25-Jun-2008 [7582] | Is there a way we can "robustify" rebgui so that we trap all errors?? make object! [ code: 312 type: 'script id: 'cannot-use arg1: 'multiply arg2: 'decimal! arg3: none near: [freedom * face/data] where: 'wake-event ] |
btiffin 25-Jun-2008 [7583x2] | Yep; go: does [display ...] while [[error? err: try [go]] [alert mold err go] Along those lines... I haven't got the code in front of me |
[[ ]] should be [ ] ... umm, mental methane | |
Graham 25-Jun-2008 [7585x2] | Hmm.. I already trap the errors ... I would much prefer that they didn't happen! |
ie. they are trapped inside the rebgui code and dealt with there. | |
Graham 26-Jun-2008 [7587] | I've put a check in the engage event to see if face/data is none?, and if so, make it 0. In case someone like me has set it directly to none ... |
Graham 28-Jun-2008 [7588x2] | this is my new appointments display ... is there a way I can drag the buttons around? http://screencast.com/t/ou1MwDdS |
so I can move an appt from one slot to another | |
[unknown: 5] 28-Jun-2008 [7590] | Looks good Graham. |
Brock 28-Jun-2008 [7591] | Cyphre has a drag-panel style that allows drag and drop of various objects on a window. |
Graham 28-Jun-2008 [7592] | Does it work with Rebgui? |
Brock 29-Jun-2008 [7593] | I don't know. I just remember he had the style. Don't know how well it works as I've never used it, let alone with RebGUI |
Graham 30-Jun-2008 [7594] | I've got some custom panels that I have a resizing routine written for them. how do I trigger that to run when the main window resizes? |
shadwolf 7-Jul-2008 [7595] | graham i like your app it's very beautyfull ^^ |
Graham 7-Jul-2008 [7596] | Thanks shadwolf :) |
Pekr 7-Jul-2008 [7597] | Graham - nice interface - what widget is used for the scheduler displaying time slots? |
Graham 7-Jul-2008 [7598x3] | no widget .. it's all created on the fly |
Basically it's tab-panels, panels, and buttons assembled as needed. | |
And all the ideas were taken from the MS silverlight medical demo | |
Pekr 7-Jul-2008 [7601] | aha ... I like collapsing/expanding capability. ... |
Graham 7-Jul-2008 [7602x3] | It just regenerates the layout |
and then I use tab-panel/replace-tab [ new layout ] | |
the MS demo expands in-situ which would be nice to do ... but I recreate the whole thing | |
BrettH 17-Jul-2008 [7605x2] | Anybody out there using RebGUI ? I'm just starting to use REBOL and have delivered a small app using VID to a volunteer group who are collecting local history articles. And I'd like feedback on any gotchas with RebGUI vrs VID. Thanks |
Well ! There seems to be !! It took a very long time to display any messaged when I visited the group, so I though there wern't any :-) Cheers. | |
shadwolf 18-Jul-2008 [7607x3] | http://www.dobeash.com/rebgui.html-> docs etc... |
to get rebGUI you simply write those lines into a ".r" file or you go into the rebol/desktop in the REBOL/DEMOS folder | |
REBOL [Title: "RebGUI Demo"] do http://www.dobeash.com/RebGUI/get-rebgui.r do view-root/public/www.dobeash.com/RebGUI/tour.r | |
BrettH 18-Jul-2008 [7610] | I'm trying to do some 'field navigation' within a rebgui form and cannot figure out how to get teh filed cursor to 'goto field' |
older newer | first last |