1. #1
    New Member Follow User Gallery
    Join Date
    Jan 2015
    Posts
    4

    Smile Need Some Button Advice for Touch Screen PC`s

    Hi all,

    I`m looking for some help and advice about creating some simple buttons in ZScript.

    Firstly I have only been using it today so I am a super noob, so be gentle

    I essentially want to add three buttons to my UI which I can hold to replicate holding the Control, Shift and Alt keys. This will be for use with tablet PC`s, like the Surface Pro, where you may not have access to a keyboard or want to use one.

    I have RadialMenu which is a good on screen keyboard tool, but it has its issues so was looking for something more hard coded into ZBrush.

    The aim is to create a Surface Pro 3 friendly UI to share with the community...

    Below is what I have so far, which works but the button press is a just a quick click where I want to be able to hold one which I work.

    [CODE]

    [ISubPalette,"ZPlugin:Buttons"]


    [IButton
    ,"ZPlugin:Buttons:CTRL","CTRL",[IKeyPress, 512, [IClick, 512]], 0, 200]


    [IButton
    ,"ZPlugin:Buttons:ALT","ALT",[IKeyPress, ALT, [IClick, 1024]], 0, 200]


    [IButton
    ,"ZPlugin:Buttons:SHIFT","SHIFT",[IKeyPress, SHIFT, [IClick, 256]], 0, 200]


    [/CODE]

    Thanks in advance for any advice!

  2. #2

  3. #3
    Moderator Follow User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    11,462

    Default

    Yes, I think Kaleid's suggestion would be worth trying.

    I can't see a zscript solution working, as there is no way to simulate a 'press and hold down' of a button.

  4. #4
    New Member Follow User Gallery
    Join Date
    Jan 2015
    Posts
    4

    Default

    Thanks for the reply!

    I`ve been using the Art Dock, and the RadialMenu which work but if you press and hold Alt, and then touch the screen with your hand it can ignore the button press.

    I was just looking for a way to add those buttons into ZBrush`s own UI.

    I have the buttons working, but then activate on release and thats all.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •