Jump to content

Recommended Posts

Guest scott2eyes
Posted

Hopefully this is just a very simple XML question- How do I put carriage returns (ie. skip to a new line) in a plugin?

What I want to do is have a long, narrow Calendar plugin down one side of the screen, but constrained so that the plugin text doesn't obscure the background image.

The only way I've figured out how to skip to a new line is by using a "y=whatever" in the formatting- however, if the line above it wraps and takes up more than one line, it seems to screw everything up- if that happens, I want the line below to shift down.

Can anyone help?

Posted

Not quite sure what you mean, but if you set a "w=xxx" (for Width) value in the plugin, it will send any text beyond that width onto the next line.

Hope thats what you mean! :wink:

Guest scott2eyes
Posted

It's half way there, but not quite what I'm after.

:)

What I'm looking for is simply the equivalent of hitting return at the end of each line (or hitting Alt+Return in a cell in Excel.) The closest I've got so far is discovering that in Visual Basic for Word, the string "^p" does the job, and it's starting to become a bit of a grudge against whoever designed XML... :?

Basically, I want my calendar plugin to look like this;

Next Appointment:

Time:

Location:

So that what comes out onscreen would be along the lines of this;

Next Appointment

Go to the doctor

Time: 5:00

Location: Surgery

The problem is that I don't know how to make each row automatically take the next line. If I put each line into it's own tags and set a y="XX" to set the position for every row, then if the line above it is too long and wraps onto the next liine, it is putting text in the same part of the screen twice, making a jumbled mess...

If I just put it all in one row and rely on the text wrapping (eg. with the w=xxx value) then it wraps OK, but doesn't know where each line should start- so you could end up with something like;

Next Appointment: Go

to the Doctors Time:

5:00 Location:

Surgery

Which admittedly tells me what I want to know, but is a bit sloppy...

The only alternative I've come up with so far is to have a seperate calendar plugins for each data field, but I can't believe there isn't a simple, less messy way of getting the results I'm after...

Posted

mmm ... I think what you are trying to do is beyond the capabilities of MS plugins. Its interesting to see that you are trying this tho, coz if you could get it to work, I'd love a bit of that meself!! :wink:

Sorry cant be of any more help! Let us know how you get on.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.