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

World: r3wp

[View] discuss view related issues

Rebolek
1-Jul-2005
[1790]
I'm probably going to write a game basedon it
Pekr
1-Jul-2005
[1791]
Here is fun script from Bo (with help of Anton) - plese add it to 
Desktop demo folder :-) http://www.rebol.org/library/scripts-download/swintro.r
yeksoon
1-Jul-2005
[1792]
does text-list supports multi-column?
[unknown: 5]
1-Jul-2005
[1793]
Allen had mentioned using rate to handle forever loops in action 
blocks but my problem is that i have a while loop that executes a 
lengthy amount of functions before it even loops again.  I almost 
believe I need a multi-threading way of doing this.   I thought about 
it for awhile and think an enhancement would be nice where you can 
for example use launch function for executing additional threads 
but have a memory space for passing data between the threads.  Any 
of the REBOL gurus involved with RT know if something like this is 
capable?
Pekr
1-Jul-2005
[1794x3]
dunno, probably not a bug, but at least a cache headache - imagine 
following scenario. Today I did small script for my friend. I created 
C:\app-name-here directory and put it inside, along with rebol/view. 
I then decided to install View, to get .r association, so that my 
small scripts could be put directly onto Window desktop (I don't 
need yet another desktop - View one, If I can't parametrise it further 
- buttons, removal of rebol.com etc.). So, after installation, I 
filled in network info, saved, and exited view. Then I could see, 
dirs like 'public, 'local 'desktop were created.  So I deleted them, 
to remove additional clutter they caused in my directory. To my surprise, 
View ignores the fact it is already installed, I choosed to not use 
desktop, yet I was brought to desktop once again.
I can understand that I should not probably put cache location into 
my preferred app directory directly, but I wanted to have it self-contained 
- not Rebol scattered around my hd. Sadly, settings for desktop are 
in Desktop directory, so once I delete it, rebol starts to desktop 
once again. Imo we need desktop?: no setting in user.r
After all - wasn't there any such setting in the past?
Izkata
1-Jul-2005
[1797]
desktop: false was in prefs.r in View 1.2.1 (I have 5 versions of 
Rebol saved for some reason...)
Volker
1-Jul-2005
[1798]
desktop: none in user.r could work. would replace 'desktop-func with 
a nop. not tried.
Izkata
1-Jul-2005
[1799x2]
;umm am I using Toggle wrong or is there a glitch in it?  This is 
View 1.3.1..


view layout [Tog1: toggle {First} Tog2: toggle {Second} btn {Pop} 
[Tog1/Data: Tog2/Data: false show [Tog1 Tog2]]]
oops I started looking for more and toggle and forgot to say the 
problem  XD


Pop is just supposed to.. well.. pop the buttons up, but it won't...
Gabriele
2-Jul-2005
[1801]
use face/state, not face/data (all styles should use /data... but 
they don't...)
Izkata
2-Jul-2005
[1802]
Thank you  =^)
MikeL
4-Jul-2005
[1803]
Hi Gabriele, Is there a possibility of putting aliases put in place 
so View has that consistency across all the styles?  I think we also 
have /value and for a text face /text when I think it could always 
be /data
Gabriele
4-Jul-2005
[1804]
set-face and get-face are the answer to this problem. accessors still 
need to be written for some styles though.
Anton
4-Jul-2005
[1805]
A puzzle this brings up; where is the 'value referred to by this 
function
>> layout [text-list with [print mold :update]]
func [/local item value][
    sld/redrag lc / max 1 length? data
    if item: find data picked/1 [
        sld/data: min 1 (index? item) / (max 1 lc)
        sn: max 0 to-integer sld/data * ((1 + length? data) - lc)
    ] [
        sld/value: 0.0    ; <----------- ?
        pane/offset: 0x0
    ]
    self
]
>> layout [scroller with [?? value]]
** Script Error: value has no value
** Where: ??
** Near: mold name: get name
Gabriele
4-Jul-2005
[1806]
that's face/sld/value, not face/value
Anton
4-Jul-2005
[1807]
yes, I know.
Gabriele
4-Jul-2005
[1808]
ah, also, you're comparing text-list and scroller. mmm.
Anton
4-Jul-2005
[1809x2]
sld is a scroller
but if you do:
>> find mold svv/vid-styles/scroller "value:"
== none
Gabriele
4-Jul-2005
[1811x2]
that's most likely a bug. should be sld/data
i think /value is the remains of a very old scroller style :)
Anton
4-Jul-2005
[1813x2]
Yes, If you examine
 write clipboard:// mold svv/vid-styles/text-list

then you cannot see any reference to "value:"  (ie. the text-list's 
scroller is not extended with the 'value facet either).
I agree. So maybe the text-list/update function is not used much 
any more ?
Gabriele
4-Jul-2005
[1815x2]
submit to rambo (if not already there)
well, /update should be used by users. maybe noone found the bug 
so far.
Anton
4-Jul-2005
[1817x2]
OK.
I'm too tired right now to do a more full analysis unfortunately.. 
but I'll submit at least.
Gabriele
4-Jul-2005
[1819]
yes, just a reminder about this problem. replacing that with data 
will fix it.
Anton
4-Jul-2005
[1820x2]
layout [t: text-list]
t/update   ; <--- what is strange is this doesn't cause any error
t/sld/value
;** Script Error: Invalid path value: value
;** Near: t/sld/value
anyway...
Gabriele
4-Jul-2005
[1822]
hehe, it's not strange. but, i had to look at it very closely to 
see why :)
Anton
4-Jul-2005
[1823]
oh.. :-/ ok.. c'mon brain...
Gabriele
4-Jul-2005
[1824]
and, this explains why noone noticed it so far.
Anton
4-Jul-2005
[1825]
(submitted ticket)
Gabriele
4-Jul-2005
[1826x2]
there's an if instead of an 'either too.
so looks like someone changed that code while being a bit distracted 
:)
Anton
4-Jul-2005
[1828x2]
oh my god ! I just fixed a bug of mine like that earlier today. :) 
It survived a couple of days before I noticed it.
you might want to update the ticket with that bug fix too..
Gabriele
4-Jul-2005
[1830]
actually i changed my local version of teh code already, so i'm sure 
not to forget about this. that pane/offset: 0x0 seems pointless too, 
but i'll need to investigate.
Volker
4-Jul-2005
[1831]
if you look closer at the code, you also note that there is an 'if 
instead of an 'either, so its death code. IIRC update was somewhat 
broken, maybe not cleanly fixed?
Geomol
6-Jul-2005
[1832]
View 1.3 bug!?:

>> img: to-image layout [slider with [data: 0.5]]
>> view layout [image img]


I see a black square at the top of the slider. Can others confirm 
this?
Gregg
6-Jul-2005
[1833]
Confirmed. I think something similar (a problem rendering without 
diplsaying) came up recently.
Geomol
6-Jul-2005
[1834]
I've made a quick list of the VID-styles found in REBOL/View 1.3. 
Some are explained with a definition, some by an image showing the 
style in use. The list can be found here:
http://home.tiscali.dk/john.niclasen/
Anton
6-Jul-2005
[1835x5]
Geomol, I think the problem is because the dragger is only correctly 
positioned in feel/redraw. See the feel:
	layout [slider with [?? feel]]

This means that the dragger is only set in the correct position when 
there is a redraw event, and the face must be viewed in order to 
receive events. The initial position ( layout [slider with [?? init]] 
) does not take into account that DATA may be non-zero.
This could be fixed by modifying INIT, I am pretty sure.
Indeed:
view layout [image to-image layout [slider with [append init [feel/redraw 
self 'draw none] data: 0.5]]]
OK, submitted this bug and fix to RAMBO.