Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting text in a TB
#1
I used the example in Samples2 to set text in a "static" in a toolbar. The example works fine, but when I started changing names it failed everytime. It seems if the toolbar has lower case chars in it's name the set text macro fails. Upper case and the example -which contains lower case- works fine though?!?! I'm pulling my hair out trying to figure this out. Maybe its my computer. I attached the test code.
  • Here's my test condition:
    Run "J UPPERCASE", it'll create a toolbar.
    Run "j uc set text", it'll put text in the TB.
    Right click and close the TB
    Run "j lowercase", it'll create a toolbar.
    Run "j lc set text", it errors saying it can't find the window??
    Right click and close the TB


Attached Files
.qml   TB Hook Test.qml (Size: 954 bytes / Downloads: 363)
Matt B
#2
Toolbar window name is toolbar name in uppercase.

Code:
Copy      Help
;text.setwintext(id(1 win("j lowercase" "QM_Toolbar")))
text.setwintext(id(1 win("J LOWERCASE" "QM_Toolbar")))


Forum Jump:


Users browsing this thread: 1 Guest(s)