World: r3wp
[View] discuss view related issues
older newer | first last |
Henrik 25-Nov-2007 [7250] | Here's a handy-dandy little thing: http://rebol.hmkdesign.dk/vid-resize.r Needs a bit of polish and some more testing, but it works. |
Henrik 26-Nov-2007 [7251] | router went down, sorry. link should be working now. |
Graham 26-Nov-2007 [7252] | Is the only way to turn an image! into png with save/png ? |
Henrik 26-Nov-2007 [7253] | I believe so. |
Graham 26-Nov-2007 [7254x2] | Hope we can fix this in R3. |
Ie. have in memory transforms. | |
Henrik 26-Nov-2007 [7256x2] | ah, yes that would be good for webserving. |
made a better demo for vid-resize.r at the same url | |
Ashley 26-Nov-2007 [7258] | have in memory transforms ... note that save accepts a target of type file!, url! or binary! ... so you can always do: bin: make binary! 10000 save/png bin load %test.jpg write/binary %test.png bin |
Graham 27-Nov-2007 [7259] | good to know how this is done .. I have tried saving to binary! before without knowing how to do it! |
amacleod 2-Dec-2007 [7260x3] | I'm trying to add data to a drop-down widget, but I'm not able to get it to refresh to display the updated data list. |
I've probed the /data-list and it shows teh new data. I then "show : the widget but no luck. | |
Also, when I clear fields of a form of which the drop-down is part, the item that was picked disappears from the drop-down list (but not the /daat-list its self. | |
Chris 2-Dec-2007 [7263] | ;-- does this illustrate your setup? view layout [ dd: drop-down 150 "one" "two" "three" btn 150 "Add" [ either tail? skip dd/list-data 3 [ append dd/list-data ["four" "five"] face/text: "Remove" show face ][ clear skip dd/list-data 3 face/text: "Add" show face ] ] btn 150 "Set" [set-face dd pick dd/list-data random length? dd/list-data] ] |
Steeve 3-Dec-2007 [7264x6] | hi guys ! i have a strange behaviour when tracking events in feel/move func of my faces. I don't detect events only when i entering or leaving the face (as expected). Instead of that , i detect a flow of move events. i must precise i don't use VID (where it works well) I create my own layouts with make func. |
! | |
hi all ! i try to detect move events in a feel/over func. But i receive a flow of move events in my face instead of only 2 events (1 when entering, 1 when leaving). I precise: I did'nt put the option [all-over] in the window. I don't use VID but i construct my own layout with a serie of make face. | |
!* | |
! | |
arf, finally i can see my messages, sorry for the flood | |
Anton 4-Dec-2007 [7270] | Steeve, show us how you made the feel. I suspect that you might have made the feel yourself using something like: feel: make object! [ over: func [face over offset] ... ] which would be wrong, as the view system is is sensitive to the order the words are defined in the feel object. The correct way is to make your feel from an existing feel, eg. my-feel: make system/standard/face/feel [ ... ] This ensures that the four feel functions are defined in the correct order in the object. Making the object yourself, defining the functions out of order, explains why OVER sees events that normally appear in a DETECT or another function. I remember being quite confused by that. If you make from another feel you don't have to worry about the order. |
Steeve 4-Dec-2007 [7271x2] | thanks Anton, i will test that soon |
yeahaaaa ! it works well now, many thanks again Anton | |
amacleod 5-Dec-2007 [7273x2] | chris, thanks for the help, nut my situation is a little different. I'm loading the data from a database. When I update the data base I read it again and store it in a word that I use to fill the drop-down with the "data"attribute. If I probe the word holding the updated database it shows the added data but the drop-down will not show the change. |
EVen on your example above the drop down did not display "five"? I can not even scroll down to see it. I had to increase the # of rows to se it Bug? | |
Anton 17-Dec-2007 [7275] | Alan, show us some code. (try keep it small.) |
Henrik 11-Jan-2008 [7276] | I think I asked this a long time ago, but forgot the answer: Does anyone know how to detect when a window goes inactive? |
Pekr 11-Jan-2008 [7277] | Win32 API or View only solution? Dunno if it can be detected using View only ... |
Henrik 11-Jan-2008 [7278x2] | View only solution, if it's possible. |
I don't care about other windows. I want to put up a warning that a window has gone inactive (critical that a text field is focused). | |
Gregg 11-Jan-2008 [7280] | insert-event-func and watch for an 'inactive event I think. |
Anton 13-Jan-2008 [7281] | Henrik, I think this was the best I could come up with: http://anton.wildit.net.au/rebol/view/detect-all-windows-inactive.r http://anton.wildit.net.au/rebol/gui/all-windows-inactive-handler.r |
Jean-François 15-Jan-2008 [7282] | Would anybody have any clue where I could find this simple Rebol script demoing a shopping cart . I'm interested in the columnar hierarchical tree it used to navigate to the store's items. ? |
Izkata 22-Jan-2008 [7283x5] | Does the pen command of the draw dialect require tuples, or can we use 'red, 'blue and so on? |
In View 1.3.1, 'red, 'blue and so on worked, but no longer... | |
actually, nevermind | |
something else is my problem | |
Here's my problem, from a new terminal session: >> view layout [box 120x70 effect [draw [pen black polygon 0x0 119x0 119x69 0x69]]] >> view layout [box 120x70 effect [draw [pen black green polygon 0x0 119x0 119x69 0x69]]] Segmentation fault (core dumped) ..which should work fine, according to this Draw documentation: http://www.rebol.com/docs/draw.html#sect0.9.1. | |
Anton 22-Jan-2008 [7288] | If I recall correctly, that's a bug of View 1.3.1, specifying PEN with two colours. |
Oldes 22-Jan-2008 [7289x3] | You are missing line-pattern in your code... this is working: view layout [box 120x70 effect [draw [pen black green line-pattern 1 5 polygon 0x0 119x0 119x69 0x69]]] |
(anyway.. it's a bug.. which should be easy to fix I guess) | |
if you don't want to use line-pattern you should not use 2 colors for pen.. | |
Izkata 22-Jan-2008 [7292] | Darn.. =P I was taking it as, for polygon, the line would be the first color and the inside would be the second. Are there any more recent draw docs, then, so I don't get overly confused like this time? |
Oldes 22-Jan-2008 [7293] | but it is in the doc.. (the link above) If you want to make fill use fill-pen |
Izkata 22-Jan-2008 [7294] | ...I was about to say, "then why is it called 'foreground' and 'background' color under pen?", then took another look - I somehow completely missed the last line under the "Pen" section... Okay, just a lot of my mistakes.. ~innocent grin~ |
btiffin 31-Jan-2008 [7295] | Challenge; A REBOL face face. Ok all you graphically inclined; come up with a face that is a face. Given this graphically PT version ... what can you do to make the face of REBOL. face-block: [ pen blue ellipse 150x150 100x120 ; head fill-pen green circle 110x110 10 circle 190x110 10 ; eyes fill-pen black circle 110x110 3 circle 190x110 3 fill-pen pink ellipse 150x150 10x20 ; nose fill-pen red ellipse 150x200 25x10 ; mouth ] view layout compose/deep/only [box 300x300 sky effect [draw (face-block)]] Extra points for blinking, winking and moving lips, but simple is better - plans is to show students. :) (For those that need to know ... PT is short for part-tard). |
Alan 15-Feb-2008 [7296] | hoping for some help. I copied my desktop view install to a usb pen drive for my laptop and made the mistake of not doing an install so now it does not see my local dir.I used regedit to delete all calls to view I could find rebooted and still the same problem :( Any hints ? Thanks ! |
james_nak 15-Feb-2008 [7297] | What happens if you actually do an install? |
GiuseppeC 16-Feb-2008 [7298] | Is http://www.rebol.com/docs/easy-vid.htmlthe only documentation from REBOL Tech we have for vid ? |
Pekr 16-Feb-2008 [7299] | Surely not - there is at least one other ... |
older newer | first last |