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

World: r3wp

[View] discuss view related issues

Graham
29-Apr-2010
[9822x2]
Oh .. it's working!
maybe there was something odd invisible??
ChristianE
29-Apr-2010
[9824]
A hard-space then, just as Henrik said.
Graham
29-Apr-2010
[9825]
wonder why it only errors later on ...
ChristianE
29-Apr-2010
[9826]
A hard-space, this can be encoded by UTF-8 as 0xC2 0xA0, 0xC2 is 
#"Â".
Graham
29-Apr-2010
[9827]
Good to know
ChristianE
29-Apr-2010
[9828]
It loads, but is probably mistaken for a word with no value? What 
was the exact error message? Word has no value or so?
Maxim
29-Apr-2010
[9829]
i've had similar errors with PC control codes embeded in a script.
Thorsten
1-May-2010
[9830]
Need a little assitance with a choice button in layout. How might 
it be possible to assign a list of tables from db query to a choice 
button. The query is no problem.  But at the moment i see no way 
to use the result block in the layout definition of the choice button
Henrik
1-May-2010
[9831]
I'm not sure, but try this:

my-data: ["a" "b" "c"]

view layout [choice data my-data]

Entirely untested
Thorsten
1-May-2010
[9832]
Yes, it works. Do you know how this same block can be used to switch 
to according panels?? The current code is like this: 	choice 150x30 
silver edge [size: 1x1 color: orange] data tables [
    		switch value [
    			    "Panel 1" [panels/pane: panel1  show panels]
    				"Panel 2" [panels/pane: panel2  show panels]
    				"Panel 3" [panels/pane: panel3  show panels]	
						]
    		]
Henrik
1-May-2010
[9833x2]
I think that will work, yes, but I would probably do something like:

panel-list: ["Panel 1" panel1 "Panel 2" panel2 "Panel 3" panel3]


choice 150x30 silver data (extract panel-list 2) [panels/pane: select 
panel-list value show panels]
missing a 'get in front of the 'select there.
Thorsten
1-May-2010
[9835]
It seems to pick the right panels from the block, but when the choice 
is made the panel is not refreshed. Perhaps something with the show 
panels??
Henrik
1-May-2010
[9836]
did you add the 'get? otherwise the pane is just set to a word.
Thorsten
1-May-2010
[9837x2]
Yes!
like : choice 150x30 silver data (extract panel-list 2) [panels/pane: 
'get select panel-list value show panels]
Henrik
1-May-2010
[9839]
hoho... you added a lit-word! :-) you need to remove the '. I used 
'get to signify that it was a REBOL function. I should have used 
GET instead. Sorry.
Thorsten
1-May-2010
[9840]
Great, thats it. And, i think it is not your fault, maybe more my 
lack of understanding how lit-words are used in rebol.  Thanks a 
lot!
Thorsten
2-May-2010
[9841]
Henrik, i need to bother you again. Sorry for that. I use your List-View 
in one of my panes. I am handling the resize event  globally via 
insert-event-func. There i tried to handle the resize of the listview 
also, but  it does not do anything. Everything is resized,  but not 
the List-View.. The next thing i tried was a resize via a button 
directly in the same pane. This works as long the windows hasn't 
been resized before. Do you have any any idea where this might result 
from? In th global function the event is returned after resizing 
all panels.
Henrik
2-May-2010
[9842x2]
sorry, I've been away. I'll respond soon.
I don't remember how it works for list-view, but don't you have to 
specify the new size, when using the resize function?
Thorsten
3-May-2010
[9844]
For listview it is like lv/resize 400x300. I used this syntax in 
the global event function as well as for the resize button.  It only 
worked when with the button when i didn/t resize the window before.
Henrik
3-May-2010
[9845]
This works as long the windows hasn't been resized before.

 <- this sounds a little odd. Could it be that the inserted event-func 
 is not called properly?
Thorsten
3-May-2010
[9846]
It is odd. But i just don't know how to test, if it is called properly. 
For all other panels and panes it seems to work ok. I just had some 
difficulties with backdrop, which doesn't seem to resize to the full 
width.
Henrik
3-May-2010
[9847x2]
can you post your event-func?
the thing is that it should work identically from the event func 
and when used from a button
Thorsten
3-May-2010
[9849]
This is my function: insert-event-func [
            if equal? event/type 'resize [
				  header/size: as-pair main/size/1 60
				  header1/size: as-pair main/size/1 60
				  separator/size: as-pair main/size/1 4

				  navigator/size: as-pair 200 (main/size/2 - 120)
				  navigator1/size: as-pair 200 (main/size/2 - 120)
				  
				  panels/size: as-pair main/size/1 (main/size/2 - 120)
				  panel1/size: as-pair main/size/1 (main/size/2 - 120)
				  
				  li/resize: 400x300
				  				  
				  panel2/size: as-pair main/size/1 (main/size/2 - 120)
				  panel3/size: as-pair main/size/1 (main/size/2 - 120)
				  
				  footer/size: as-pair main/size/1 60
				  footer/offset: as-pair 0 (main/size/2 - 60)
				  footer1/size: as-pair main/size/1 60
				  
      			  show main

            ]
            event
]
Henrik
3-May-2010
[9850x2]
li/resize: 400x300

should be:

li/resize 400x300
that's why it only works once. :-)
Thorsten
3-May-2010
[9852]
Yes, now it works in all ways.  So obvious! OK, thanks a lot.
Henrik
3-May-2010
[9853]
If you don't want to handle resizing manually, you could look at 
the VID Extension Kit.
eFishAnt
3-May-2010
[9854x2]
There might be a better group than View, but I am looking for industry 
literature about UI delays.  I remember something about an IBM paper 
that said 1/10 of a second is the maximum keyboard or UI delay that 
is imperceptible.  I wonder if there is a good whitepaper/publication 
on this that someone can recommend that would be solid enough to 
wack a supplier over the head with who has very slow UI latencies. 
 They are in denial about latency affecting the user experience.
ironic enough, the current 1.2.22 AltME which has noticeable behavior 
changes while sending messages, will cause duplicated messages if 
you try a second time to CTRL-S while waiting for it to go out...so 
I am seeing more duplicated messages...just did one in here...  :-\
Sunanda
3-May-2010
[9856]
a good place to start is Jakob Nielsen's research:
http://www.useit.com/papers/responsetime.html
eFishAnt
3-May-2010
[9857]
PERFECT!  you shine, Sunanda!
Maxim
3-May-2010
[9858x3]
one easy suggestion for improving "responsiveness" is to ALWAYS put 
UI code at the top of any processing.


it takes us quite a long time to react to a change in the ui, so 
that delay can be used to do the processing.
that was one reason the Amiga felt so fast... the gui wasn't managed 
by the application's task, but by the os... independently of the 
application's business.    For example, even if the application was 
processing, the menu would pop up in real time... cause intuition 
(the gui manager) was at a higher priority than most applications.
@ Gregg,


MIN and MAX on pairs right now is extremely usefull to intersect 
and or add up regions.
Paul
4-May-2010
[9861x2]
How you guys use request-file to open only for selection of folders 
(exluding files in the listing)?
I have a method that I use that I don't know of being documented 
anywhere so I'm wondering what others are doing.
james_nak
4-May-2010
[9863]
Just found an interesting behavior. I had a layout that mimics the 
request-password. It is launched via view/new and do-events  If I 
did an unview after the user entered in the password ( apass: field 
hide [unview] , it would close it but later on other requestors or 
view elements would disappear. The app was still running though. 
If I closed the request via a button click it works fine. I just 
wanted it to respond to a CR instead of having the user have to reach 
for the mouse. At this point though, let em reach for the mouse. 
:-)
Graham
4-May-2010
[9864x2]
is it modal?
guess not as you are using view/new ...  are you using unview/only 
?
james_nak
4-May-2010
[9866x3]
Yes, I think I tried that. Of course I think I tried a million ways. 
:-)
Let me check.
You know what they say? I could have sworn I used it... Thanks Graham.
Gregg
5-May-2010
[9869]
Paul, post your method. There wasn't any common dialog for folder 
selection in Windows for a long time, and REBOL still doesn't provide 
direct access to it.
BrianH
5-May-2010
[9870]
for a long time
? I remember using the folder selection dialog in Win3.1 apps...
Maxim
5-May-2010
[9871]
windows folder selection dialogs really suck for many reasons... 

one of the most annoying is that you cannot create a folder while 
you are hunting for one.