Announcement

Collapse
No announcement yet.

Problem on Keypad And button.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem on Keypad And button.

    Hello ,

    i am using 70DCT-CLB. i want to do one task like whenever i am pressing any winbutton keypad will be open and whenever i am pressing the same button keypad will be hide.
    and another task is whenever i am pressing any userbutton this user button are on and other userbutton are hide same to the all the butttons but one more thing those values will not be changed at any position.
    please guide me how can i do this tasks.

    your regards,
    Seggi.

  • #2
    Hi Seggi,

    Can I ask what environment are you using? If you are using ViSi-Genie, you can use ViSi-Genie Magic in order to achieve what you want.

    For hiding the keyboard, you can set the image index to -1 and disable the touch at the same time

    Code:
    for (i := iKeyboard0+1; i <= iKeyboard0+oKeyboard0[Ofs_kb_Buttons]; i++)
    img_SetAttributes(hndl, i, I_TOUCH_DISABLE);
    next
    img_SetWord(hndl, iKeyboard0, IMAGE_INDEX, -1);
    img_Show(hndl, iKeyboard0);
    To show the keyboard, do not forget to enable the touch
    Code:
    for (i := iKeyboard0+1; i <= iKeyboard0+oKeyboard0[Ofs_kb_Buttons]; i++)
    img_ClearAttributes(hndl, i, I_TOUCH_DISABLE);
    next
    img_SetWord(hndl, iKeyboard0, IMAGE_INDEX, 0);
    img_Show(hndl, iKeyboard0);
    and another task is whenever i am pressing any userbutton this user button are on and other userbutton are hide same to the all the butttons but one more thing those values will not be changed at any position.
    For the second condition, I am unsure of what you are trying to implement. In any case, to hide the button, you can just set the image index to -1 just like what you used on the keyboard.

    I hope this helps.

    Best Regards,
    Kevin
    Last edited by John Kevin; 2 weeks ago.

    Comment


    • #3
      hello john kevin,

      i am not understand your code .but you has said the typing -1 to hiding the any object .i was already do this but they create the blank space at this position and whenever i am touching at this place keys are again poping up. i am using the visi-genie enviourment.

      Best Regards,
      Seggi.

      Comment


      • #4
        Hi Seggi,

        How are you implementing this on your project? I have attached an example for additional reference.

        I hope this helps.

        Best Regards,
        Kevin
        Attached Files

        Comment


        • #5
          Hello john ,


          i can't open this file i get the error message like Error Loading 'G:\HideKbrd.4DGenie' Unknown option maxstring.
          Error Loading 'G:\HideKbrd.4DGenie' Unknown option Comrx1pinldx
          How to open this file ?
          pls guide me onto this.

          Comment


        • #6
          Hello john ,

          as per your suggestions i was install the new workshop ide as per your given link but whenever i am opening your given design the error msg like the you requires the workshop pro
          Now what can i do?

          Best Regards,
          Seggi.

          Comment


          • John Kevin
            John Kevin commented
            Editing a comment
            Hi Seggi,

            Yes, you need the Workshop4 PRO version. The program utilizes the ViSi-Genie Magic to hide and show the keyboard widget using a button for a trigger.

            Best Regards,
            Kevin

        • #7
          hello john,

          ok,but we can't do it with the other method in a my workshop4 ide version?
          please give me another suggestion.

          Best Regards,
          Seggi.

          Comment


          • #8
            Hi Seggi,

            This should be possible using the ViSi Environment.

            Here is an application note to get you started in ViSi Environment.
            AN-00119 ViSi Getting Started - First Project for Picaso and Diablo16
            https://4dsystems.com.au/blog/4d-an-00119/

            There is also an application note for using the keyboard object on ViSi:
            AN-00073 ViSi Keyboard
            https://4dsystems.com.au/blog/4d-an-00073/

            I hope these links may help you with your application.

            Best Regards,
            Kevin

            Comment

            Working...
            X