Actions in different screens for glcd

General discussion on Visual GLCD Software.
Post Reply
Author
Message
Mihai Popa
Posts: 28
Joined: 20 Jul 2010 13:56

Actions in different screens for glcd

#1 Post by Mihai Popa » 09 Mar 2018 07:00

Hello,

I need to know how can I determinate in what screen I am?
For example:
I have an project with two screens: screen1 and screen2.
In screen one, I have some buttons and labels and in screen2 I need to display some readings from ADC, for example.
If I put the result in the main loop, the results are displayed in the screen1. I I put the result in the event of button that switch to screen2, the results are displayed, but only once and the screen2 remain active.
My question is: how can I determine in what screen I am? In code, I mean.

Thank you,

Mihai

User avatar
petar.suknjaja
mikroElektronika team
Posts: 683
Joined: 05 Mar 2018 09:44
Location: Belgrade

Re: Actions in different screens for glcd

#2 Post by petar.suknjaja » 09 Mar 2018 19:08

Hi,

I find it confusing that you need to know how you can determine in what screen you are.
Can you explain it to me little better.

If you have generated code through Visual GLCD,try right click on Start_TP();
It will open a header file with objects, and there is a list of objects used in code as their conditions.

Please, can you attach the minimal project that demonstrates this issue ?


Regards,
Petar

Post Reply

Return to “Visual GLCD General”