Anyone sortetd out the way to call the virtual Keyboard in Webos for Glbasic ?
I was wondering about this myself.
Its possible with the Tablet :
PDL_Err PDL_SetKeyboardState(PDL_bool bVisible)
But seems not with otehr devices...
Could always use DDgui :)
I'm not sure is this is in the PDK I use. And I won't update, because it might break compatibility with the Pixi. Very bad, because we can't use DECLARE as well ( remember the rejection due to the use of dlopen()? )
The other devices don't need the virtual keyboard (seeing as they all have actual ones), so that should be good enough for Touchpad anyway :)
want a touchpad-only compilation then? It's because - I have to statically link to the SDK library.
No, it's fine as it is :)
Quote from: Kitty Hello on 2011-Sep-14
I'm not sure is this is in the PDK I use. And I won't update, because it might break compatibility with the Pixi. Very bad, because we can't use DECLARE as well ( remember the rejection due to the use of dlopen()? )
Thats true :)
Team,
My suggestion is to have a GLBasic commands for WebOS like the PDL commands below.
What do you think?
PDL_GetHardwareID(void);
It returns the following
HARDWARE_UNKNOWN -1
HARDWARE_PRE 101
HARDWARE_PRE_PLUS 102
HARDWARE_PIXI 201
HARDWARE_VEER 301
HARDWARE_PRE_2 401
HARDWARE_PRE_3 501
HARDWARE_TOUCHPAD 601
Also implement a command to display the virtual keyboard:
PDL_Err PDL_SetKeyboardState(PDL_bool bVisible)
Returns
PDL_NOERROR - Success
PDL_ECONNECTION - Could not communicate with the card.
PDL_EOTHER - Not allowed to bring up the keyboard as a plugin.
Quote from: MrTAToad on 2011-Sep-14
Its possible with the Tablet :
PDL_Err PDL_SetKeyboardState(PDL_bool bVisible)
But seems not with otehr devices...
Could always use DDgui :)
Sorry, how exactly do you call this from GLB?
Theoritically you would just use something like :
INLINE
extern "C" int PDL_SetKeyboardState(int);
ENDINLINE
FUNCTION test%:
INLINE
PDL_SetKeyboardState(true);
ENDINLINE
ENDFUNCTION
Unfortunately as Gernot won't be using the 3.0 SDK, it may not work...
It would be:
IMPORT "C" int PDL_SetKeyboardState(int bVisible)
However, I don't think my library has this. If you download the SDK 3.0, there might be a library that contains it. But I'm uncertain if the program will start at all on firmware versions lower than 3.0 then. So.. it's pretty much a dead end as I see it.
OK. No worries. I didn't need it for myself right now, just wanted to test it and have a keyboard routine for something I may need in the future.
Cheers.