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

World: r3wp

[View] discuss view related issues

Nicolas
7-Dec-2008
[8341x2]
stylize/master [

 matrix-area: area with [colors: [0.0.0  0.0.0] font/color: 150.255.150]
] this makes all font/colors 150.255.150
does anyone know why?
Steeve
7-Dec-2008
[8343]
matrix-area: area with [colors: [0.0.0  0.0.0] font: make font [color: 
150.255.150]]
Nicolas
7-Dec-2008
[8344]
thanks :)
Anton
8-Dec-2008
[8345x2]
or
stylize/master [

 matrix-area: area with [colors: [0.0.0 0.0.0]] font [color: 150.255.150]
]
The reason is the FONT object is shared amongst several styles.
	>> svv/vid-styles/area/font = svv/vid-styles/field/font
	== true
and AREA INIT does nothing to clone it
	>> print mold svv/vid-styles/area/init
	[
	    if color [colors: reduce [color colors/2]]

     if not string? text [text: either text [form text] [copy ""]]
	    if not flag-face? self hide [data: text] para: make para []
	]

(no mention of FONT). So after instanciation, the font is still the 
same.
	view layout [my-area: area]
	my-area/font = system/view/vid/vid-styles/area/font 
	;== true
Brock
8-Dec-2008
[8347]
and incase it's not obvious svv = s v v
Henrik
8-Dec-2008
[8348]
(which is system/view/vid)
Gregg
9-Dec-2008
[8349]
James, I did one side of bitmap support for clipboard://, and there 
are other ways around it, depending on what you need to do. E.g., 
imagemagick.
james_nak
9-Dec-2008
[8350]
Gregg, what I wanted to do was simply take what was in the clipboard:// 
(via a printscreen) and save it as a png or bmp, thereby skipping 
the monotonous paste into Paint and save.
BrianH
9-Dec-2008
[8351x2]
Try Lightscreen: http://lightscreen.sourceforge.net/
There's a portable app version too.
Gregg
9-Dec-2008
[8353x2]
Ah, I did the writing part, and then used my send-keys dialect to 
pump keystrokes to other apps to automate the other side. In my case, 
it was putting things into a NetMeeting whiteboard.
You could easily do the same thing with Paint though.
ChristianE
10-Dec-2008
[8355]
James, you might try http://www.rebol.org/view-script.r?script=paste-clipboard.r
to retrieve a bitmap from the clipboard in rebol image! format. Works 
with PrintScreen on my keyboard, ymmv ;-) If you have problems, please 
tell me so.
Maxim
10-Dec-2008
[8356x2]
wow!
it works on my vista system
ChristianE
10-Dec-2008
[8358]
Good to know, Maxim. I've only ran it on XP so far.
james_nak
10-Dec-2008
[8359x2]
Thanks Christian. I will try it.
Christian, that is sweet! Works like a charm.
ChristianE
10-Dec-2008
[8361]
That's cool. FYI, I've added experimental ability to write the image! 
datatype to clipboard, too.

Note that the script's is on rebol.org as http://www.rebol.org/view-script.r?script=clipboard.r
now (the previous name got in the way).
It exposes two functions READ-CLIP and WRITE-CLIP now.
[unknown: 5]
11-Dec-2008
[8362x2]
Anyone here use AVG Virus software.  They really have nice tabbed 
panels in the latest version.  We need a decision that can looked 
nice as that interface.
decision = design
BrianH
11-Dec-2008
[8364]
I use it - a very web-like approach. The tabs-on-left style works 
well on widescreen displays.
Henrik
11-Dec-2008
[8365]
screenshot?
[unknown: 5]
11-Dec-2008
[8366x2]
http://www.tretbase.com/downloads/AVG.jpg
The tabs role vertically.
Henrik
11-Dec-2008
[8368]
yes, I see
Nicolas
12-Dec-2008
[8369x2]
does anyone know how to change the text-list highlight color?
I can change it with system/view/vid/vid-colors/field-select. But 
I can't change the font color at the same time.
Henrik
12-Dec-2008
[8371]
text-list is an iterated face, so you probably have to study how 
it paints each row.
Nicolas
14-Dec-2008
[8372]
is a pane a face?
Geomol
14-Dec-2008
[8373x2]
I see a pane as a block of faces. But the pane is in a graphical 
object, which represents a face, so I guess, you can also say, that 
a pane is a face.
Try this in the REBOL console:

b: make face [size: 100x100 color: red pane: []]
b1: make face [size: 20x20 color: green offset: 20x20]
b2: make face [size: 20x20 color: blue offset: 60x60]
append b/pane b1
append b/pane b2
view b


To close the window, click in REBOL console, press <Esc> and type:
unview
Henrik
14-Dec-2008
[8375]
A pane can both be a face and a block of faces. A layout created 
with LAYOUT is a face. A window is also a face. A face is an object. 
A face can hold another face or a block of faces in PANE.
Anton
14-Dec-2008
[8376]
Pane as face:

b: make face [size: 100x100 color: red pane: []]
b1: make face [size: 20x20 color: green offset: 20x20]
b/pane: b1
view b
amacleod
17-Dec-2008
[8377x2]
I get an error...
 clip: read-clip
** Script Error: h.desktop-window has no value
** Where: read-clip
** Near: require h.desktop-dc: get-dc h.desktop-window
require
For clipboard.r script
ChristianE
17-Dec-2008
[8379]
Have you tried it from console or via running a script? Does your 
script open a window?
amacleod
17-Dec-2008
[8380]
That's from the console.
ChristianE
17-Dec-2008
[8381]
In a fresh console, does


>> do http://www.rebol.org/download-a-script.r?script-name=clipboard.r
write clipboard:// "Test" read-clip
connecting to: www.rebol.org
Script: "Clipboard" (10-Dec-2008)
== "Test"

work? Which Rebol version do you use?
amacleod
17-Dec-2008
[8382x4]
REBOL/View 2.7.6.3.1 14-Mar-2008
Just to be sure I'm using it right...
 do %clipboard.r
>> clip: read-clip
** Script Error: h.desktop-window has no value
** Where: read-clip
** Near: require h.desktop-dc: get-dc h.desktop-window
require

Write-clip works
read-clip with text works
can't read-clip on bitmaps
Graham
17-Dec-2008
[8386]
it never worked with bitmaps
ChristianE
17-Dec-2008
[8387x2]
Doh. Silly typo introduced by refactoring. Updated script. Works 
with bitmaps again, now.
Hopefully, for you, too now, that is.
amacleod
17-Dec-2008
[8389]
Nope...same error!
Maxim
17-Dec-2008
[8390]
rebol does not use the vista default browser... can anyone tell me 
what I must do for it to work?


even altme is using explorer, although every thing is set to firefox... 
even mime types.

it works everywhere except in rebol-related apps  :-(