[ALLY] Strange reaction in Rebol/View 1 for Linux
[1/7] from: etienne::alaurent::free::fr at: 18-Feb-2001 4:53
Hi,
I found a strange reaction in Rebol/View 1 for Linux :
The goal of the next script is to change the text of a text widget.
-------------------------------------------------
REBOL []
interrogation: func [titre [string!] txt-interro [string!] /local pass-l ok][
if none? :pass-l [
pass-l: layout[
origin 10x10
backdrop effect [gradient -1x-1 50.80.120 70.130.180]
across
title red :titre bold return
text 240 :txt-interro bold yellow return
button "YES" [hide-popup]
button "NO" [ok: no hide-popup]
]
]
ok: yes
inform pass-l
return ok
]
panneau2: func [][
out: layout [
origin 10x10
backdrop effect [gradient -1x-1 50.80.120 70.130.180]
across
t: text 100x25 "Example" return
button "test" [
either interrogation "The test" "Do you want test it ?" [
t/text: copy "Test ok"
][
t/text: copy "Test not ok"
]
show t
]
]
inform out
]
panneau: layout [
origin 10x10
backdrop effect [gradient -1x-1 50.80.120 70.130.180]
button "Go" [panneau2]
button "Quit" [quit]
]
view panneau
-------------------------------------------------
In the previous version of Rebol/View (beta), it's seems to be ok.
But in the new version (Rebol/View 1), I can't change the text.
Why ?
Cheers
Etienne
[2/7] from: gjones05:mail:orion at: 18-Apr-2001 7:53
From: "Etienne ALAURENT"
<snip>
> It's works fine for few times, and, after, I can't do anything. All
widgets and
> widows are freezed.
>
> The only thing I can do is to shutdown the app.
>
> So, I don't understand why (all this worked very well with the Rebol/View
beta
> version on Linux box). And I spend much, much, much time to know where is
the
> problem, and I can't (now) solve it.
>
> Cheers
>
> Etienne
I've run into a few of these types of things, also. The freezing of the
interpreter puzzles me, because I don't recall that happening in the Beta
version. I know some of the representation has changed and will take time
to learn, but it is frustrating all the same, especially when I don't know
exactly what to look at first.
I guess I played a little too seriously with the beta! (one project was
about 1100 lines)
Best of luck.
--Scott Jones
[3/7] from: etienne:alaurent:free at: 18-Apr-2001 14:00
Hi,
Thank you, it does indeed work.
But, I'm developping an app with win95 skin (from dockimbel) and the dropdown
widget (from Allen Kamp). I use the dropdown widget under a tabpanel. When I
select an dropdown option, I want to update some other widgets like check, box,
...
It's works fine for few times, and, after, I can't do anything. All widgets and
widows are freezed.
The only thing I can do is to shutdown the app.
So, I don't understand why (all this worked very well with the Rebol/View beta
version on Linux box). And I spend much, much, much time to know where is the
problem, and I can't (now) solve it.
Cheers
Etienne
[4/7] from: etienne:alaurent:free at: 19-Apr-2001 0:11
Hi, Scott
I understand what you want to say. Like you, I played too seriously with the
beta : my project is about 3000 lines with multi-windowing, and 3 scripts
running concurrently (server, clients, proxy).
And my frustration is huge !!!
but "LA FORCE EST EN MOI !!!"
See you soon
Cheers
Etienne
[5/7] from: etienne:alaurent:free at: 19-Apr-2001 0:21
>Can you send me a copy to test please, it is possible that either Doc or I
>are treading on each others global toes or the version of Doc's code you are
>using hasn't been updated for the changes in do-events.
>
>Cheers,
>
>Allen K
Hi, Allen,
That's ok, I will send you a copy in your private e-mail. I'm must say I am a
novice in Rebol/View (I have been practicing since 3 months).
Cheers
Etienne
[6/7] from: sterling:rebol at: 17-Apr-2001 19:19
Your problem is that you are calling INFORM from within another
INFORM. This is not such a safe thing to do.
If you just change "inform out" to "view/new out" it works fine except
that the second pane is not modal. You might also get around the
problem by doing a hide-popup before doing "interrogation" and then
re-popping the "out" layout when the interrogation popup exits. This
would make only one popup on the screen at a time.
Bottom line: don't make a modal dialog pop up a modal dialog... it's
probably not the most logical concept.
Sterling
[7/7] from: allenk:powerup:au at: 19-Apr-2001 23:59
----- Original Message -----
From: "Etienne ALAURENT" <[etienne--alaurent--free--fr]>
To: <[ally-list--rebol--com]>
Sent: Wednesday, April 18, 2001 10:00 PM
Subject: [ALLY] Re: Strange reaction in Rebol/View 1 for Linux
> Hi,
>
> Thank you, it does indeed work.
>
> But, I'm developping an app with win95 skin (from dockimbel) and the
dropdown
> widget (from Allen Kamp). I use the dropdown widget under a tabpanel. When
I
> select an dropdown option, I want to update some other widgets like check,
box,
> ...
>
> It's works fine for few times, and, after, I can't do anything. All
widgets and
> widows are freezed.
Can you send me a copy to test please, it is possible that either Doc or I
are treading on each others global toes or the version of Doc's code you are
using hasn't been updated for the changes in do-events.
Cheers,
Allen K