tbfunction_pgStyleObject

Hi Clifton,
I have noticed a new problem yesterday and today related to pgStyleObject. It would appear to have occurred because I re-exported several tbks (for the final time I hoped). Could it be that the latest version of Powerpac is causing this? The 'auto' propVal parameters for 'width' and 'height' do not function unless I repeat them. Here is an example:
Then when I try to use this, I find it necessary to redefine 'width' and 'height':
I won't export any more tbks for the time being.
John
UPDATE It is definitely occuring because of the export to web process. I downloaded earlier versions from my web server and the problem does not exist in these.
I have noticed a new problem yesterday and today related to pgStyleObject. It would appear to have occurred because I re-exported several tbks (for the final time I hoped). Could it be that the latest version of Powerpac is causing this? The 'auto' propVal parameters for 'width' and 'height' do not function unless I repeat them. Here is an example:
- Code: Select all
<info>
<pgStyleObject>
<![CDATA[
{ theStyle : "padding, width, height, box-shadow, cursor",
propVal : "4px, auto, auto, 5px 5px 5px, default" }
]]>
</pgStyleObject>
<function name="myUser" event="user" params="evt,value" useTB="true">
<![CDATA[
//info shows info relevant to buttons etc on all pages
tbfunction_pgTBObjSet("info", "visible", false); //user event sent after 8 seconds when there is no mouse and user taps to see contextual help messages.
]]>
</function>
</info>
Then when I try to use this, I find it necessary to redefine 'width' and 'height':
- Code: Select all
<function name="showInfo" event="" params="long,txt,pos,white,">
<![CDATA[
//System to display contextual help messages for all main pages.
if (keys.showHelp == true)
{
if (white == true )
{
tbfunction_pgStyleObject("info", "background-color", "white");
}
else
{
tbfunction_pgStyleObject("info", "background-color", "#FCFCBD");
}
tbfunction_pgStyleObject("info", "width", "auto"); //Why has this become necessary now? It has worked for years without a problem!!!
tbfunction_pgStyleObject("info", "height", "auto");
if (long == false)
{
tbfunction_pgStyleObject("info", "max-width", "175px");
}
else
{
tbfunction_pgStyleObject("info", "max-width", "1000px");
}
tbfunction_pgTBObjSet("info", "text", txt);
tbfunction_pgTBObjSet("info", "position", pos);
tbfunction_pgTBObjSet("info", "visible", true);
}
]]>
</function>
I won't export any more tbks for the time being.
John
UPDATE It is definitely occuring because of the export to web process. I downloaded earlier versions from my web server and the problem does not exist in these.