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?
Write to EVEText control by using it's Tag property?
- uros.cvetinovic
- mikroElektronika team
- Posts: 803
- Joined: 14 Dec 2015 09:24
Re: Write to EVEText control by using it's Tag property?
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
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
Re: Write to EVEText control by using it's Tag property?
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.
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.
Re: Write to EVEText control by using it's Tag property?
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.
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|
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|