BBC BASIC
« Keyboard doesn't pop up Android 4.4.4 »

Welcome Guest. Please Login or Register.
Mar 31st, 2018, 10:43pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Cross-platform BBC BASIC (Windows, Linux x86, Mac OS-X, Android, iOS, Raspberry Pi)
BBC BASIC Resources
BBC BASIC Help Documentation
BBC BASIC for Windows Home Page
BBC BASIC Programmers' Reference
BBC BASIC Beginners' Tutorial
BBC BASIC for SDL 2.0 Home Page
BBC BASIC Discussion Group

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Keyboard doesn't pop up Android 4.4.4  (Read 263 times)
RNBW
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 23
xx Keyboard doesn't pop up Android 4.4.4
« Thread started on: Apr 3rd, 2017, 4:18pm »

This program showing a 4x4 grid in a dialog box works on BBCSDL Windows, but when running it on Android 4.4.4, the keyboard doesn't pop up, so I can't enter any data into the textboxes.

Code:
      ON ERROR IF ERR=17 CHAIN @tmp$+"../examples/touchide" ELSE MODE 3 : PRINT REPORT$ : END


      REM Program to demonstrate the capabilities of the DLGLIB library
      REM By Richard Russell,  http://www.rtrussell.co.uk/  19-Jul-2016
      REM Program: Four Column Grid of Texboxes by RNBW 20 October 2016

      INSTALL @lib$ + "dlglib"

      REM!WC Windows Constants:
      SS_CENTER = 1


      REM Set font according to platform:
      IF INKEY(-256) = &57 THEN
        *FONT Segoe UI,10
      ELSE
        OSCLI "FONT """ + @lib$ + "DejaVuSans"",10"
      ENDIF

      REM Create the dialogue box 'template':
      dlg% = FN_newdialog("Four Column Textbox Grid", 300, 140)

      row = 0: col = 0
      rowHt = 10: colWd = 35
      FOR row = 1 TO 3
        FOR col = 1 TO 4
          a$ = STR$(row) + STR$(col)
          a = VAL(a$)
          PROC_textbox(dlg%, "", a, (20+colWd*col)-colWd, row*rowHt+1, colWd+1, 10, 0)
          PRINT a      : REM Prints out the handle ref of textbox
        NEXT col
      NEXT row

      PROC_static(dlg%, "Enter text into the twelve textboxes above", \
      \           98, 20, 50, 152, 12, 0)


      PROC_button(dlg%, "OK", 1, 12, 108, 56, 14, 0)
      PROC_button(dlg%, "Cancel", 2, 92, 108, 56, 14, 0)
      PROC_static(dlg%, "Enter has the same effect as clicking OK", \
      \           99, 4, 128, 152, 12, SS_CENTER)


      PROC_registerdlgcallback(dlg%, FNmycb())
      result% = FN_showdialog(dlg%, &80000000, &80000000)

      row = 3: col = 4
      DIM tb$(row,col)
      a = 0
      FOR row = 1 TO 3
        FOR col = 1 TO 4
          a$ = STR$(row) + STR$(col)
          a = VAL(a$)
          IF result% = 1 THEN
            tb$(row,col) =  FN_getdlgitemtext(dlg%, a)
          ENDIF
        NEXT col
      NEXT row

      PROC_closedialog(dlg%)

      VDU 4, 30
      IF result% = 1 THEN
        PRINT "OK pressed, settings were:"
        FOR row = 1 TO 3
          FOR col = 1 TO 4
            PRINT "Text box ";STR$(row)+",";STR$(col); " contained """ tb$(row,col) """"
          NEXT col
        NEXT row
      ELSE
        PRINT "Cancel pressed"
      ENDIF

      END     : REM END OF PROGRAM

      REM FUNCTIONS
      DEF FNmycb(D%,K%)
      IF K% = 13 THEN = 1
      = 0
 
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 803
xx Re: Keyboard doesn't pop up Android 4.4.4
« Reply #1 on: Apr 3rd, 2017, 4:47pm »

on Apr 3rd, 2017, 4:18pm, RNBW wrote:
This program showing a 4x4 grid in a dialog box works on BBCSDL Windows, but when running it on Android 4.4.4, the keyboard doesn't pop up, so I can't enter any data into the textboxes.

You probably need to add an explicit:

Code:
      *osk on 

(only when running on Android of course).

Richard.
User IP Logged

RNBW
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 23
xx Re: Keyboard doesn't pop up Android 4.4.4
« Reply #2 on: Apr 3rd, 2017, 10:24pm »

Thank you Richard. That solved the problem and the program now works perfectly.

Ray
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls