r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!RebGUI] A lightweight alternative to VID

Graham
18-May-2006
[3632]
the cursor was not at the left end of the field, but in the middle 
.. I think the caret was confused as it was an empty field
Anton
18-May-2006
[3633x2]
Was the text facet set to none, perhaps ?
(no that gives another error.)
Graham
18-May-2006
[3635]
I have a field which I clear when I add the contents to the database. 
 But the caret is not set back to left edge.
Anton
18-May-2006
[3636x4]
I see...
Let me do some tests.
Workaround probably just focus the face again.
This doesn't happen in VID because clicking outside the face clears 
the focus.
Graham
18-May-2006
[3640]
this is probably the reason why the error occurs.
Anton
18-May-2006
[3641]
;These two work:

display "" [f: field "hello" button "clear" [clear f/text system/view/caret: 
none show f]] do-events

display "" [f: field "hello" button "clear" [clear f/text ctx-rebgui/edit/focus 
f]] do-events
Graham
18-May-2006
[3642x3]
I think i use clear-text
let me check.
yep
Anton
18-May-2006
[3645]
display "" [f: field "hello" button "clear" [clear-text/focus f]] 
do-events
Graham
18-May-2006
[3646]
ok, I'll try that.
Anton
18-May-2006
[3647]
I think either:

- clear-text should check to see if head face/text and head system/view/caret 
are the same. If so, then obviously caret needs adjustment.
or

- edit-text should handle the error, since clear-text is potentially 
not the only function which can leave the caret inconsistent with 
face/text.
Graham
18-May-2006
[3648x2]
Agree.
with latter.
Volker
18-May-2006
[3650]
How to create a RebGUI widget http://www.lexicon.net/antonr/rebol/doc/create-a-rebgui-widget.html
sends me to http://w3.eftel.com/home.cms
Anton
18-May-2006
[3651]
Now available here:

http://home.wilddsl.net.au/anton/rebol/doc/create-a-rebgui-widget.html
Volker
18-May-2006
[3652]
Thanks :)
Anton
18-May-2006
[3653]
Still works :)
Pekr
19-May-2006
[3654x2]
guys, did you test get-rebgui on systems without view installed? 
I was just informed, that it states that downloading manifest OK, 
but apparently the directory does not exist at all  ....
to hell with installation and system "friendliness" :-)
Anton
19-May-2006
[3656]
What version of rebol is it ?
Volker
19-May-2006
[3657x3]
Hoiw is the svn related to get-rebgui? %tour.r ismissing?
;bug? if my face is smaller than min-size, it is initially smaller 
on screen. This works in 'display:
	;	min-size?
	if find view-face/options 'resize [
		insert tail view-face/options 'min-size
		insert tail view-face/options either min-size [size] [
			view-face/size + switch/default fourth system/version [
				3	[8x34]	; WindowsXP
			][
				4x30		; Others
			]
		]
if view-face/size <> max view-face/size size[
 span-resize view-face size - view-face/size
 view-face/size: max view-face/size size
]
No, buggy too.
Ashley
19-May-2006
[3660]
How is the svn related to get-rebgui?

 The SVN is for developers / experienced REBOLers ... it is used to 
 manage individual widget source files. %get-rebgui.r obtains a pre-built 
 distribution (including a merged %rebgui.r, %tour.r, images and demo 
 scripts). It is targeted at 'end users' who don't want to use SVN.

%tour.r is missing

 I want to add it *without* having to also add sample icon images 
 to the SVN. I'll probably just 'inline' the images so it's all in 
 one big file.


min-size: read this very carefully: http://www.dobeash.com/RebGUI/display.html#section-2.1.2


The Note says it all: "The min-size limit will only be enforced upon 
a window resize, and the size is inclusive of an OS specific number 
of border / title pixels. Also note that if any widgets are resizeable 
(#H and #W) and min-size has not been specified then RebGUI will 
assign a default value equal to the initial window size."
Pekr
20-May-2006
[3661]
Anton - latest version ....  but I suggested Bobik to sipmly install 
rebol and see if it helps ....
Graham
20-May-2006
[3662]
why would you want to test rebgui without view installed??
Pekr
20-May-2006
[3663x4]
Because installation sucks, that is all :-)
It is very GOOD example, of how some ppl think about rebol - I did 
not influence Bobik's opinion, yet it was natural for him, to use 
rebol.exe dropped in the dir of particular app. I used that model 
too, but gave up and installed View
I know that two ppl is not enough as a representative amount of users 
following some logic, but :-)
when I update my View, I risk older apps may not work .... that is 
why I used that model .... of course we can use -i option, but it 
was broken with olders releases ...
Graham
20-May-2006
[3667]
rebgui is a developer's tool.
Pekr
20-May-2006
[3668x2]
well, you can always state anything. Being a developer's tool does 
not tell anything how ppl are using Rebol to develop. I am not comfort 
with idea of installation, simple as that. I never use double-click 
to launch my scripts and never will do, untill we get one exe and 
components (file associations issue). And noone should explicitly 
tell, how do I use any tool.
I have my View\RebGui, View\whatever-project subirs. I do like to 
simply copy on my USB and go. With current aproach, while it follows 
OS customs, for me it is flawed. I can't even spell easily enough, 
where tour.r is located. I would welcome some "look-up" function 
to not care - simply if it is in my sandbox, wherever it is, just 
run it ....
Graham
20-May-2006
[3670]
I think this is off topic for Rebgui.
Pekr
20-May-2006
[3671x2]
it is, and it is not - If I would not assist Bobik, he would probably 
give up. Yes, it is his fault to not know view-root, sandbox etc., 
but it tells something - things should stay easy in the first place. 
There is more and more apps, which follow copy & run principles - 
two articles on czech developer's site. And as Steve said - Amen 
- we give up on our own principles, following the outer world, when 
outer world is starting to get our ideas ...
so yes, this is probably off topic, thanks for reminding me. It is 
always safer and comfort to remind someone that something is off-topic, 
than actually admint, that there could be some thruth to it. I can 
see the fear of eventually losing the ground admitting, that current 
aproach was not all that optimal solution ... whatever ....
Graham
20-May-2006
[3673]
There is a View group ...
Anton
20-May-2006
[3674x4]
Pekr, what version of Rebol is it ?  eg.. system/product == ?  system/version 
== ?
What was the error message received ?
Oh I think I see what the problem is. After running get-rebgui.r 
it's not easy to see where the installation dir is. Well, it's probably 
in the public cache. This should show you where the files went.
list-dir path-thru http://www.dobeash.com/rebgui/
Ashley, don't delay because of icons. SVN can obviously easily handle 
them and you can always remove them later when you have time. But 
we need to test the tour against the latest rebgui changes to make 
sure they're working.
Volker
20-May-2006
[3678x4]
- Why not images in svn? AFAIK it can handle that. (download-size?). 
Would be nice if i could checkout and have the real rebgui-demo after 
running some build-script.

- min-size: it was easy to enforce an initial resize if some dimension 
is to small. I did that with a small example, area only.See the posted 
lines (maybe they need to be reversed. I experimented a bit). But 
it fails with other things. (obviously needs a check for presence 
of /min-size, but then the sizes dont change right.)
Pekr, i was confused too. thought you want to extract rebgui without 
/view, /core only. "not installed" .. :)

No directory: I guess it takes the default sandbox without installation, 
that one it suggest while installing.
Multiple views, not installed: i guess you can keep multiple exes 
and run them. maybe rename them with version. They would share registry-setting, 
but i dont think they relaunch the installed exe. Although the default 
rebol for Ü.r would change.
With your usb, do you have a private account on the machines? So 
that you have own registry-settings?