GLBasic forum

Main forum => GLBasic - en => Topic started by: fjsantosb on 2009-Sep-04

Title: iPhone Keyboard
Post by: fjsantosb on 2009-Sep-04
Hi, i wonder is there is a way throught GLBasic to brings iPhone keyboard on screen, or if i have to code my own keyboard to save record's name.

Thanks in advance.

Best regards, fjsantos.
Title: Re: iPhone Keyboard
Post by: Kitty Hello on 2009-Sep-04
not, yet. Trucidare has some code youcan "IMPORT", IIRC. We plan using it for the "INPUT" command.
Title: Re: iPhone Keyboard
Post by: fjsantosb on 2009-Sep-04
Ok, thanks for the info!

I will look for her code.

Best Regards, fjsantos.
Title: Re: iPhone Keyboard
Post by: codegit on 2009-Sep-05
Easy access to the iPhone/iTouch keyboard will be a BIG bonus.  =D  Thanks for such a great product, you guys ROCK.  :good: Moving from Blitzbasic to GLBASIC was the best thing I ever did.  ;/ It is soooooooo nice to have a developer that really cares about his users.  :good:
Title: Re: iPhone Keyboard
Post by: trucidare on 2009-Sep-06
her >_>

here a screenshot of work in progress



[attachment deleted by admin]
Title: Re: iPhone Keyboard
Post by: fjsantosb on 2009-Sep-06
Hi Trucidare,

It's exactly like iPhones Keyboard, Impressive Work!

A few question about it.

It will be skinnable? Do you think that will be ready soon?

Best Regards, fjsantos.
Title: Re: iPhone Keyboard
Post by: trucidare on 2009-Sep-06
this is the iPhone Keyboard.
Title: Re: iPhone Keyboard
Post by: fjsantosb on 2009-Sep-07
Well, i finally got to manage my own keyboard routine, based on iPhone keyboard and skinned for my game.

This is how looks like.

Best Regards, fjsantos.

[attachment deleted by admin]
Title: Re: iPhone Keyboard
Post by: Marmor on 2010-Mar-25
was already realized? I would like to use the keyboard
Title: Re: iPhone Keyboard
Post by: Kitty Hello on 2010-Mar-26
So far the keyboard is not available, yet.
You can try DDgui_input$() as an alternative.
Title: Re: iPhone Keyboard
Post by: BdR on 2011-Jan-30
*kicks thread*

Just wondering, is it still not possible to use the default iphone keyboard? The screenshot by trucidare looks great.

edit: also, is it possible to access the iphone dialogbox API from GLBasic? So I mean for example a messagebox "upload scores? yes/no".
Title: Re: iPhone Keyboard
Post by: Marmor on 2011-Jan-30
mee to
Title: Re: iPhone Keyboard
Post by: Kitty Hello on 2011-Jan-31
I have code for a message box. But no yes/no. Trucidare?

Separate iPhoneMsgBox.mm file:
Code (glbasic) Select

#if defined (TARGET_OS_IPHONE)
#import <UIKit/UIAlert.h>

extern "C" void iPhoneMessageBox(const char* pText, const char* pInfo)
{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:[NSString stringWithCString:pInfo length:strlen(pInfo)]
message:[NSString stringWithCString:pText length:strlen(pText)]
   delegate:nil
  cancelButtonTitle:@"OK"
  otherButtonTitles: nil];
[alert show];
[alert release];
}
#endif



Title: Re: iPhone Keyboard
Post by: Hark0 on 2011-Feb-01
OH MY GOD!!!!


I LOVE YOU MEN!!!!!!!
:nw:
Title: Re: iPhone Keyboard
Post by: trucidare on 2011-Feb-01
uhm i send a complete code 1 year ago???

u need for this snippet a target method to get the value typed.
Title: Re: iPhone Keyboard
Post by: Neurox on 2011-Feb-01
Sorry, but I got this error :

Code (glbasic) Select

iPhoneMsgBox.mm:2:26: error: UIKit/UIAlert.h: No such file or directory


Have I forgot something?
Title: Re: iPhone Keyboard
Post by: matchy on 2011-Feb-01
Did you add or is the UIKit framework in the resources?
Title: Re: iPhone Keyboard
Post by: Slydog on 2011-Feb-01
When are we allowed to call the iPhone's GUI, such as 'iPhoneMessageBox()'?
Anytime? And GLBasic will get control after the GUI has been closed?
Does GLBasic keep running behind the GUI too?  (ie, do we need to implement an iPhone_GUI state?)
I'm just wondering how the iPhone and GLBasic keep things straight.

I was going to do my own keyboard, like fjsantosb (nice job btw!), but if I could just call the iPhone's that would save some time.
(Or not! depends on how hard that is!)
Title: Re: iPhone Keyboard
Post by: Neurox on 2011-Feb-01
Quote from: matchy on 2011-Feb-01
Did you add or is the UIKit framework in the resources?

I'm sorry but I think I lost some steps.  :(
I have copy the folder Headers from XCode inside GLBasic?
Title: Re: iPhone Keyboard
Post by: Kitty Hello on 2011-Feb-02
Neurox, no - just include the .mm file in the XCode project. Don't try to compile it with the GLBasic compiler. Otherwise, you need all headers and frameworks.
Title: Re: iPhone Keyboard
Post by: trucidare on 2011-Feb-02
Untested...

http://pastebin.com/vLcTxCX5
Title: Re: iPhone Keyboard
Post by: Neurox on 2011-Feb-02
Quote from: Kitty Hello on 2011-Feb-02
Neurox, no - just include the .mm file in the XCode project. Don't try to compile it with the GLBasic compiler. Otherwise, you need all headers and frameworks.

Thanks,
Ok now running but appear nothing  :(
Title: Re: iPhone Keyboard
Post by: trucidare on 2011-Feb-02
the code part from gernot shows only a message alertbox
Title: Re: iPhone Keyboard
Post by: Neurox on 2011-Feb-03
Quote from: trucidare on 2011-Feb-02
the code part from gernot shows only a message alertbox

I tried again, but no show allert box appears  :(