Menu Button, to be used on multiple screens.

General discussion on Visual TFT Software.
Post Reply
Author
Message
IvanD
Posts: 7
Joined: 15 Sep 2011 07:44

Menu Button, to be used on multiple screens.

#1 Post by IvanD » 15 Sep 2011 07:55

HI

I am trying to have a common 'MENU' button so that when i change screens it is still visible and can be clicked on, However when another screen is loaded (Other than its "Owner Screen") The button is unresponsive (Visible but cant click it).

I have tried:

ButtonMenu.Visible = 1; //make visible
ButtonMenu.Active = 1; //activate
strcpy(ButtonMenu_Caption, "MENU" ); //name its caption
DrawButton(&ButtonMenu); //redraw button

-Must i change the " ButtonMenu.Order" or create a case statement to change the "Owner Screen" when a new screen is chosen??
-Whats the best way to have one button on multiple screens? -or must I go the long way and make buttons for each screen :roll: ?

Regards
Ivan D

bpislife
Posts: 539
Joined: 11 Jun 2006 21:16
Location: Cumberland, RI

Re: Menu Button, to be used on multiple screens.

#2 Post by bpislife » 16 Sep 2011 00:51

I don't know of any other way to do this than the brute force way. This would be a really nice feature thought and hope Mikroe adds a "global" screen to Visual TFT.

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: Menu Button, to be used on multiple screens.

#3 Post by janko.kaljevic » 16 Sep 2011 09:33

Hello,

Thanks for suggesting this. I have passed it to our developers and we will consider it in near future.

Best regards.

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: Menu Button, to be used on multiple screens.

#4 Post by janko.kaljevic » 27 Sep 2011 09:47

Hello,

You can preview how this can be done in our example provided with VisualTFT Tool.
Open rgbPlay example and check ShowCircleButtons function in user code.
This way those buttons will be visible on all screens.

Best regards.

GaseousJ
Posts: 7
Joined: 12 Sep 2017 05:22

Re: Menu Button, to be used on multiple screens.

#5 Post by GaseousJ » 24 Oct 2018 10:09

Hi,

I've been unable to find the rgbPlay example code mentioned in this thread.

Can someone please point me in the right direction?


Cheers

Post Reply

Return to “Visual TFT General”