do/args https://t.ly/cq6ih "test"
parse block [4 integer! end]
some/path/value: x
into set in some/path 'value x
or rather set in (path) 'value x
... or even better set in (object) 'value x
... or just bind
the whole block to the face in question... ;)#fill
strategy) takes about half of the elasticity.red
code - distance measurement in a chaotic ensemble of boxes. Well, measurement less, filling strategy more, but it's still problematic.*** Script Error: invalid function definition: [{Get coordinates of the point on box B1-B2 closest to ORIGIN} B1 [pair!] "inclu *** Where: either *** Near : closest-box-point?: function [{Get coordi} ]
function
somewhere to accept default values ?field
of my example as "resizable" it will push and pull the nearby button
and same for text-list
and bottom widgets. Shouldn't that be too hard, but not in my *immediate* todo list so if you want to take the challenge ;) ... or does anyone else dare ?view/flags [ base: base 50x200 255.100.100;.100 at 200x100 base brick 20x30 loose react later [base/size: face/offset - base/offset show base/parent] ] 'resize
show base/parent
with show face/parent
the brick will not move. (A reaction loop ?)later
the window does not open centered on the screen anymore !?view/flags [ base: base "1" 50x200 255.100.100;.200 at 200x100 text "2" sky 20x30 loose react later [base/size: face/offset - base/offset show base/parent] ] 'resize
face
, with alpha channel the text is not blitted.system/view/screens/1
seems to be the whole desktop... other red windows get added to system/view/screens
, but I can't seem to find the console itself.gui-console-ctx/win
, or look at that entire object, depending on what you're trying to do.con: gui-console-ctx/win/pane/1 con/color: hex-to-rgb #ff9999
makes the background light red. haven't found the right place to set the foreground color yet. gui-console-ctx/set-font-color
system/view/capturing?: on view [tab-panel 200 data ["a" [button "A"] "b" [button "B"] "c" [button "C"]] on-detect [if event/type = 'select [if (probe event/picked) = 3 ['stop]]]]
event/picked
reports the one *previously selected* (+1), so I guess you've just found two more bugs'change
event (where event/picked is correct) doesn't stop it from changingdata
(and it kind of worked but not really lol)panel/pane/n/enabled?: false
didn't workset-focus
doesn't work eitherpanel/selected: n
worksview [p: tab-panel 200 ["a" [button "A"] "b" [b: button "B"] "c" [button "C"]] on-select [old: event/picked] on-change [if event/picked = 2 [face/selected: old]]]
view [a: drop-down data ["a" "b" "c"] with [selected: 2] button [print a/text]
drop-down
, I get none
, not "b" as I expect. Why? And how to get "b" before selection?about
show? works on win7 for me but older version does show none. you might try downloading latest version.GUI Red
can not compile red script(which can be done by the version I use at present)?view [group-box "title" [text "on-over" on-over [face/parent/text: "hint title"]]]
text
, the title of the face group-box
will change from "title" to "hint title". when mouse is off text
, the title change back to "title". The second part(restore the title) fails. Any idea tto make it work? Thanks.event/away?
.probe
ing :)Red [needs 'view] view [ dd: drop-down data [] return text react [ myinput: attempt [to-integer trim dd/text] either all [myinput myinput >= 0] [face/text: dd/text] [face/text: "??"] ]]
text
to change with drop-down
. When I input "12" to "dd" drop-down
all the time. Why and what's wrong trim copy dd/text
copy
solves the problem.loose
button and I want it to move only horizontally, how can I do ? The way I tried is flickering a lot :)loose
it is flickering, but without is smoothview [ button "OK" all-over on-down [x: event/offset/x] on-over [if event/down? [face/offset/x: face/offset/x + event/offset/x - x]] ]
loose
implementation in R2 and used step: 1x0
to move horizontally and step: 30x0
to move horizontally 30 px at a time.view [ button "OK" all-over on-down [x: event/offset/x] on-over [if event/down? [face/offset/x: face/offset/x + round/floor/to event/offset/x 5 - x]] ]
bounds
option](https://github.com/red/docs/blob/master/en/view.adoc#options-facet) that was recently introduced for restricting dragging movements. I've noticed some glitches using it in some cases, I would be interested to see if that happens in your case too. Let me know.system/view/debug?: yes
to get logs about events and face-related reactions. It can sometimes dump too much info, but that's a start. A possible improvement could be to have a companion GUI app with filtering options, where all those logs go to, for easier usage.recycle
placed somewhere-I-dont't-know-where, recommended ?event!
s. deleteNubs: does [ nbFaces: 22 ;--number of facets to keep keptFaces: copy/part radioWin/pane nbFaces ;--save facets append clear radioWin/pane keptFaces ;--delete nubs and add saved facets ]
bounds
alternative to move a loose
face only horizontally but... try this:view [button "test" loose options [bounds: object [min: 0x0 max: 0x0]]]
>> about Red 0.6.4 for Windows built 4-Jan-2023/9:46:38+01:00 commit #8290def
*** Runtime Error 98: assertion failed *** in file: /d/devel/red/red-src/master/runtime/datatypes/symbol.reds *** at line: 107 *** *** stack: red/symbol/resolve 126360808 *** stack: gui/parse-common-opts 05972240h 05720E88h *** stack: gui/OS-make-view 049F0584h 9184474 *** stack: ctx||459~make-view 049F0584h 049F0594h
object!
value therebounds:
view [ button "move x" loose on-created [ append face/options compose [bounds: (object [min: face/offset - 20x0 max: face/offset + 50x0])]] ]