4DSystem gLCD BackGround Issue

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
ProtonLaser
Posts: 18
Joined: Wed Jan 23, 2013 7:07 pm
Has thanked: 6 times
Been thanked: 2 times

4DSystem gLCD BackGround Issue

Post by ProtonLaser »

Hi

Having worked for a while with this gLCD 4DSystem, i can work out most of the component(Print, DrawCircle, Touch) macro but seem to not get response when using the:
1)SetBackColor
2)SetForeColor
No change is detected no matter what range of RGB i use....
--The only way i can change the color is changing the default settings--

Any light on the issue, any one with the same issues??? :?

Thank you guys....

User avatar
JonnyW
Posts: 1230
Joined: Fri Oct 29, 2010 9:13 am
Location: Matrix Multimedia Ltd
Has thanked: 63 times
Been thanked: 290 times
Contact:

Re: 4DSystem gLCD BackGround Issue

Post by JonnyW »

Can you post a sample program to see how you are working this/

The Set***Color() functions do not change the screen, they set the colour for subsequent operations. Have you tried setting the foreground colour then drawing rectangles in that colour?

Cheers,

Jonny

ProtonLaser
Posts: 18
Joined: Wed Jan 23, 2013 7:07 pm
Has thanked: 6 times
Been thanked: 2 times

Re: 4DSystem gLCD BackGround Issue

Post by ProtonLaser »

Hi

In the simple program i am posting i would expect the colour to change to Blue, but it isnt...

May be im not doing the correct action to get blue...

As for the way i manage the touch actions in the screen, is this the correct way or is there a more elegant manner to do it?


Thanxs
Attachments
prueba_4d.fcf
(12.5 KiB) Downloaded 280 times

User avatar
JonnyW
Posts: 1230
Joined: Fri Oct 29, 2010 9:13 am
Location: Matrix Multimedia Ltd
Has thanked: 63 times
Been thanked: 290 times
Contact:

Re: 4DSystem gLCD BackGround Issue

Post by JonnyW »

Hi.

It may help to think of SetForeColor() to be like picking up a pen of that colour. It doesn't mean everything changes to that colour, but whatever you draw from then on will be with that pen and hence in that colour.

Try moving the SetForeColor() above your drawing calls and see if this has set the colour of the shapes you draw:
sample.png
(20.9 KiB) Downloaded 1959 times
Good luck,

Jonny

ProtonLaser
Posts: 18
Joined: Wed Jan 23, 2013 7:07 pm
Has thanked: 6 times
Been thanked: 2 times

Re: 4DSystem gLCD BackGround Issue

Post by ProtonLaser »

Hi Jonny sorry for the late response... yes actually it works perfect.


***I have a doubt concerning the 4D_DisplayImageFromFilePicaso(X, Y, Filename, PosH, PosL).

1) Could i download an image from my PC into an sd-card, name it "mypic" and call it from the above MACRO like:

4D_DisplayImageFromFilePicaso(20,20, "mypic", PosH, PosL)

What should i do with PosH,and PosL, how do i get the info on this??
Is there something else to do before beeing able to display images on the screen?

Thank you

Sorry if the question are a bit basics or incoherent but i am new to this.

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: 4DSystem gLCD BackGround Issue

Post by medelec35 »

Hi ProtonLaser,
have you looked at example2 within EB076 - Example Files:
http://www.matrixmultimedia.com/product ... 076-LCD32T

Ben's example shows how all the functions work including loading an images
Martin

ProtonLaser
Posts: 18
Joined: Wed Jan 23, 2013 7:07 pm
Has thanked: 6 times
Been thanked: 2 times

Re: 4DSystem gLCD BackGround Issue

Post by ProtonLaser »

Thanks for the replies,

Finally i dedicated some time learning to use the software that 4Dsystems gives for free for customizing the screen. Great!!
Did some neat job.

Simple and easy.

The software name is just in case anybody wants it is: Workshop V3.0.

Thanks

Post Reply