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

World: r3wp

[View] discuss view related issues

Anton
20-Aug-2008
[8020]
amacleod, do you mean adding a TEXT like this:
	scroll-panel [
		text "hello"
	]
and clicking on the text?

The TEXT gains the focus (and can be selected and copied etc.), but 
since the scroll-panel no longer has the focus it doesn't get arrow 
keys etc.
You could make the TEXT inactive by setting its FEEL to none:
	scroll-panel [
		text "hello" feel none
	]

or you could modify its feel to route particular keys such as page-up/page-down 
and arrow keys to the scroll-panel it's in.
	text "hello" feel [
		append last last second :engage bind [
			if find [up down page-up page-down] event/key [

    face/parent-face/parent-face/parent-face/feel/engage face/parent-face/parent-face/parent-face 
    act event
			]
		] first find second :engage 'act
	]
Not particularly easy, but there you go.

I have thought about this issue before, but didn't come up with a 
clear vision of how to handle it properly yet, I think.
amacleod
20-Aug-2008
[8021]
Anton, yes that is the issue...


If you add a "feel none" you can no longer highlight and save to 
clipboard which is what I need.

Your more elaborate 'feel' provides the correct action but is there 
a way to make this global or would I need to attach this feel to 
each set of text in a panel?
Anton
20-Aug-2008
[8022x2]
You could easily restylize text, in a single layout spec, like so:
	layout [
		style text text feel [
			; (feel definition as above..)
		]
	]
or for all subsequent layouts:
	stylize/master [
		text: text feel [	
			; (feel definition as above)
		]
	]
Note that the feel I've provided above is hardly a general solution. 
It's likely to work only with my scroll-panel as it depends on knowledge 
of scroll-panel internals to do its work. It's a quick hack.
amacleod
20-Aug-2008
[8024]
That's what I seem to be all about...quick hacks.

Thanks for the help.
Janeks
23-Aug-2008
[8025x2]
I downloaded rebview276 for linux.
I downloaded rebview (rebview-fedx86.tar.gz) for linux. Simply extracted 
it in desktop and launched with double click. It worked well some 
first times, but then it it simply does not launches - double click 
on executable - nothing happens.
Henrik
23-Aug-2008
[8027]
what happens if you try to launch it from console?
Janeks
23-Aug-2008
[8028x2]
[[root-:-localhost] Desktop]# cd rebol-276
[[root-:-localhost] rebol-276]# dir
rebview
[[root-:-localhost] rebol-276]# rebview
bash: rebview: command not found
was it right way to launch an app in linux?
kcollins
23-Aug-2008
[8030]
You need to type "./rebview" (unless you have the current directory 
in your path)
Janeks
23-Aug-2008
[8031x5]
I am trying accustom The Linux. Aha - works now
But why it worked with double click before but not now?
After quiting linux console shows:
Se
Segmentation fault
kcollins
23-Aug-2008
[8036x5]
When you double click the file icon on the Desktop, Linux knows exactly 
what file you want to run. When you try to run something from the 
command line, Linux first looks to see if it is a command built in 
to the shell (bash), and then looks for it in each directory in your 
PATH environment variable. Typically, the current directory - "." 
- is not included in the PATH when you install Linux.
You can also specify the location of an executable by an absolute 
or relative path. An absolute path starts at the root, such as /home/kcollins/rebview. 
A relative path is in relation to the current directory. So "./rebview" 
tells the shell to find the executable in the current directory.
To see what your PATH is set to, run "env | grep PATH".
Do you have a 32 bit or 64 bit CPU?
I believe REBOL/View was compiled for 32 bit Linux and may have some 
problems with 64 bit distros.
Janeks
23-Aug-2008
[8041]
I have 64 bit
kcollins
23-Aug-2008
[8042]
I suspect that explains the segmentation fault.
Janeks
23-Aug-2008
[8043x2]
aha
Is there any way to compile rebol for 64bit linux?
kcollins
23-Aug-2008
[8045x4]
Recompile, no. The source code is not available.
However, several months ago I saw something about someone hacking 
it to work on 64 bit Linux.
I believe the Linux version of REBOL uses a libc6 shared library 
by accessing a specific file at a specific location. By putting a 
64 bit version of that file there, they managed to get it to work. 
I may not have the details quite right, but it was something like 
that.
I just tried to google for that discussion, but without success.
Janeks
23-Aug-2008
[8049]
ok
PeterWood
23-Aug-2008
[8050]
These may help:

http://www.rebol.org/cgi-bin/cgiwrap/rebol/ml-topic-detail.r?l=0&topic={308227A880B92F1C4D34586C4B0C4BDEDFF1A8DA}
Anton
24-Aug-2008
[8051]
Janeks, see linux group.
amacleod
26-Aug-2008
[8052]
When opening another  window from within a rebol app via view/new 
is there a way to insure the new window stays on top until closed 
(and perhaps keeps focus so the parent window can not be manipulated?)
Henrik
26-Aug-2008
[8053]
amacleod: use INFORM and HIDE-POPUP instead of VIEW and UNVIEW.
amacleod
26-Aug-2008
[8054]
can you use the same options available to view?
Henrik
26-Aug-2008
[8055]
they are almost the same
amacleod
26-Aug-2008
[8056]
I'm looking to hide the title bar. But I do not see how.
Henrik
26-Aug-2008
[8057x2]
but you mustn't use INFORM and UNVIEW. that will lock View up.
not sure that is possible out of the box
amacleod
26-Aug-2008
[8059]
thanks.

I thought I saw something the other day talking about keeping a window 
on top but that might have been a face on top...
Graham
26-Aug-2008
[8060]
Rebgui does that with the /parent refinement.  I think you can use 
options to remove the titlebar
amacleod
26-Aug-2008
[8061x3]
inform and show-popup do not seem to have an options refinement.
view has /parent refinement
sorry...
layout has it
Graham
26-Aug-2008
[8064x2]
don't use inform ... that will give you a modal window
no-title and no-border are options for view
amacleod
26-Aug-2008
[8066]
I want it to be modal
Graham
26-Aug-2008
[8067x3]
try this then
do [face/options: [no-title no-border]
]