Welcome, Guest. Please Login
Tinderbox
  News:
IMPORTANT MESSAGE! This forum has now been replaced by a new forum at http://forum.eastgate.com and no further posting or member registration is allowed. The forum is still accessible via read-only access for reference purposes. If you wish to discuss content here, please use the new forum. N.B. - posting in the new forum requires a fresh registration in the new forum (sorry - member data can't be ported).
  HomeHelpSearchLogin  
 
Pages: 1
Send Topic Print
Erasing the source of a location setting (Read 621 times)
Ellen Madono
Full Member
*
Offline



Posts: 90

Erasing the source of a location setting
Nov 20th, 2016, 9:31pm
 
Hi,

I previous failed attempts to use tbx, many files have the following in the text window of a note.

Xpos: -0.7034912109 / Ypos: -6.419677734

The text window does not function properly, so I think that there is a basic flaw in what I did.

I was trying to make a connection between ornaments and note prototypes, but there is a problem which I decided not to solve.  It is just too complicated for me.  So, I want to keep the content of the work that I already did, but get rid of this problematic setting.  How do I do that?

I will explain again:
I want to copy those old problematically setup notes in a new file that accomplishes the same purpose in more simple way.  Before I copy and contaminate my new file setup, I want to erase the source of this setting.  Where will I find it?  How do I erase the source of the problem?

Ellen
Back to top
 
 
  IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: Erasing the source of a location setting
Reply #1 - Nov 21st, 2016, 8:35am
 
I'm not sure what you mean - in Tinderbox terms - by an an 'ornament'. My hunch is you're referring to map adornments. For instance:



If so, I'm guessing you've set the $OnAdd action of the adornment so when a note is placed on the adornment, it records the position of the note in the note's test using code like:

$Text = "Xpos: " + $Xpos + " / " + "Ypos: " + $Ypos;

Code like that above re-sets the entire text of the note each time the code is run. Moving the note elsewhere does nothing as there's no action to reverse this. If the text is not set via the adornment, it might be set via the note's rule ($Rule) or a rule inherited from a prototype.

If you don't want that text in a note simply delete it. If it comes back immediately when you de-/re-select the note in the view pane, then you're looking for a rule as the cause; essentially each time the rule runs it records the note's location as text. If it only comes back when you move the note onto an adornment, then I'd look at the adornment's $OnAdd as the cause.

Could you clarify "make a connection between ornaments and note prototypes, but there is a problem which I decided not to solve". Are you not solving that problem or some other problem? Seeing as the 'problem' might be messing up your text I think you do need to localise the cause and either fix it or delete that part of the document. But, without a clearer picture it's hard to give definite suggestions.

For now, I'd review the rules of your notes (Action Inspector, Rule tab) or theOnAdd actions of your adornments (Action Inspector, Action tab) before trying to move any notes as if rules are the issue the 'contamination' source is in the notes themselves.
Back to top
 
 

--
Mark Anderson
TB user and Wiki Gardener
aTbRef v6
(TB consulting - email me)
WWW shoantel   IP Logged
Pages: 1
Send Topic Print