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

World: r3wp

[View] discuss view related issues

Henrik
28-Sep-2007
[7226]
I thank you anyway, because it saved me a bit of research :-)
Brock
28-Sep-2007
[7227]
For the amount of help you have provided me with List-view, I still 
owe you alot!!
Henrik
30-Sep-2007
[7228x2]
why is it possible to use make-face with 'field, 'area or 'image, 
but not with 'text', or 'h1?
oh, because it's necessary to specify size for 'text.
james_nak
2-Oct-2007
[7230]
Just curious but say you've created some apps in the past and you 
want to create a little launcher app that calls them. These apps 
can stand alone as well and aren't necessarily part of the launching 
app. Is it possible to "do" them and then have them return back to 
the launcher app without having to recode them (the launched apps)? 
 Or should I just place a view/new in the called app and an unview/only 
when I want to quit it?
Graham
2-Oct-2007
[7231]
Viewtop ??
btiffin
3-Oct-2007
[7232]
James; Depending on the version you have (I can never remember what's 
what anymore in terms of SDK features amd if you need keys if running 
2.7.5 vs 1.3.2 etc) try looking into  launch  and  call.  do will 
work if there are no quits or halts; falling through the end of a 
script returns the value of the last expression, but halt will halt 
the caller, and quit just bails.  If you are willing to recode a 
little bit, change all the quits and halts to  throw  and wrap the 
do in  catch [do ...]  (along with the unviews)  Best is launch, 
it spawns off a brand new process.
Gregg
3-Oct-2007
[7233x3]
James, yes, you can. You can use do/args and pass info, along with 
a callback func in the main app, that the launched app should call.
At least that's one way to do it.
It does mean making *some* changes to the called app, but not a total 
rewrite.
james_nak
3-Oct-2007
[7236]
Thanks you all. I will try those suggestions.
Anton
4-Oct-2007
[7237]
Henrik, I did make a fix for center and right aligned fields.
http://anton.wildit.net.au/rebol/gui/demo-field.r
http://anton.wildit.net.au/rebol/gui/demo-area.r
http://anton.wildit.net.au/rebol/gui/demo-info.r
You can work this into your field style if you like.

Note, the patching is quite heavy, but I've done it in a good, modular 
way that I think can't be done much better.
Henrik
5-Oct-2007
[7238]
anton, thanks
james_nak
6-Oct-2007
[7239]
You know when you want to update an area object, if you replace the 
text how do you make the cursor go to the home position? Outside 
of setting the para/scroll, there's some other value hanging around 
(I'm tired of looking for it with anamonitor!)
Gabriele
6-Oct-2007
[7240]
you may need to reset system/view/caret and face/line-info
james_nak
6-Oct-2007
[7241]
Thanks. I thought you would know. You really have this stuff down, 
Gabriele.
Alberto
1-Nov-2007
[7242x3]
Hi all, I want to launch a script from the command line using the 
-i option (to void the installation screen), something like

c:\> rebol.exe -i a-script.r


but the -i option only works if rebol is already installed , if is 
used after an uninstall (rebol -u) the install screen is shown.
is a known problem/bug?  someone known a solution? 
I'm using  view 1.3.2    win xp
ok, I need to play a bit more, the issue  happens just in few cases, 
I wil try to isolate the problem and then I'll be back with a new 
post
so, the issue is not only related to the -i option, but with launch 
function. 


if you start a rebol script from cli with -i option, and then the 
script launches a new process with launch function the  -i flag  
isn't passed to the new process, and the new process wil try to install 
rebol
Gabriele
2-Nov-2007
[7245]
i don't think launch will pass any arguments. you could try using 
call with system/options/boot
btiffin
3-Nov-2007
[7246]
Experts;  What are the implications of removing  on-unfocus  from 
a face's flags block?  It has to do with a login panel firing on 
Enter (only) for the password field with a login button and some 
other fields that can cause an unfocus of the password (which by 
default fires the action...which can be inappropriate).
Anton
4-Nov-2007
[7247]
I think all the implications can be found in  system/view/screen-face/feel 
 (the global event handler).
ReViewer
19-Nov-2007
[7248]
I found this old article here about using user32.dll to control the 
mouse: 
http://www.rebolforces.com/zine/rzine-1-01/#sect6.1.
anybody tried to change mouse cursor with this?
Oldes
20-Nov-2007
[7249]
yes.. what I know, Cyphre has working code for changing cursors... 
in R3 it will be possible without need to use the dll
Henrik
25-Nov-2007
[7250]
Here's a handy-dandy little thing: http://rebol.hmkdesign.dk/vid-resize.r

Needs a bit of polish and some more testing, but it works.
Henrik
26-Nov-2007
[7251]
router went down, sorry. link should be working now.
Graham
26-Nov-2007
[7252]
Is the only way to turn an image! into png with save/png ?
Henrik
26-Nov-2007
[7253]
I believe so.
Graham
26-Nov-2007
[7254x2]
Hope we can fix this in R3.
Ie. have in memory transforms.
Henrik
26-Nov-2007
[7256x2]
ah, yes that would be good for webserving.
made a better demo for vid-resize.r at the same url
Ashley
26-Nov-2007
[7258]
have in memory transforms

 ... note that save accepts a target of type file!, url! or binary! 
 ... so you can always do:

	bin: make binary! 10000
	save/png bin load %test.jpg
	write/binary %test.png bin
Graham
27-Nov-2007
[7259]
good to know how this is done .. I have tried saving to binary! before 
without knowing how to do it!
amacleod
2-Dec-2007
[7260x3]
I'm trying to add data to a drop-down widget, but I'm not able to 
get it to refresh to display the updated data list.
I've probed the /data-list and it shows teh new data. I then "show 
: the widget but no luck.
Also, when I clear fields of a form of which the drop-down is part, 
the item that was picked disappears from the drop-down list (but 
not the /daat-list its self.
Chris
2-Dec-2007
[7263]
;-- does this illustrate your setup?

view layout [
	dd: drop-down 150 "one" "two" "three"
	btn 150 "Add" [
		either tail? skip dd/list-data 3 [
			append dd/list-data ["four" "five"]
			face/text: "Remove" show face
		][
			clear skip dd/list-data 3
			face/text: "Add" show face
		]
	]

 btn 150 "Set" [set-face dd pick dd/list-data random length? dd/list-data]
]
Steeve
3-Dec-2007
[7264x6]
hi guys ! 

i have a strange behaviour  when tracking events in feel/move func 
of my faces. 

I don't detect  events only when i entering or leaving the face (as 
expected).
Instead of that , i detect a flow of move events.

i must precise i don't use VID (where it works well)
I create my own layouts with make func.
!
hi all !
i try to detect move events in a feel/over func.

But i receive a flow of move events in my face instead of only 2 
events  (1 when entering, 1 when leaving).

I precise: 
I did'nt put the option [all-over] in the window.

I don't use VID but i construct my own layout with a serie of make 
face.
!*
!
arf, finally i can see my messages, sorry for the flood
Anton
4-Dec-2007
[7270]
Steeve, show us how you made the feel.

I suspect that you might have made the feel yourself using something 
like:
	feel: make object! [
		over: func [face over offset]
		...
	]

which would be wrong, as the view system is is sensitive to the order 
the words are defined in the feel object. The correct way is to make 
your feel from an existing feel, eg. 
	my-feel: make system/standard/face/feel [ ... ]

This ensures that the four feel functions are defined in the correct 
order in the object.

Making the object yourself, defining the functions out of order, 
explains why OVER sees events that normally appear in a DETECT or 
another function. I remember being quite confused by that.

If you make from another feel you don't have to worry about the order.
Steeve
4-Dec-2007
[7271x2]
thanks Anton, i will test that soon
yeahaaaa ! it works well now, many thanks again Anton
amacleod
5-Dec-2007
[7273x2]
chris, thanks for the help, nut my situation is a little different. 
I'm loading the data from a database. When I update the data base 
I read it again and store it in a word that I use to fill the drop-down 
with the "data"attribute. If I probe the word holding the updated 
database it shows the added data but the drop-down will not show 
the change.
EVen on your example above the drop down did not display "five"? 
I can not even scroll down to see it.  I had to increase the # of 
rows to se it   Bug?
Anton
17-Dec-2007
[7275]
Alan, show us some code. (try keep it small.)