PDA

View Full Version : Little problem


notta
09-21-2006, 10:33 PM
Guys, working on an autorun CD in the format of the Studio 8 installer, but not flash based. I have icons at the top for each of the 5 apps and depending upon what icon they choose the banner below the icon will change to the name of the application selected. Down at the bottom of the window I have a small banner that I have a label object that will read in a text file with the latest version. The text file basically reads "Current version: "Version number here""

Problem is that sometimes, not all the times, the last number in the line gets cut in half. I have to click on the icon again for it show up full. Here is what I have so far:

Image.SetVisible("Timbuktu Banner", true);
Image.SetVisible("Timbuktu Bottom Banner", true);
Image.SetVisible("Aventail Banner", false);
Image.SetVisible("Aventail Bottom Banner", false);
Image.SetVisible("Symantec Antivirus Banner", false);
Image.SetVisible("Symantec Bottom Banner", false);
Image.SetVisible("Lotus Notes Banner", false);
Image.SetVisible("Lotus Bottom Banner", false);

Label.SetVisible("Timbuktu Version", true);
Label.SetVisible("Aventail Version", false);
Label.SetVisible("Lotus Notes Version", false);
Label.SetVisible("Symantec Version", false);

result4 = TextFile.ReadToString("AutoPlay\\Docs\\timbuktuver.txt");
Label.SetText("Timbuktu Version", result4);
Label.SetSize("Timbuktu Version", 190, 150);

As you can see this one is the onclick for the Timbuktu icon at the top. The user will select to install Timbuktu. The banner for Timbuktu will become visible and all other banners will be set to not visible. Down bottom I set the Timbuktu Bottom Banner to true and all other bottom banners to false. Also the Timbuktu label that is overlaying the bottom banner it set to read in the version and display while hiding all other application labels.

I'm kind of rigging the label boxes because each label is a different size and I have to adjust the attribute for each label so it will be the correct font size inside the bottom banner. I researched the docs and the forum, but this is the only way I could come up? Any ideas why sometimes the last character is getting cut off?

Lorne
09-22-2006, 10:04 AM
What is contained in the text file when that happens?

What font are you using? (Sometimes if it's a weird font, or if it's italicized, the right edge might get cut off a little bit, depending on the text being displayed...you could try adding some spaces at the end to make up for it if that's the case.)

Why not use a paragraph object for this, though? That way you can just set it to be large enough for everything and you don't have to bother with changing the size from script...

notta
09-22-2006, 01:07 PM
The timbuktuver.txt reads -- "Current Version: 5.1 Build 219" without quotes. The thing is that the problem is random. It seems any of the 5 icons can start the problem. Every click after that has their label's last letter cut in half until I click the starting icon again and than it doesn't happen again the entire time. Strange huh?

I'm at work, but the font is either Arial or Times New Roman and not in italics, so I that shouldn't cause the problem. I like the idea about spaces at the end and I'll try that tonight when I get home.

The banner at the bottom is only 23 pixels wide, so that's why I used a label. I'll try that tonight and let you know how I made out.

One more basic question and I'm sure it's been asked before, but searching for flash brings up many, many hits, so I'll ask here if you don't mind. If I change my banners into flash objects and the user doesn't have flash installed on their machine yet, I imagine the banner will not show correctly? Most users are probably going to use this CD on fresh rebuilds and may not have installed Flash player yet before using this CD. Is there a way around that in case the user hasn't installed flash player yet? Thanks.