Source language: Translate to:

tmPSDGUI and Check Box / Print

Questions about NeoBook PlugIns

Moderator: Neosoft Support

tmPSDGUI and Check Box / Print

Postby Trainman » Sun Oct 08, 2006 8:54 am

I have been looking at using check box's to let a user select what me would like to see. I can get it to remove a layer but cannot get it back.


Code: Select all
If "[CheckBox1]" "=" "Checked"
tmPSDLayerTransparency "Rectangle20" "Signal" ""
Else
If "[CheckBox1]" "=" "UnChecked"
tmPSDGetTransparencyValue "Rectangle20" "Signal" "255"
tmPSDLayerVisible "Rectangle20" "Signal" "0"
EndIf


I know the code is wrong but can someone show me what I'm doing wrong please.

One other question is, can you print an image but with only a selected number of layers?

Yours

Trainman
Trainman
 
Posts: 113
Joined: Fri Apr 01, 2005 10:21 am
Location: England

Postby Alberto_Meyer » Sun Oct 08, 2006 10:56 am

You can turn some layers off, print the image and then turn on on the layers again.



If "[CheckBox1]" "=" "Checked"
tmPSDLayerTransparency "Rectangle20" "Signal" ""
Else
If "[CheckBox1]" "=" "UnChecked"
tmPSDGetTransparencyValue "Rectangle20" "Signal" "255"
tmPSDLayerVisible "Rectangle20" "Signal" "0"
EndIf


Send me an example pub with what you want to do. I prepare a snippet to you. I did not understand what you trying to do with the code above.

Thanks
TechMedia Software PlugIns
Plugins: www.techmediasoftware.com
Shareware: www.meyertools.com
User avatar
Alberto_Meyer
 
Posts: 385
Joined: Tue May 03, 2005 5:14 am

Postby Trainman » Mon Oct 09, 2006 2:52 am

I did not understand what you trying to do with the code above.


What I would like to do is, with Check Box's, be able to make layers invisible when selected and visible when deselected, so people can view information that relates to them.
Trainman
 
Posts: 113
Joined: Fri Apr 01, 2005 10:21 am
Location: England

Postby Alberto_Meyer » Mon Oct 09, 2006 4:52 am

Put on Checkbox onclick event

if "[CheckboxName]" "=" "Checked"
tmPSDLayerVisible "Rectangle1" "LayerName" "0"
else
tmPSDLayerVisible "Rectangle1" "LayerName" "1"
endIf


CheckboxName must be changed to reflect the checkbox name.
TechMedia Software PlugIns
Plugins: www.techmediasoftware.com
Shareware: www.meyertools.com
User avatar
Alberto_Meyer
 
Posts: 385
Joined: Tue May 03, 2005 5:14 am

Postby Trainman » Mon Oct 09, 2006 10:19 am

Thank you for the help, I can start working on the page layout for the print function.

Again Thank you

Trainman
Trainman
 
Posts: 113
Joined: Fri Apr 01, 2005 10:21 am
Location: England

Postby Alberto_Meyer » Mon Oct 09, 2006 10:41 am

If you need further information, please let me know. I´m working on a huge list of updates for neobook this month.

Thanks
TechMedia Software PlugIns
Plugins: www.techmediasoftware.com
Shareware: www.meyertools.com
User avatar
Alberto_Meyer
 
Posts: 385
Joined: Tue May 03, 2005 5:14 am


Return to PlugIn Discussions

Who is online

Users browsing this forum: No registered users and 1 guest

cron