REBOL3 tracker
  0.9.12 beta
Ticket #0001900 User: anonymous

Project:

Previous Next
rss
TypeIssue Statussubmitted Date3-Dec-2011 09:03
Versionalpha 111 Categoryn/a Submitted bymeijeru
PlatformAll Severityminor Prioritynormal

Summary How to add to a gob's DRAW block
Description I create a window-gob as follows:
WIN: VIEW/NO-WAIT [... some dialect ...]
I then want to add to a sub-gob's DRAW block (which exists, I have checked that), prior to showing the window, by:
APPEND WIN/1/1/DRAW [LINE-WIDTH 2.0 LINE 8x50 370x50 ...]
SHOW WIN

The error message says:
** Script error: expected command! not line-width
** Where: show do either either either -apply-

Apparently the block to be appended must be bound, but to what?
Example code

			

Assigned ton/a Fixed in- Last Update3-Dec-2011 12:00


Comments
(0003218)
meijeru
3-Dec-2011 12:00

I have meanwhile discovered a solution, which I think is not the optimal one:
blk: make block! []
to-draw [line-width ...] blk
append win/1/1/draw blk

Any other suggestions?

Date User Field Action Change
3-Dec-2011 12:00 meijeru Comment : 0003218 Added -
3-Dec-2011 09:03 meijeru Ticket Added -