Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 12:42 28 Nov 2024 Privacy Policy
Jump to

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 States
Posts: 761
Posted: 06:51pm 17 Nov 2013
Copy link to clipboard 
Print this post

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: Australia
Posts: 3194
Posted: 08:51pm 17 Nov 2013
Copy link to clipboard 
Print this post

What line creates the syntax error?
Geoff Graham - http://geoffg.net
 
Zonker

Guru

Joined: 18/08/2012
Location: United States
Posts: 761
Posted: 01:53am 18 Nov 2013
Copy link to clipboard 
Print this post

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: Australia
Posts: 3194
Posted: 04:51am 18 Nov 2013
Copy link to clipboard 
Print this post

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 States
Posts: 761
Posted: 01:52pm 18 Nov 2013
Copy link to clipboard 
Print this post

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.!!Edited by Zonker 2013-11-20
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024