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

World: r3wp

[View] discuss view related issues

Henrik
8-Sep-2011
[10597]
Endo, I solved this in the VID Extension Kit.
Endo
8-Sep-2011
[10598]
Henrik: Thank you! I'll play VIDExt more! Is it stable enough to 
use in a production do you think?
Henrik
8-Sep-2011
[10599]
I use it in a production environment, but it is continually improving, 
though I'm taking a break from it right now.
Endo
8-Sep-2011
[10600]
Ok. Thanks a lot.
Endo
16-Sep-2011
[10601]
I wrote a function to get a copy of a wrapped text in a face object. 
Please have a look at it. If you have a better idea please let me 
know:
http://rebolforum.com/index.cgi?f=printtopic&topicnumber=46


it uses offset-to-carret to find the line positions and inserts a 
newline to that position in the text.
Henrik
16-Sep-2011
[10602]
Endo, that looks interesting. Do you think it could be used to fix 
the box with "Wednesday" in it:

http://rebol.hmkdesign.dk/files/vid-postscript2.png
Endo
18-Sep-2011
[10603]
Henrik, I wrote another version of the function which is a bit better. 
It could help about the bug you told.

The only problem is it it makes a copy of the given text. So it is 
not the same text anymore.
http://rebolforum.com/index.cgi?f=printtopic&topicnumber=46
Henrik
18-Sep-2011
[10604]
I don't think copying the text is much of a problem.
Endo
18-Sep-2011
[10605]
I see, so you can try this function.
Henrik
18-Sep-2011
[10606]
thanks
Endo
19-Sep-2011
[10607]
Can anyone confirm this is a bug in View (VID), so I will post it 
to RAMBO:

gui: layout [f: h1 100 "test"]
f/text: does [probe "testing"]
view gui


;click on the text, drag --> crash rebol.exe. Tested on XP Pro SP3. 
View 2.7.8.3.1.1

;function get called when the text clicked, crash happens when dragging.
Henrik
19-Sep-2011
[10608]
yes, it crashes. I'm not sure if you can pass functions to face/text.
Endo
19-Sep-2011
[10609x2]
passing function to face/text is not a good idea, it's called (read) 
several times when an event occured. But crash problem may be fixed.
posted to RAMBO as a low importance bug.
Sunanda
19-Sep-2011
[10611]
Confirmed on Windows Vista -- I see "Testing" printed a few times 
and then
      Problem Event Name:	APPCRASH
      Application Name:	rebol.exe
      Application Version:	2.7.6.3
      Exception Code:	c0000005
      Exception Offset:	0002420b
      ....
Izkata
19-Sep-2011
[10612]
2.7.6 on Linux, it prints "testing" a few times from the click event, 
then also segfaults on the drag


I'm guessing it has to do with how h1 and other text elements will 
try to highlight the text when you drag the mouse over it, but a 
function isn't really a series! value
Endo
20-Sep-2011
[10613]
I think so too, when trace/function true, I saw offset-to-caret and 
caret-to-offset calls, it crashes just after the caret-to-offset 
call.
And also if I change h1 to label, it doesn't crash anymore.
Endo
9-Oct-2011
[10614x2]
CHOICE style performs a SHOW on top level window when clicked I think, 
and leads problems:

view layout [
	choice "a" "b" "c" [b/rate: 1] ;there is no "show b"
	b: box red rate none
	feel [engage: func [f a e] [if a = 'time [print now]]]
]

time events get fired without "show b"
I think the problem is in SHOW-POPUP function used in CHOOSE function.
amacleod
16-Oct-2011
[10616x2]
Is there a way to scale an image using effect [draw [image pic]] 
without giving coordinates as in effect [ draw [image pic 0x0 200x200]]


I believe the coordinates are for location on in the frame and I 
just want it rendered inline with the rest of the vid objects
Got it...I had to set the vid image face to teh size I wanted first 
and then match it in the draw coordinates
Geomol
16-Oct-2011
[10618]
You can also use scale:

view layout [box effect [draw [scale 2.0 2.0 image logo.gif]]]
amacleod
16-Oct-2011
[10619]
Thats what I was looking for! I tried scale but must have used it 
wrong. Thanks
Duke
18-Oct-2011
[10620]
I need some help getting View to work properly!! Anybody listening 
on this Group??
GrahamC
18-Oct-2011
[10621]
What OS and version of view ?
Duke
18-Oct-2011
[10622]
I'm running the latest Rebcore and Rebview on an Xubuntu box. My 
issue is that when I click on the REBOL folder icon at the top left 
of the "sidebar", I get a message saying something like: "Cannot 
open location http://www.rebol.com/index.r.Any ideas??
GrahamC
18-Oct-2011
[10623x2]
Yes, that file no longer exists
It's a maintenance issue that Rebol Tech needs to solve
Endo
18-Oct-2011
[10625]
You can ignore that message and use View, at least you can use the 
console.
Pekr
18-Oct-2011
[10626x2]
Start desktop by typing "desktop" and hitting enter in the console. 
Go to the user section, and check-off the chekc-box "Auto connect 
on startup" and "Open desktop on startup". That way, your REBOL/View 
will always launch in console mode, which is what you want imo anyway 
:-)
It is really a not a good situation, that Carl can't fix that. I 
wrote an email to him on 7.9., asking him to start R3 Chat server, 
with no reply on his side. This is really not funny anymore. How 
can he assume that anoyne will trust him with any future project? 
Everybody of us is overloaded with work, but just don't tell me you 
can't find 10 minutes to fix basic issues?
Duke
18-Oct-2011
[10628x3]
@GrahamC @Endo @ Pekr
Sorry!! hit the "Enter" key by mistake. Thanks all you guys for your 
input!  It is too bad that the a lot of the more publically visible 
aspects of REBOL are suffering from lack of maintenance. It does 
not make for a good "First impression" IMHO. Maybe Carl just doesn't 
give a shit anymore????
update on the REBOL folder icon issue -- All of a sudden it worked 
as expected!!  Just like that!! I'll try shutting down VIEW and see 
what happens.
Endo
18-Oct-2011
[10631]
Nope I just tried, and it doesn't work. Try http://www.rebol.com/index.r
on your browser you'll see a 404 page.
Duke
18-Oct-2011
[10632]
I agree! I just brought up the "desktop" from the console again, 
and at the bottom left I see "Local" - so I'm NOT connected to rebol.com. 
What do you think? Should I hang in there and try learning REBOL 
again, or move on?
Endo
18-Oct-2011
[10633x4]
Well, I'm using REBOL everyday, and I use it in my work, some of 
my customers are really big. R2 is stable enough.

It is definitely worth to learn REBOL. It just, its situation could 
be much more better than this.
I of course use other programming laguages for my work. REBOL is 
mostly useful as a helper for me.

I use it to generate data, parse big files to extract something, 
automated FTP/HTTP/EMAIL jobs, small GUI applications.
It is really boring to work with other languages after you learn 
REBOL, even if you are not as good as REBOL gurus. It is so useful 
for general use.
Cheyenne Web Server is also a very good product. Take a look at it.
Duke
18-Oct-2011
[10637]
I see. I'm NOT new to Forthish languages, although I'm not very fluent 
in any of them. So REBOL appeals that way. I'm currently learning 
newLISP and so far it seems pretty good to me. I heard about Cheyenne 
- need to have a look. I use Hiawatha right now.
Henrik
18-Oct-2011
[10638]
so I'm NOT connected to rebol.com. What do you think? Should I hang 
in there and try learning REBOL again, or move on?

 - if you are worried about a missing file on rebol.com affecting 
 your ability to learn REBOL, it's probably better to move on and 
 come back if/when there is more activity.
Duke
18-Oct-2011
[10639]
ha-ha-ha .... WTF!!  You mis-read my question completely!! I really 
don't give a shit about the missing file, bud. I'm concerned that 
maybe REBOL will be orphaned shortly, if it hasn't already.
Henrik
18-Oct-2011
[10640]
That concern is on many people's minds, but the question is whether 
you will let that stop you. It does for example not stop me, being 
in a full time job working with REBOL.
Duke
18-Oct-2011
[10641]
Well there you go!!! That's like comparing aplles and oranges, right! 
 You ARE fluent in REBOL. No worries for there you! I'm NEW to REBOL 
- so I have to make a decision .....
Henrik
18-Oct-2011
[10642]
True, but I'm not fluent in it, because Carl, the original creator 
of REBOL, was around. I'm fluent in it, because there are many extremely 
talented and helpful users in here, who know just about every single 
advantage and limitation in REBOL and know what type of programs 
can be developed in it.


Should Carl decide to abandon REBOL, there is a legacy in the shape 
of Orca, Red and Topaz and I'm sure there would be even more focus 
on these efforts by then. I stick around, not just because I have 
built my development infrastructure around it, but because I dearly 
love the language and I can be much more productive in it than anything 
else, I've tried, and that won't go away for a long time for me, 
because there is no indication to me that there will be anything 
around anytime soon, that will surpass it.
BrianH
18-Oct-2011
[10643]
Also, while Carl was the original creator or REBOL, he isn't the 
only creator. A lot of the work was delegated or done for hire by 
others, and (especially for recent releases) most of those others 
are still here to answer questions and help people.
Duke
18-Oct-2011
[10644]
@Henrik @BrianH -- all excellent points, guys!! Thanks!! I'm going 
to give it another shot.
Which group here is best suited for general noob questions?
Henrik
18-Oct-2011
[10645]
Check out the "I'm new" and "Rebol School" groups.
Duke
18-Oct-2011
[10646]
Thanks ...