Forum Discussion

Beginner_O's avatar
Beginner_O
New Contributor
15 years ago

THICKNESS (incr/decr) is realized as ScrollBar. Each click: - or+ '1'

I test the BETA-version of Graphical Engineering Station (Black Box).


TC = 7.52-trail version.    TC lang.= VBScript.     Application=C++,  using Codejock SoftWare.


As I can see, the functionality THICKNESS (increase/decrease) is realized as ScrollBar. Each click adds/subtracts ‘1’. See attached picture.

But the script did not reflect any movement of the ScrollBar,
so it does not affect the line-thickness. How can I fix this problem?


Example: We’d like to change the line-thickness from 3 to 7. The following script does not work.


Sub Test6


  Dim scrollBar


  Set scrollBar = Aliases.SimClient.dlg.ScrollBar


  scrollBar.wPosition = 0


  scrollBar.wPosition = 0


  scrollBar.wPosition = 0


  scrollBar.wPosition = 0


End Sub

  • Hi,



    Your script doesn't move the scroll bar - it assigns 0 to the scroll bar's position in each line. Try assigning different numbers. Does this work?
  • Beginner_O's avatar
    Beginner_O
    New Contributor

    I   can  not  assign different values.


    OBJECT PROPERTIES Window:


    wMAX  = 0  (TC does not allow to change this value)


    wMIX  = 0   (TC does not allow to change this value)


    wPosition = 0


    ------------------- -------------------------------

    So if I try to re-write the script manually like this:


    Sub Test6


      Dim scrollBar


      Set scrollBar = Aliases.SimClient.dlg.ScrollBar


      scrollBar.wPosition = 0


      scrollBar.wPosition = 5


      scrollBar.wPosition = 10


      scrollBar.wPosition = 20


    End Sub


    It fails.


    OBJECT BROWSER: Failed to set the scroll bar position to 5. 0 was set instead of it.


    REMARKS: Minimum: 0 Maximum: 0.


          Aliases.SimClient.dlg.ScrollBar


          (Sys.Process("SimClient").Window("#32770", "ROTATE", 1).Window("ScrollBar", "", 1))





  • Hi,



    In this case, it looks like your scroll bar behaves in a non-standard way. Use coordinate-based clicks on its buttons to change its position.