NetTalk Central

Author Topic: I'm missing something about adding a CSS file  (Read 3720 times)

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
I'm missing something about adding a CSS file
« on: September 10, 2009, 06:58:58 PM »
Hi all, I have a help file system built into my app. The screen pops up from wherever the user clicks on the help icon. Works great, but I need to give help screens its own style.

I created the style in a new style, added the file to my app. I created a new PageHeaderTag proc and attached the help related procs to it. But how do I specify where to use that style?

Do I simply use different style class names; ones that appear only in the new .css file, then use just those names in the new procs? Or is there an easier way to point to that style file for a particular procedure? Thanks for any tips.
Mike Grigsby
Credify Systems
Central Oregon, USA

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: I'm missing something about adding a CSS file
« Reply #1 on: September 10, 2009, 09:33:16 PM »
Hi Mike,

>> I created the style in a new style, added the file to my app. I created a new PageHeaderTag proc and attached the help related procs to it. But how do I specify where to use that style?

There is a CSS tab on all the templates where the styles used in that template are listed.

>> Do I simply use different style class names; ones that appear only in the new .css file, then use just those names in the new procs?

yes.

>> Or is there an easier way to point to that style file for a particular procedure?

no, styles are not organized by "file". There are ways of removing the default style file and replacing it with your file, but that's complicated, and frankly not a good approach.

Cheers
Bruce

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Re: I'm missing something about adding a CSS file
« Reply #2 on: September 10, 2009, 09:46:49 PM »
My problem is the app uses a background image in the PageBody (I think), which is difficult to read, and unwanted, in the help windows. Any suggestions on how to handle that?
Mike Grigsby
Credify Systems
Central Oregon, USA

ccordes

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
    • Email
Re: I'm missing something about adding a CSS file
« Reply #3 on: September 11, 2009, 07:35:30 AM »
Just add a new class in your new css file and reference that class in the body tag in the help page. <body class="HelpBody">

For my help, I use static pages which call their own css file. My help button calls a procedure HdrHelp('AcctEntryHelp.html') which generates something like window.open('''&clip(pagename)&''

I would like to do some 'real' html help system, but for now separate help pages seem to work.

chris
Real programmers use copy con newapp.exe