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.
f1fco Senior Member Joined: 18/03/2012 Location: FrancePosts: 155
Posted: 10:08am 15 Jul 2014
Copy link to clipboard
Print this post
is it a means to center a single character in a TOUCH button on a TFT Maximite ?
and change the size of a single character in a button ?
Pierre, from France73s de F1FCO
atmega8 Guru Joined: 19/11/2013 Location: GermanyPosts: 723
Posted: 10:39am 15 Jul 2014
Copy link to clipboard
Print this post
Don't understand your Problem?
Please describe it again with other words.
psergiu Regular Member Joined: 09/02/2013 Location: United StatesPosts: 83
Posted: 10:52am 15 Jul 2014
Copy link to clipboard
Print this post
If possible, attach a picture with the issue you have.
f1fco Senior Member Joined: 18/03/2012 Location: FrancePosts: 155
Posted: 11:08am 15 Jul 2014
Copy link to clipboard
Print this post
how to attach a picture ?
a little code :
CLS
TOUCH SIZE 35,35
TOUCH CREATE 0,100,100,"A",1,B
DO
LOOP
you can the the char "A" is not in the center of the square, but on the left side...
try different size of touch is the same problem
its seems it was 2 chars (the A and other invisible char)
I want to create a small DTMF keyboard with 16 touchs (0 to 9,*,#,A,B,C,D)
Pierre
73s de F1FCO
f1fco Senior Member Joined: 18/03/2012 Location: FrancePosts: 155
Posted: 11:09am 15 Jul 2014
Copy link to clipboard
Print this post
typing error
you can see the char "A" is not in the center of the square, but on the left side... 73s de F1FCO
OA47 Guru Joined: 11/04/2012 Location: AustraliaPosts: 982
Posted: 12:20pm 15 Jul 2014
Copy link to clipboard
Print this post
Without seeing a picture, could you label the square with a space then letter A such as " A" to center the label?
f1fco Senior Member Joined: 18/03/2012 Location: FrancePosts: 155
Posted: 11:35am 16 Jul 2014
Copy link to clipboard
Print this post
I try you suggestion : " A"
and the A is on the right side of the square, not center !!!
a possibility is to write "A" with the commands :
FONT 2
PRINT @(112,109,5) "A"
and the "A" is (exactly) in the center of the square
but its a "loud" code