World: r3wp
[View] discuss view related issues
older newer | first last |
[unknown: 10] 28-Mar-2005 [832] | Thanks anyway |
[unknown: 10] 31-Mar-2005 [833x5] | How do I ctach in which 'face I am when using 'Detect for events? |
I have currently this -> | |
and want to detect per face.. Do i need to Name the face perhpas? | |
view layout [ origin 0x0 space 0x0 size 400x400 at 0x0 box 300x300 aqua at 200x100 box 200x300 linen at 0x100 box "In the middle" 400x200 khaki feel [ detect: func [face event] [ if event/type = 'move [ popup/text: event/offset - 0x100 popup/offset: event/offset + 10x0 show popup ] return none ] ] font [ size: 72 ] effect reduce [ 'merge 'colorize 128.64.128 ] popup: box 50x15 font [color: white size: 10 shadow: none ] effect reduce [ 'merge 'colorize 128.64.255 'draw [ pen 0.128.0 box 0x0 49x14 ]] ] | |
Or do i need to create an event per face ? actualy i want to Roam over the main face an select the face i am moving over ta that time...uable to comply currently ;-) | |
[unknown: 10] 1-Apr-2005 [838] | OLDES !!! Thanks for your "Bezier Demo!!!" I was seeking for that ;-) |
DideC 1-Apr-2005 [839] | Does the Bezier demo answer to your question above ? |
Gregg 1-Apr-2005 [840] | Using insert-event-func is probably the way to go. event/face should have what you want. (if you don't already have an answer) |
DideC 1-Apr-2005 [841] | With insert-event-funcs, face and event/face are the window face where the event happens. You have to search yourself what is the face under the cursor. Very boring OMO. |
Gregg 1-Apr-2005 [842] | I thought the face param was the main face and event face was the face getting the actual event, in the case of 'move, etc. |
DideC 1-Apr-2005 [843] | face is always screen-face and face/event is the window. |
Luis 2-Apr-2005 [844] | Oldes: is "Bezier Demo " an public script? |
[unknown: 10] 3-Apr-2005 [845] | If have a problem with Caching in rebol..seems everytime i need to restart view/console to make sure the PICTURE is reloaded to the currect on... im using 'IMAGE %file.png to load it... and a recycle does not fix the problem |
Volker 3-Apr-2005 [846x2] | image caches files somewhere. |
load-image/clear should help | |
[unknown: 10] 3-Apr-2005 [848] | yes its 'image indeed.. a simple load works.. though load-image also has this problem... Ill try your hint! |
Anton 3-Apr-2005 [849x2] | layout [image with [?? multi]] |
You can see under "file:", that LOAD-IMAGE is used. Check the source for load-image and the second item (a block) is where the images are actually cached. | |
Volker 3-Apr-2005 [851] | ( see [help load-image]. load-image keeps a cache. load-image/clear clears that cache. ah, there is load-image/update too for refresh.) |
[unknown: 10] 3-Apr-2005 [852] | For every View Question there is an Answer ;-) Thanks... |
Gregg 8-Apr-2005 [853] | You're right Dide, I had to look, then realized I used system/view/focal-face to get it where I needed it in one app. |
Robert 9-Apr-2005 [854x2] | If I have a layout is it possible to just add stuff on-the-fly if certain conditions are met? Like this: layout [ ... if my-var > 5 [name: button red return] ... ] |
Of course it's possible to build the layout block up front using normal Rebol code but IMO being able to do it inline makes a lot of sense. | |
Anton 9-Apr-2005 [856x2] | I felt this need a few times too. But what syntax is desired ? |
layout [ do [if my-var > 5 [layin [name: button red return]]] ; something like this ? ] | |
Robert 9-Apr-2005 [858] | Woudl be OK. It should be acceptable in that it's easy to remember and doesn't interrupt the programming flow. |
Brock 9-Apr-2005 [859] | Anybody of some generic form validation scripts/hints. I like how .Net allows you to validate a group of radio buttons with one command rather than having to code a check for each radio button in the group. |
Volker 9-Apr-2005 [860] | interesting idea. I usually use compose[ .. (either my-var > 5 [[name: button red return]][()]) ..] but its a lot of brackets |
Anton 11-Apr-2005 [861x2] | When I selectively compose in several times like Volker's code above, I make a small helper function called FLAG-VAL, to do the same job as the EITHER. |
I think my hypothetical example above is better as: layout [ inlay [if my-var > 5 [[name: button red return]]] ] then INLAY only needs to be a layout dialect function. But actually, this reminds me of the discussions we had about argument propagation, the want for replace/deep etc. | |
Benjamin 11-Apr-2005 [863] | hi there, i did not seach much on this but it possible to change the cursor in rebol view arrow clock precise etc... ??? |
Pekr 12-Apr-2005 [864] | has anyone already submitted bug to RAMBO, where View apps crash each time you change your desktop resolution? |
Ammon 12-Apr-2005 [865] | I'm not sure but it isn't just resolution that will do it. Sometimes changing the Appearance and sometimes changing the color depth as well as various other display settings will kill all View applications. |
Pekr 12-Apr-2005 [866] | ok, then rebol can't handle it properly - that is a big minus, although you don't do such operations very often ... |
BrianH 12-Apr-2005 [867] | Well I do, as such a switch happens when you connect to Remote Desktop, and I use that a lot. |
Ammon 12-Apr-2005 [868] | Really? Never had RD kill my View apps before and I have used it alot... |
BrianH 12-Apr-2005 [869] | Hasn't happened to me yet either. I was just saying that if that was the trigger, it would affect me. |
Ammon 12-Apr-2005 [870] | In my experience there are a number of applications, games, etc that use there own display settings but do not seem to change the actual desktop settings and therefore do not affect other running applications such as View. This may or may not be what is actually going on I've just come to this conclusion because when some applications change the display settings or use different display settings then all the desktop icons are moved to fit within the alternate resolution whereas other applications do not have this effect. |
DideC 12-Apr-2005 [871] | OMO View crash only if you change screen resolution. Not affected by color depth. I think it can't change the sv/screen-face/size at runtime. It initialize it at startup. |
Tomc 12-Apr-2005 [872] | also crashes if you change number of monitors without changing resolution |
Gregg 13-Apr-2005 [873] | Benjamin -- There is no native way to change cursors in REBOL. Cyphre has done some experiments with it, and the APIs should be easy enough to call if you have /pro. Can't remember if I ever mapped those or not. |
Volker 13-Apr-2005 [874] | what are good colors for a code-colorizer? |
Ingo 14-Apr-2005 [875] | I've had /View Apps crashing after my WinXP restarted from hibernate mode. But not all of them. I don't know whether it was dependant on the app, or on the version of rebol ... |
Sunanda 14-Apr-2005 [876] | Volker -- colours for code will be highly subjective. See Carl's choices here: http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=color-code.r And REBOL.org's choices here (look for "script colorizer"): http://www.rebol.org/cgi-bin/cgiwrap/rebol/css-view-system.r |
Anton 14-Apr-2005 [877x2] | Gregg, if you check out the DLL.SO group, you can see Benjamin is already tackling changing cursors with user32.dll ! |
Volker, I usually like the colours to be not very bright, ie. I set my strings to be very dark green, keywords to dark red or blue etc. so most of the text is close to black. But, as Sunanda said, that's subjective, my point of view. | |
Chris 14-Apr-2005 [879] | I use this style sheet for my colour code: http://www.ross-gill.com/styles/rebol-code.css |
Volker 14-Apr-2005 [880] | Thanks for suggestions. Have to look into that. Currently i have anti-colors, mostly because i box the words, not just colorize them. looks like suqeaks etoys :) to see it, run edit-tools in my developer-folder, open a script, choose color-rebol.r in the plugin-list and close your eyes quickly :)) more a demo how to markup text. |
Anton 14-Apr-2005 [881] | Whoa! what a bizarre user experience! :) |
older newer | first last |