Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Invisible Touch Area
Author | Message | ||||
Zonker Guru Joined: 18/08/2012 Location: United StatesPosts: 761 |
Good evening all..! I was trying to create button touch areas on top of small BMP file images to make graphic looking buttons but I can't seem to get past the command... touch size 100,100 touch create 0,100,100 do while touched(0)=0: loop the create produces a syntax error... not sure why... PDF says: TOUCH CREATE r, x, y Will create a touch sensitive area on the screen with no corresponding visible image. 'r' is the reference number. 'x' and 'y' are its position in pixels Has anyone else tried this..? |
||||
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3194 |
What line creates the syntax error? Geoff Graham - http://geoffg.net |
||||
Zonker Guru Joined: 18/08/2012 Location: United StatesPosts: 761 |
Hi Geoff..! It's the create line "touch create 0,100,100" that trips the syntax error... Not sure why.. I think I am typing it in right.. |
||||
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3194 |
Damn, it is a bug. The workaround is to add two dummy parameters to the command. For example: TOUCH CREATE 1, 100, 100
will cause a syntax error, while TOUCH CREATE 1, 100, 100, "", 0
will work correctly (the last two parameters are ignored). I will fix it in the next release. Geoff Geoff Graham - http://geoffg.net |
||||
Zonker Guru Joined: 18/08/2012 Location: United StatesPosts: 761 |
Good evening fine Sir. Thanks for the quick response.. Using the workaround is no problem..! Just glad there is a way to continue testing... Update: Looks like the workaround makes it function correctly... (sweet!) Still working on adding objects to the UI Lib... Thanks much Geoff.!! |
||||
Print this page |