WW Intouch Scripts ScrollBars

SkyTech

Member
Join Date
Apr 2013
Location
Porto
Posts
16
Hi everyone!

I am using diferente windows sizes on my aplication, and some of them need horizontal and vertical scrollbars for the user to be able to see the entire content of that window.

I found some information on the web in the TechNote429 but i cant put it working but everytime i write down the script it comes with the error "Expected Assigment" and i cant finish it.
The scripts is the following:

"Horizontal_Position = #HorzScrollBar.Value;
MoveWindow( WindowName, 0 - Horizontal_Position, 0 - Vertical_Position, ThisWindowWidth, ThisWindowHeight);
"

If anyone knows how to solve this or a better way to do it please helpe me out!
icon10.gif
 
I've never attempted to do this because it is such a bad idea from a design standpoint. Create your windows to fit your display or figure out your scripting error. When you get the "Expected Assignment" error, your cursor should move to the location in which you have made an error in creating the script. Sounds like perhaps you are copying an example script without creating the necessary tags for the script to actually run.
 
This is from the WonderWare help:
WWMoveWindow.jpg


Below is an example of a script I have used. This will move the window to the left by 460 pixels.

WWMoveWindow("WindowName", -460,5,2724, 647);


This can be useful if you want a window to have more graphic elements on it than can be displayed within a normal screen size. The data contained in the window that is off screen continues to update so when you scroll over there is no I/O update delay. It is also quicker than bouncing between 2 windows. I've only done this in a couple of applications where it made sense. It's another tool to have in your toolbox.


The error your getting is because you have text in the instruction that the software thinks should be tags but you haven't defined them as tags. You can use either numbers or memory tags and load values into the tags using more scripting. I use tags.
 
This is from the WonderWare help:
View attachment 27214


Below is an example of a script I have used. This will move the window to the left by 460 pixels.

WWMoveWindow("WindowName", -460,5,2724, 647);


This can be useful if you want a window to have more graphic elements on it than can be displayed within a normal screen size. The data contained in the window that is off screen continues to update so when you scroll over there is no I/O update delay. It is also quicker than bouncing between 2 windows. I've only done this in a couple of applications where it made sense. It's another tool to have in your toolbox.


The error your getting is because you have text in the instruction that the software thinks should be tags but you haven't defined them as tags. You can use either numbers or memory tags and load values into the tags using more scripting. I use tags.
Hi everyone!

I am using diferente windows sizes on my aplication, and some of them need horizontal and vertical scrollbars for the user to be able to see the entire content of that window.

I found some information on the web in the TechNote429 but i cant put it working but everytime i write down the script it comes with the error "Expected Assigment" and i cant finish it.
The scripts is the following:

"Horizontal_Position = #HorzScrollBar.Value;
MoveWindow( WindowName, 0 - Horizontal_Position, 0 - Vertical_Position, ThisWindowWidth, ThisWindowHeight);
"

If anyone knows how to solve this or a better way to do it please helpe me out!
icon10.gif
Hi, I just did an easy thing using an event of two Key.
RECIPE_PAGE_POS is an integer

TO SCROLL DOWN
IF RECIPE_OPEN AND RECIPE_PAGE_POS >= -1000 THEN
RECIPE_PAGE_POS = RECIPE_PAGE_POS - 100;
WWMoveWindow( "Recipes", 0,RECIPE_PAGE_POS,1920,2000);
ENDIF;

TO SCROLL UP
IF RECIPE_OPEN AND RECIPE_PAGE_POS < 0 THEN
RECIPE_PAGE_POS = RECIPE_PAGE_POS + 100;
WWMoveWindow( "Recipes", 0,RECIPE_PAGE_POS,1920,2000);
ENDIF;


the page size is 2000 and the position move vertically of 100 pixes.
 
Last edited:

Similar Topics

I found a Color Picker and it has some demo script to set the InTouch Window to the color selected from a button actions script. It works but I'd...
Replies
0
Views
934
Hi everyone. has anyone found a way to located window names being used in scripts/animations. I tried cross reference but no luck. anyone has a...
Replies
1
Views
2,171
I am trying to write a script that will allow me to display different integers in the same space on my graphics page. Example being, I have six...
Replies
7
Views
7,324
I have a problem, I'm running an AE Licence Manager on a Windows 2016 Server, and my Window Maker is on another separate Windows 2016 Server. My...
Replies
0
Views
74
Hi all. Customer wants analog faceplates really bad, even if we explained that it doesn't make much sense in his process. What he wants to see...
Replies
5
Views
154
Back
Top Bottom