World: r3wp
[View] discuss view related issues
older newer | first last |
Nicolas 31-Mar-2010 [9666] | Why doesn't rebol detect alt or capslock? |
Pekr 31-Mar-2010 [9667] | I think some keys were excluded, because of cross-platform issues. I do remember arguing about it with Holger in the past. We have to change it. Some keys might not be so trivial to get to REBOL, but we should try ... |
ChristianE 31-Mar-2010 [9668x2] | Cross platform compatibility. Not all platforms have/use ALT and CAPSLOCK keys. Which was more importend way back when REBOL ran on 40+ platform. |
(oh, Petr beat me) | |
Pekr 31-Mar-2010 [9670] | View never run on more than a few IIRC - Windows, Linux, initally maybe BSD, Amiga ... |
Nicolas 31-Mar-2010 [9671x2] | What do you think? Should Rebol detect capslock and alt-down? |
I hope rebol will eventually be ported to the android operating system. Phones have different keyboards. Will that be an issue? | |
ChristianE 31-Mar-2010 [9673x2] | Yes, for apps where OS/platform consistency is more importend than cross platform compatibility, there is a need for things like thing. |
*like thing = like this | |
Pekr 31-Mar-2010 [9675] | I hope not. I can't see any problem some platfrom not supporting e.g. Alt, or Windows key .... it is imo fully upon programmer to handle. But not having those key-presses propagated to REBOL is, well - stupid ... |
Nicolas 31-Mar-2010 [9676x5] | Is there anything that I can do? |
Could I theoretically make my own 'system scheme with BIOS calls and load it instead of the default one? | |
In R3 there's system/schemes/system, do you think that could be changed to do this? | |
system/schemes/system: make object! [ name: 'system title: "System Port" spec: none info: none actor: make native! [[port!]] awake: make function! [[ sport "System port (State block holds events)" ports "Port list (Copy of block passed to WAIT)" /local event port waked ][ waked: sport/data loop 8 [ if not event: take sport/state [break] port: event/port if wake-up port event [ if not find waked port [append waked port] ] ] if not block? ports [return none] forall ports [ if find waked first ports [return true] ] false ]] init: make function! [[port][ port/data: copy [] ]] ] | |
Is the R3 Host Kit available? | |
Steeve 31-Mar-2010 [9681] | IIRC, some people have it for testing purpose, if you ask for it on "R3 - chat", perhaps you'll get it |
Cyphre 31-Mar-2010 [9682] | Nicolas, unfortunately due the system-port bug in R2 it is possibe to detect ALT etc. keys only in the Rebol console window. |
Pekr 31-Mar-2010 [9683] | Cyphre - and as for R3? btw - what does it have to do with the system port? Are all keyboard events captured via a system port, or just only special keys? |
Cyphre 31-Mar-2010 [9684] | Yes, all system events are captured by system port first. IIRC in R3 there is currently no way how to capture non-rebol-defined events but in R2 this is possible though only from the console. I believe the event port capabilities in R3 will be enhanced. |
amacleod 4-Apr-2010 [9685] | I'm trying to extract info from faces in a panel but I can't get it... I can see the objects! with mypanel/pane but what is the rest of the path to get to say a buttons "data:" field? |
Henrik 4-Apr-2010 [9686] | that would be for example mypanel/pane/1/data if the button is the first element. |
amacleod 4-Apr-2010 [9687x2] | I tried that but 'm getting an invalid path... |
I'm trying to step through them with a foreach statement...i've done it with scroll panels but can't figure it out for a simple panel/pane | |
Henrik 4-Apr-2010 [9689] | the pane can also be an object. in that case the path would be mypanel/pane/pane/1/data |
amacleod 4-Apr-2010 [9690] | still error1 ** Script Error: copy expected value argument of type: series port bitset ** Where: expand-specs ** Near: specs: copy specs foreach var |
Henrik 4-Apr-2010 [9691] | where are you putting this foreach statement? this looks like a dialect error. |
Nicolas 4-Apr-2010 [9692] | can you post the code? |
amacleod 4-Apr-2010 [9693x2] | The above error was from this probe : probe cal_panel/pane/pane/1/data Here is a segment of the generated code that I pass through LAYOUT before i attach to panel : [origin 0x0 space 0x0 styles cal_styles across return box 81x81 192.192.192 with [ edge/size: 1x1] [data: compose [28-Mar-2010]] effect [draw [pen yellow text 25x5 " 10-15" pen blue text 25x18 "25-5" font italic-font pen black 40x50 text "28"]] [pr int face/data] box 81x81 192.192.192 with [edge/size: 1x1] [data: compose [29-Mar- 2010]] effect [draw [pen yellow text 25x5 "13-18" pen blue text 25x18 "3-8" font i talic-font pen black 40x50 text "29"]] [print face/data] |
the above code is in a block called matrix_panel then attached to cal_panel with : cal_panel/pane: layout/tight matrix_panel | |
Henrik 4-Apr-2010 [9695] | where do you call foreach? |
amacleod 4-Apr-2010 [9696] | just after : cal_panel/pane: layout/tight matrix_panel |
Nicolas 4-Apr-2010 [9697x3] | with [edge/size: 1x1] [data: compose [28-Mar-2010]] |
--> with [edge/size: 1x1 data: compose [28-Mar-2010]] | |
Does that work? | |
amacleod 4-Apr-2010 [9700] | bingo ...thanks guys...weird though as I only added the edge a moment ago.. |
Nicolas 4-Apr-2010 [9701] | Awesome. You're the first guy I've helped. |
amacleod 4-Apr-2010 [9702] | I can now go to bed...thanks double |
Graham 13-Apr-2010 [9703] | View question ... http://synapse-ehr.com/forums/showthread.php?46-mouse-over-events |
Graham 14-Apr-2010 [9704] | don't worry ... I debugged it for him. |
Maxim 14-Apr-2010 [9705x3] | Oldes, do you still have that nice "color picker" code somewhere? I want to embed that into GLASS as a style, I'd put it in the default release with your permission. |
Oldes I found a link to color-lab.r... and it fails since there seems to be a file missing on the server: http://oldes.multimedia.cz/color-lab/ctx-color-lab.gz | |
managed to find the .rip files... all is good. | |
Oldes 14-Apr-2010 [9708] | Fine... just found them as well. The latest is from year 2005 so I don't know how it works. |
Maxim 14-Apr-2010 [9709x2] | seems to work fine in 2.7.6 |
If you don't mind, I'll make a derived version and include it with GLASS. full credits will be attributed. :-) | |
Oldes 14-Apr-2010 [9711] | I don't mind. You are welcome to use it as you like:) |
Maxim 14-Apr-2010 [9712] | thanks |
Oldes 14-Apr-2010 [9713] | btw. I think Rebolek has a ColorPicker as well. |
Maxim 14-Apr-2010 [9714] | ah battle of the color pickers then... Rebolek is your picker available, I'm curious to see it? |
Rebolek 14-Apr-2010 [9715] | Maxim, I think I saw it somewhere few months ago, I'll have a look in the morning, if you don't mind. |
older newer | first last |