Using tables

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Quan
Posts: 4
Joined: Wed Mar 12, 2008 2:45 pm

Using tables

Post by Quan »

Hi, I am new to this forum and have some experience wit Textpad 4.73.

I use textpad to create content for my Flash site. I want to create a table for projecting a pricelist. At the moment I use the normal format and use <br> between each line tha pace and the amount. Now I would like a proper invisible table so that the description is nice aligned on the left and the amaount nice aligned on the right.

Looking forward to some examples.
Quan
Posts: 4
Joined: Wed Mar 12, 2008 2:45 pm

Addional info

Post by Quan »

This the current code:

<font face="Arial" color="#110000" size="10"><b>Orthese silicone klein € 15,00<br>Orthese silicone middel € 24,00<br>Orthese silicone groot € 37,00<br>Orthonyxie remanit bilateraal, nagelbeugel € 30,00<br>1e plaatsing nagelbeugel (excl. instrumentele behandeling) € 15,00</b><br><br>

With this result:
Orthese silicone klein € 15,00
Orthese silicone middel € 24,00
Orthese silicone groot € 37,00

I would like to have:
Orthese silicone klein € 15,00
Orthese silicone middel € 24,00
Orthese silicone groot € 37,00

Do I do this with a table or other code? I would like to have a nice clean aligned look.

Thanks
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

May I suggest that you may get better results by going to one of the forums on this site for Kompozer, a web development product: http://wysifauthoring.informe.com/forum/index.php

You can still use TextPad to do your editing, but that is a better site for answers to questions like this.
Hope this was helpful.............good luck,
Bob
ACRobin
Posts: 134
Joined: Fri Nov 04, 2005 9:51 pm
Location: Northumberland,UK
Contact:

Post by ACRobin »

As Bob says - the Textpad forum is probably not the best place for HTML type questions.

To learn about all things to do with web try:

http://www.w3schools.com/html/html_tables.asp

Textpad is a great editor for generating your HTML
Quan
Posts: 4
Joined: Wed Mar 12, 2008 2:45 pm

It's not HTML

Post by Quan »

Hi Guy's,

It's not html. It's a flash site were I use Textpad as content editer. The code you see is the code used in Texpad.

Question is; how can I get my text on the left and my amounts on the right side aligned. Can you make a table with rows and colums in Textpad or are there other solutions?

See my website www.quanclinic.be and check the on the main menu "tarieven" and then select one of the top menu items and you can see what i mean.
ACRobin
Posts: 134
Joined: Fri Nov 04, 2005 9:51 pm
Location: Northumberland,UK
Contact:

Post by ACRobin »

Quan,
Not knowing what your input file is like - your raw data file, then it is hard to help.

I would say you type in you data file or have your data file you open in Textpad then you will need to run a regular expression against it to do the work of formatting - that or manually format the file contents or write a macro.

A php script or similar may also be used to format your data to produce your flash content.

Your information supplied to date contains too many gaps.

For formatting using regular expressions try the appropriate part of this forum or have a look at:

http://regexlib.com/Default.aspx
Quan
Posts: 4
Joined: Wed Mar 12, 2008 2:45 pm

Flash code

Post by Quan »

[/quote]Quan,
Not knowing what your input file is like - your raw data file, then it is hard to help.

I would say you type in you data file or have your data file you open in Textpad then you will need to run a regular expression against it to do the work of formatting - that or manually format the file contents or write a macro.

[/img]stop();

loadVariables("text/tarpodologie.txt","");

mnuLeft.btn_home.enabled=true;
mnuLeft.btn_consultatie.enabled=true;
mnuLeft.btn_behandeling.enabled=true;
mnuLeft.btn_tarieven.enabled=true;
mnuLeft.btn_pers.enabled=true;
mnuLeft.btn_team.enabled=true;
mnuLeft.btn_contact.enabled=true;

mnuTarieven.btn_lasertherapie.enabled=true;
mnuTarieven.btn_podologie.enabled=false;
mnuTarieven.btn_estim.enabled=true;
mnuTarieven.btn_injectables.enabled=true;
mnuTarieven.btn_gewichtsverlies.enabled=true;
//SCROLL
btnScrollUp.onRollOver = function(){
this.onEnterFrame = function() {
txtText.scroll -= 1;
}
}

btnScrollUp.onRollOut = function() {
delete this.onEnterFrame;
}

btnScrollDown.onRollOver = function(){
this.onEnterFrame = function() {
txtText.scroll += 1;
}
}

btnScrollDown.onRollOut = function() {
delete this.onEnterFrame;
}
This the flash code. As you can see the "load variables" are pointing to the txt file.

The txt file is created in Textpad. Is this more helpfull
Post Reply