Menu

keyboard control

Android
Anonymous
2016-09-12
2016-11-12
  • Anonymous

    Anonymous - 2016-09-12

    Hi!
    Is there a way, within a basic program, to enable, and then disable the keyboard using code? Manually invoking the keyboard squeezes the graphics window down, and appears to ask too much from the user.
    Thanks,
    Kevin

     
  • Markus Hoffmann

    Markus Hoffmann - 2016-09-13

    No, not so far. However the squeezing could be swiched off in the settings of the app. Maybe the keyboard should always automatically appear when using INPUT. Or we need a new command KEYBOARD ON/OFF

     
    • Anonymous

      Anonymous - 2016-09-15

      I've probably mis-posted this (there may have been a reason, but I don't remember), but this is an Android application (lollypop) I'm working on. With regard to a KEYBOARD on/off command, my first instinct is that that would be great for me, but there is no way to know if it would do what I wanted it to do.

      I'm still trying to get past all the other obstacles in my path, while ignoring the keyboard problem.
      I've just realized that CLS was the cause of my problems re-drawing a graphic screen (a 2 day ordeal).

      This BASIC is really fast and full of things that I would never probably use. I salute you for your endeavors!

      Kevin

       
  • Markus Hoffmann

    Markus Hoffmann - 2016-09-23

    Hi Kevin,

    I have just implemented the commands
    HIDEK and
    SHOWK
    which should do what you want.
    HIDEK hides the virtual keyboard on Android and SHOWK shows it. You may want to use
    sequences like:

    ' somecode her
    SHOWK
    INPUT "Ender a number: ",a
    HIDEK
    PRINT "The number is ";a
    ' ...
    

    The new release 1.25-44 has it.

     

    Last edit: Markus Hoffmann 2016-09-23
    • Kevin

      Kevin - 2016-11-12

      Been so busy coding (troubleshooting might be a better term) that I forgot to comment on HIDEK & SHOWK. They seem to work very well, and provide a much better and professional implementation that the alternative. Thanks again!

       
  • Anonymous

    Anonymous - 2016-09-26

    Wow, thanks. I can't believe things can happen that fast!
    It may be some time before I can try it out, but thanks so much!
    Kevin

     
  • Anonymous

    Anonymous - 2016-10-04

    Well, I'm not the brightest light in the cosmos, but I finally tried to download 1.25-44 with the keyboard hide/show command, but could only find 1.24-30, or was that 1-24-30 (what I wrote down). Is this simply something I must wait for? Doesn't matter, because I'm still in the development stage and can wait until it's ready.
    Kevin

     
  • Markus Hoffmann

    Markus Hoffmann - 2016-10-16

    Is this still an issue?

     
  • Kevin

    Kevin - 2016-10-25

    No, it's not. It was a week before I realized that you had posted this, and a couple more days, before I figured out that I now had to register in order to answer, and only yesterday that I finally attempted to download it. Sorry for the delay.

    However, I have another question for you, if you don't mind. When I first downloaded X11, it was from Google, and that was directly to my smartphone. That all occurred with no problem. Now, in an attempt to download V1.25-44 from sourceforge, I'm doing it from my laptop. What I get is a .zip file in which I can see the unzipped files, but cannot determine what I need to do in order to transfer the proper files to my smartphone. Can you offer assistance? I'm sorry to ask, but it would be greatly appreciated!

    Kevin

     
  • Markus Hoffmann

    Markus Hoffmann - 2016-10-25

    Hi Kevin, the .zip file contains the WINDOS version of X11-Basic. The Android version is contained in an .apk file which smoothly installs on the smartphone. Why dont you directly download and install the .apk file into your smartphone? (no laptop needed).
    Do not use the green downloadbutten offered you by sourceforge. This offers the windows version if you use windows and the android version, only if you come there from the phone.
    Go to the Files section of the X11-Basic page on sourceforge (or take the download link from the Homepage), then you can download any version you like. (Preferably from the Android folder, which you will be offered).

    I hope, hat helped. Google play store is nice for used, but it is a pain for developers. Therefor I update the version there only once a year. Also that version askes for "update me" and "rate me" all the time. Which is annoying.

     
  • Kevin

    Kevin - 2016-10-28

    Thanks so much for the info!
    Downloading was easy, but was not expecting the previous version to be updated, hoping to hold onto that until my next revision was working. Nevertheless, I see no problems with the new v1.25-44.
    However, I'm going to have to post a new potential problem in the Android area.

    Kevin

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.