PDA

View Full Version : Adding Buttons in PPG Layout????


kewboard
02-02-2006, 09:38 PM
Hi All

Well I have created a PPG Layout using the PPGLayout command and i have added some buttons on it also. But my problem is that i cant make these buttons to work. I am unable to connect the buttons with the variables i have on the PPG. Also when i can ony have one property per page so how can i get more than one property on a single page. I m writing the script that i am using for the buttons.

oPPGLayout.Logic = BUTTONNAME_OnClicked.toString() ; //BUTTON ADDED
oPPGLayout.Language = "JScript" ;


function BUTTONNAME_OnClicked()
{
var curselection = GetValue("SelectionList");
SetValue (curselection & ".root.primary_icon"), 2;
SetValue (curselection & ".root.size"), oPSet.Parameters( "Size_val" ).Value;
}

but i guess they are not getting connected.

So kindly help me. Thanx

montclaris
02-03-2006, 10:26 AM
please forgive me if i'm mistaken, but it looks like you're talking about a class (PPGLayout) that would be SDK specific. If so, you have to tell what software this SDK is working with, or people here won't be able to help you. These software specifics questions may be better answered on their specific boards, too ?

CGTalk Moderation
02-03-2006, 10:26 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.