Write to EVEText control by using it's Tag property?

General discussion on mikroBasic PRO for PIC32.
Post Reply
Author
Message
ChuckR
Posts: 34
Joined: 26 Feb 2014 21:30

Write to EVEText control by using it's Tag property?

#1 Post by ChuckR » 24 Jan 2016 21:42

Can I write to the caption property of an EveText control if I know its tag property value?
Example please ....., I use MikroBasic for PIC32.

Are control arrays possible?

User avatar
uros.cvetinovic
mikroElektronika team
Posts: 803
Joined: 14 Dec 2015 09:24

Re: Write to EVEText control by using it's Tag property?

#2 Post by uros.cvetinovic » 28 Jan 2016 16:50

Hi,

Can you please explain a little bit further.
What do you expect to achieve?
Which problems have you encountered in your project?

Best regards,

Uros Cvetinovic

ChuckR
Posts: 34
Joined: 26 Feb 2014 21:30

Re: Write to EVEText control by using it's Tag property?

#3 Post by ChuckR » 28 Jan 2016 17:26

Using the touch screen I wanted a user to be able to touch a text box at which time I would capture the tag number of that text box, then the user would move to an input device like eve keys and when they touched a key I would read it's tag value to get the character and write it to the text box whose tag value equaled the tag value I capture previously.

Put another way,.. touch the text box you want to enter the data in, then enter the data. This could work for a dial control or slider also..any type of input if I know how to write to the caption of the control whose tag number is the captured value.

I have solved my problem but it wasn't as elegant as I would have liked.
I wrote a select case statement using the tag number, then I hard coded the control to input to.

Select Case My_Tag
Case 1
EveText9_caption = My_Text
Case 2
EveText4_caption = My_Text

etc....

I have 9 different controls some are Eve number controls others are Eve text controls so I touch the one I want to change then I rotate the dial control and it updates the value in the control as I move the dial.

Megahurts
Posts: 900
Joined: 01 Oct 2009 22:48
Location: Rocky Mountains, USA.

Re: Write to EVEText control by using it's Tag property?

#4 Post by Megahurts » 05 Feb 2016 04:28

Hi ChuckR,

Maybe a look at this topic | [Making] User pointers for better control of objects | will help you.
http://www.mikroe.com/forum/viewtopic.php?f=160&t=60684

The principles should work with EVE components as well.

Regards, Robert.
HW: easyPIC5|PICFlash2|easyBT|smartGSM|easyGSM|PICPLC16|mmWorkStation|FT800 Eve|PIC Clicker/2|
MMBs:PIC18F,PIC33EP,PIC32|CLICKs:DAC,ADC,GPS L10,Thermo,8x8B LED,Stepper,W/B OLED,9DOF,GPS3,tRF,Hall I|

SW: mP for PIC|mB for PIC-dsPIC-PIC32|Visual-TFT|

Post Reply

Return to “mikroBasic PRO for PIC32 General”