VisualTFT Basic

General discussion on Visual TFT Software.
Post Reply
Author
Message
AndyB
Posts: 14
Joined: 12 Jan 2012 18:30

VisualTFT Basic

#1 Post by AndyB » 12 Jan 2012 18:33

Are there any Visual TFT examples in Basic. All have been in C. Thanks

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: VisualTFT Basic

#2 Post by filip » 13 Jan 2012 10:19

Hi,

The Visual TFT examples are written for C, Basic and Pascal.
You can find these examples in the Projects subfolder of the Visual TFT installation folder.

Regards,
Filip.

AndyB
Posts: 14
Joined: 12 Jan 2012 18:30

Re: VisualTFT Basic

#3 Post by AndyB » 14 Jan 2012 13:57

Thanks Filip

I am new to programming and am having problems.

I have managed to add RS232 hardware onto the Mikromedia and have text data bouncing back on the terminal with button activation via tft touch but I cant work out how to put that data onto the screen!

I have tried to work out some of the examples but get lost as there is no coding documentation.

Could you give me some examples with documentation.

Thanks

AndyB
Posts: 14
Joined: 12 Jan 2012 18:30

Re: VisualTFT Basic

#4 Post by AndyB » 16 Jan 2012 10:28

I have now worked out how to put data and string into a text label.
It does jump about a bit sometimes to a buttons label.
How do we clear a label?
The text data read on uart only works one maybe twice and then stops.
Is there any need to clear a buffer?

ed_6678
Posts: 29
Joined: 13 Jul 2008 07:48
Location: Arizona

Re: VisualTFT Basic

#5 Post by ed_6678 » 16 Jan 2012 23:45

AndyB wrote:It does jump about a bit sometimes to a buttons label.
You need to set the Max Length of label to a number higher than the amount of characters to be displayed.
AndyB wrote:How do we clear a label?
Like this:

Code: Select all

sub procedure disp2              'draw lblADC
  lblADC.Font_Color=CL_White     'set same as screen color
  DrawLabel(@lblADC)             'redraw label
  ByteToStr(temp_Byte,lblADC.Caption)   'convert byte to string and move to lblADC.Caption
  lblADC.Font_Color=CL_Red        'change to color of text you want displayed
  DrawLabel(@lblADC)              'redraw label
End Sub
Hope that helps

AndyB
Posts: 14
Joined: 12 Jan 2012 18:30

Re: VisualTFT Basic

#6 Post by AndyB » 22 Jan 2012 22:48

Thanks for the reply ed_6678 I will try this.

Post Reply

Return to “Visual TFT General”