Posted by member 212670 on 2006-04-20 22:52:31
It looks like the other examples are gone, so here's a simple way to save a label's position.
Modules used:
xLabel-3.5.7 (use newer as available)
xTextEdit-0.6
-Setup your label like usual, making sure you've set (LabelName)X and (LabelName)Y lines, example:
-Use the following on a single line, with (LabelName)OnMove (example using a label named "floater" - change all instances of "floater" to whatever your label is named):
-This assumes your label settings are located at: \ThemeName\Config\labels.rc
-Helpful Hint: If you want to make several floater labels and have them all use the same bang, put the OnMove in a label group, and use %[labelname]% instead of floater throughout the !execute line. Then, simply add all your floater labels to the label group (see AddToGroup in the xlabel help file). The floater labels themselves don't need the OnMove, in that situation, since the group they belong to will handle it.
Modules used:
xLabel-3.5.7 (use newer as available)
xTextEdit-0.6
-Setup your label like usual, making sure you've set (LabelName)X and (LabelName)Y lines, example:
floaterX 50
floaterY 50
floaterY 50
-Use the following on a single line, with (LabelName)OnMove (example using a label named "floater" - change all instances of "floater" to whatever your label is named):
floaterOnMove !ParseEvars !execute [!xTextSaveEvar @$ConfigDir$labels.rc@ @floaterX@ @%#floaterCurrentX%#@][!xTextSaveEvar @$ConfigDir$labels.rc@ @floaterY@ @%#floaterCurrentY%#@]
-This assumes your label settings are located at: \ThemeName\Config\labels.rc
-Helpful Hint: If you want to make several floater labels and have them all use the same bang, put the OnMove in a label group, and use %[labelname]% instead of floater throughout the !execute line. Then, simply add all your floater labels to the label group (see AddToGroup in the xlabel help file). The floater labels themselves don't need the OnMove, in that situation, since the group they belong to will handle it.