AdvancedHMI Software

General Category => Open Discussion => Topic started by: fpappas on July 07, 2020, 10:34:37 AM

Title: RecipeSelect text selection
Post by: fpappas on July 07, 2020, 10:34:37 AM
Is there a way to retrieve the recipe selected item text from a RecipeSelectButton after a selection is made?
Title: Re: RecipeSelect text selection
Post by: Godra on July 07, 2020, 07:33:05 PM
You would just get the RecipeButton1.Text property value.

In this example, it displays it in a label when the button is clicked:

Code: [Select]
    Private Sub RecipeButton1_Click(sender As Object, e As EventArgs) Handles RecipeButton1.Click
        Me.Label9.Text = Me.RecipeButton1.Text
    End Sub

Title: Re: RecipeSelect text selection
Post by: fpappas on July 07, 2020, 09:38:50 PM
I am using the newer RecipeSelectButton that displays all the recipe names in a grid, you then touch/select the recipe name you want to load. There doesn’t appear to be a text property for it.
Title: Re: RecipeSelect text selection
Post by: Godra on July 07, 2020, 10:41:30 PM
Take a look at this topic:

https://www.advancedhmi.com/forum/index.php?topic=2732.0