Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[ALLY] Re: Found the reason for "disappearing text"

From: petr:krenzelok:trz:cz at: 15-Nov-2000 1:15

----- Original Message ----- From: P-O Yliniemi <[peoyli--algonet--se]> To: <[ally-list--rebol--com]> Cc: <[feedback--rebol--com]> Sent: Tuesday, November 14, 2000 11:46 PM Subject: [ALLY] Found the reason for "disappearing text"
> Hi,
Hi :-)
> I recently found out what was causing my (am I the only one who got > this problem ?) texts in some layouts to disappear.. > > Setting the para/origin/x and para/origin/y values of at least a text > face (ie scrolling) affects every other object's para/origin values. > > Now.. What can be done to stop this from happening ? > > Is this a feature or a bug ?
It's REBOL "feature" :-) You can yourself so much of a confusion remembering fact nested objects are shared thru all "childs". I don't remember already the explanation of RT why it is so in REBOL. I thought language should be some kind of balance between technology and practical usability .... so far - subobject sharing is causing nothing but problems ... Try to use any of already suggested methods for object (deep objects) copying: I use the form: saved-feel: make system/standard/face/feel [] stylize: [ txt text with [feel: make saved-feel []] ] This way you can be sure you will have feel subobject of text face, which will not be shared by other text faces ... However - there seem to be some problem with 'stylize or so, as I tried to define saved-edge for e.g., but I can't use similar aproach as in above example - I found out there is difference if the word you want to define is exposed to dialect level, e.g.: stylize: [ img: image with [edge: make edge [size: 2x2 color: red]] img2: image edge [size: 2x2 color: red] ] If you will use first line - all styles will have edge of 2x2, in red color ... If you will use second line - only img2 will have changed edge style ... the result should be identical imho ... So I would suggest you not to use 'with, if you can use facet word directly in dialect .... the stuff will not get shared that way ... try to use following code in your script: text-face: text tboxsize para [origin/y: 0] with [ text: rejoin ["Welcome to " appname] color: 0.0.0 font: fontspec ] does it work for you? PS: I would like RT to confirm it's/isn't a bug ... -pekr-