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

World: r3wp

[View] discuss view related issues

Robert
3-Jun-2010
[9987]
Shouldn't this be catched by the GC?
Cyphre
3-Jun-2010
[9988]
IMO Looks more like a View(text related) bug.
Henrik
3-Jun-2010
[9989x2]
well, the face that SHOW is trying to show remains in memory, possibly 
with a reference to a parent-face that no longer exists. what exactly 
makes SHOW go boom, I'm not sure.
fix is done by unfocusing before destroying the pane. interesting 
bug.
Endo
22-Jun-2010
[9991]
There is a strange auto-complete (tab key) problem on View 2.7.7 
console,
connection: context [a: 1 b: 2]
test: context [a: 1 b: 2]
when you type conn then press tab key it writes just "connected?"
but its ok for test. no auto complete for "usage" function also.
Henrik
22-Jun-2010
[9992]
I've found another tab-complete problem where an error is produced. 
Only seen it when running large apps though.
Endo
22-Jun-2010
[9993]
After loading RebGUI tab-complete gives error for undefined values 
also.
Anton
22-Jun-2010
[9994]
Endo, I see the error in View 2.7.6.4.2 as well.
>> connection: 1
then I type "connect" and press tab --> "connected?"
Andreas
22-Jun-2010
[9995]
there's a built-in function "connected?" which lexicographically 
sorts before "connection", so it's completed first
Anton
23-Jun-2010
[9996]
That's the bug. It's supposed to stop the completion after the last 
letter common to all the possibilities.
Izkata
23-Jun-2010
[9997]
And Rebol does that - try it with "con" and hit tab twice.  The bug 
is omitting user-defined words..
Maxim
23-Jun-2010
[9998x2]
possibly only does defined while in the console
nope, it seems only *some* words starting with 'CON  are omited. 
  'CONTENT is also ignored in auto-complete... very strange
Izkata
23-Jun-2010
[10000]
Clean console?
>> ? content
No information on content (word has no value)
Maxim
23-Jun-2010
[10001]
possibly related to binding order on app startup... the words 'connect 
and 'Content are already defined in system/words when you boot up 
REBOL, but they are unset!

the auto-completion doesn't bring up values which are unset!


but its strange that defining them doesn't tell the auto-completion 
to use their "current" value, especially since we are operating in 
the global context.
Anton
26-Jun-2010
[10002]
It's not the fact that it's a user-defined word. It must be something 
else. It looks to me like it's because the word 'Connection (with 
capital 'C') already exists in system/words on startup. Defining 
'connection in the global context doesn't change the capitalisation 
on the existing symbol. So I think the completion function is case-sensitive 
Try in the console:
>> Abacus: 1
>> abalone: 2
>> aba
and press Tab Tab.
Maxim
28-Jun-2010
[10003]
hey I think you got it.
eFishAnt
14-Jul-2010
[10004x2]
How do I set the font of an area to Courier New ???
area with [font [ "Courier New" font-name font-courier]]  ;something 
like this?
Maxim
14-Jul-2010
[10006]
area font [name: "Courier New"]
eFishAnt
14-Jul-2010
[10007]
thanks!
Izkata
15-Jul-2010
[10008x2]
Was the 'vectorial argument for text in the draw dialect removed, 
or broken?

It works fine in 2.7.6, but in 2.7.7 it causes rebol to segfault. 
 (linux)
Also, I thought there was a Draw group, but no longer see it.  If 
it was made private, can I be re-added?
Sunanda
15-Jul-2010
[10010]
There is no private grouop for Draw (unless it has an obscure name 
that I do not recognise).
Perhaps time to start a Draw group?
Graham
15-Jul-2010
[10011]
file a bug report for linux
Izkata
15-Jul-2010
[10012]
Um, where?
Maxim
15-Jul-2010
[10013]
it works on windows for me.
Graham
15-Jul-2010
[10014]
R2 bugs are still filed on rebol.net
Gabriele
16-Jul-2010
[10015]
i think that 2.7.7 crashes for most DRAW commands on Linux. at this 
point we have enough reports, it's worth making a ticket.
TomBon
16-Jul-2010
[10016]
is there a programmtically solution to 're-center' the toplevel-face 
on the os-desktop after a face reseize?
Henrik
16-Jul-2010
[10017]
you can add an event function to the window and trigger it on event/type 
= 'resize and then move the window according to its current size 
versus system/view/screen-size (or some such)
TomBon
16-Jul-2010
[10018x2]
yes, nice idea henrik. this way I don't have to take care for every 
resize. thx... (so the path 'system/view/screen-size' looks don't 
exists, will check)
just found it -> system/view/screen-face/size
Henrik
16-Jul-2010
[10020]
couldn't remember, so was betting you could find it yourself :-)
TomBon
16-Jul-2010
[10021]
thx henrik ;-)
Henrik
16-Jul-2010
[10022]
remember to use remove-event-func with the function again, when the 
window closes, otherwise amusing (depending on your mood) things 
happen.
Anton
16-Jul-2010
[10023]
There is an AGG group, but there may be cause for a new "Draw dialect" 
group.
TomBon
16-Jul-2010
[10024]
how to detect  - which face - is envoking an event within a global 
insert-event-func?
Henrik
16-Jul-2010
[10025]
do you want the face or the window?
TomBon
16-Jul-2010
[10026x3]
window
so I have to filter the correct event (resize) and object (the window/face) 
to calculate the new pos on the desktop.
something like this...

insert-event-func 	[
    switch event/type [
        key         	[]  
        time        	[]
        close       	[]  
        offset      	[]  
        resize      	[
		switch event/face [
			X [recalculate pos for face x]
			...
			...
		]
	]  
             scroll-line 	[]  
             scroll-page 	[]  
	up 		[]  
	move 		[] 
	down 		[]  
	active 		[]  
	inactive 	[]  
	alt-down	[]  
	alt-up		[]   
	minimize	[]  
	maximize	[]  
    ]
    event
]
Henrik
16-Jul-2010
[10029]
the window face name usually works, if you differentiate the names 
of the windows.
TomBon
16-Jul-2010
[10030]
??
Henrik
16-Jul-2010
[10031]
try probing face/text and see if it matches the window name
Maxim
16-Jul-2010
[10032]
resize events only occur for windows... no?
TomBon
16-Jul-2010
[10033]
don't know sure but is there no event/object message?
Henrik
16-Jul-2010
[10034]
event/face perhaps
Maxim
16-Jul-2010
[10035x2]
windows are passed in the event/face, that is sure... so if resize 
events occur only for windows, you should be pretty safe in assuming 
that in this case the event/face is always a window.
one thing though.  I've discovered that at low-level (view port wake 
event) resizing generates one event per mouse move.   


it sends all of them AFTER you finished resizing (pretty dumb) so 
you may end up with up to a 100 resizing events which are all, basically 
useless except for the last one.


I do not know if they are filtered out within the do-events (and 
thus within the event-func) but you should print out something to 
see if this is the case.