World: r3wp
[View] discuss view related issues
older newer | first last |
Anton 18-Aug-2008 [7973] | I'll add it to todo... if it's not there already. There might be compositing errors visible when resizing or something... can't remember. |
Henrik 18-Aug-2008 [7974] | ok, thanks. |
Anton 18-Aug-2008 [7975x5] | I'm going to resize the area to take advantage of space when any of the scrollers has show?: false |
Bit complex... cogitation.... | |
Updated scroll-area | |
load-thru/update http://anton.wildit.net.au/rebol/gui/scroll-area.r do-thru/update http://anton.wildit.net.au/rebol/gui/demo-scroll-area.r | |
- scroll-area/color is now NONE by default to respect background. - The horizontal/vertical scrollers are now optionally and dynamically visible/invisible. - New facets VSCROLL? and HSCROLL? have been added to facilitate this. - When any scroller is not shown, the area resizes to take the extra space. | |
xavier 18-Aug-2008 [7980x2] | anton i got a problem, it says user-prefs has no value |
what is exactly user-prefs | |
Anton 18-Aug-2008 [7982] | hang on... |
xavier 18-Aug-2008 [7983] | its in the demo |
Anton 18-Aug-2008 [7984x2] | What version of View are you running ? |
I've tested it mainly on View 2.7.6.4.2 and 2.7.6.3.1 (in wine), on linux. | |
xavier 18-Aug-2008 [7986x4] | ok i ll try with those ones |
i would like to take the last versions of sdk for windows and linux | |
maybe its better if i try with those ones | |
1.3.2.3.1 | |
Anton 18-Aug-2008 [7990] | It sounds like you're running a version of View without user prefs, or with --noinstall or something (check command line invocation). |
xavier 18-Aug-2008 [7991] | its the version of view i use |
Anton 18-Aug-2008 [7992] | Ok, I'll try that one. |
xavier 18-Aug-2008 [7993x2] | -- noinstall ? |
the object exists | |
Anton 18-Aug-2008 [7995] | See usage in the rebol console. |
xavier 18-Aug-2008 [7996x3] | user-prefs |
but what i used is my old sdk so the version is probably far older | |
i try with this one | |
Anton 18-Aug-2008 [7999] | http://www.rebol.net/builds/ |
xavier 18-Aug-2008 [8000x4] | ok i m getting them |
i can use my key to windows and linux ? | |
** Script Error: Cannot use path on none! value ** Where: do-facets ** Near: system/script/header/content >> >> refresh ** Script Error: window has no value ** Where: refresh ** Near: show window | |
here are the messages i have with the demo | |
Anton 18-Aug-2008 [8004] | Hmm... |
xavier 18-Aug-2008 [8005x2] | ok i drag and dropped the script on the view icon and it worked |
hurra | |
Anton 18-Aug-2008 [8007x2] | Sorry, I've never used the sdk before... :) |
(except for reading source) | |
xavier 18-Aug-2008 [8009] | you dont encapsulate your scripts ? |
Anton 18-Aug-2008 [8010x2] | Nope. I'm not into that yet. |
Do you need it to work with the sdk ? | |
xavier 18-Aug-2008 [8012x3] | if you want to do commercial soft it can help :-) |
no finally its ok i think i ll study the widget to see how it work | |
thanks for all | |
Anton 18-Aug-2008 [8015x2] | np |
bedtime for me.. | |
amacleod 19-Aug-2008 [8017x2] | Anton, I notice in your demo-scroll-wheel-handler.r if I add some text to the scroll-panel itself (not in a scroll-area) teh scroll wheel continues to work but you loose page down.up and arrow key function. I guess it looses focus. If you click on hte panel you get it back. Is there a way to retain it without needing to manually resetting it? |
That is if you highlight that text... | |
amacleod 20-Aug-2008 [8019] | On anoher note... Anyone know of any good examples of colorizing (highlighting) sections of text within a face. The word browser mentions caret-to offset and offset-to-caret being used to map text and creating colored or hyperlinked text but the example does not seem to be what I'm looking for... |
Anton 20-Aug-2008 [8020] | amacleod, do you mean adding a TEXT like this: scroll-panel [ text "hello" ] and clicking on the text? The TEXT gains the focus (and can be selected and copied etc.), but since the scroll-panel no longer has the focus it doesn't get arrow keys etc. You could make the TEXT inactive by setting its FEEL to none: scroll-panel [ text "hello" feel none ] or you could modify its feel to route particular keys such as page-up/page-down and arrow keys to the scroll-panel it's in. text "hello" feel [ append last last second :engage bind [ if find [up down page-up page-down] event/key [ face/parent-face/parent-face/parent-face/feel/engage face/parent-face/parent-face/parent-face act event ] ] first find second :engage 'act ] Not particularly easy, but there you go. I have thought about this issue before, but didn't come up with a clear vision of how to handle it properly yet, I think. |
amacleod 20-Aug-2008 [8021] | Anton, yes that is the issue... If you add a "feel none" you can no longer highlight and save to clipboard which is what I need. Your more elaborate 'feel' provides the correct action but is there a way to make this global or would I need to attach this feel to each set of text in a panel? |
Anton 20-Aug-2008 [8022] | You could easily restylize text, in a single layout spec, like so: layout [ style text text feel [ ; (feel definition as above..) ] ] or for all subsequent layouts: stylize/master [ text: text feel [ ; (feel definition as above) ] ] |
older newer | first last |