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

World: r3wp

[View] discuss view related issues

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.
TomBon
16-Jul-2010
[10037]
event/face is dumping all.
Maxim
16-Jul-2010
[10038]
not sure I get what you mean...
TomBon
16-Jul-2010
[10039]
hmmm...face/size too.
Maxim
16-Jul-2010
[10040]
dumping?
TomBon
16-Jul-2010
[10041]
event/face is holding the whole objects not only the face specs...at 
least if I see rthe amount of data.
Maxim
16-Jul-2010
[10042]
yes it always does.  its the face object!