Edit an Item From ListBox

thread: 5 messages  |  last: about 11 months ago  |  started: wednesday, june 13, 2012, 6:51 am pdt


#1  |  Rodrigo Mostacedo (Tarija) Bolivia
Wednesday, June 13, 2012, 6:51 AM PDT

Hi all, I'm trying to add or search functionality to QListBox.
I was looking at the forums without success any similar case, but starting from the example (http://examples.qcodo.com/examples/events_actions/editable_listbox.php). I would like the ability to modify a selected item from qlistbox using the same qtextbox or create another to facilitate.

Any suggestions?

#2  |  Leonardo (Minas Gerais) Brazil
Wednesday, June 13, 2012, 4:57 PM PDT

Certainly the creation of QtextBox would be the right way.
Have you thought about what events will use both the QTextbox and QListBox?

If there are difficulties in implementing or ideas need to better tell me what you want. So I can better help or some sample code to visualize the problem.

=]

#3  |  Rodrigo Mostacedo (Tarija) Bolivia
Thursday, June 14, 2012, 5:47 AM PDT

Hi Leonardo, thanks for replying. Well, honestly not, qlistbox items are stored in an array object. So I think that the operation must be directly associated with this one. In api.qcodo.com I could not find any property or method to manipulate it.

Before I do my tests, and most likely not be the best way. I consult the community, if they worked on something associated with this example.

#4  |  Leonardo (Minas Gerais) Brazil
Thursday, June 14, 2012, 12:06 PM PDT

You're welcome

I still do not quite understand what you want but if you have any problems just reporting forum.

#5  |  Rodrigo Mostacedo (Tarija) Bolivia
Tuesday, June 19, 2012, 8:19 AM PDT

My mistake, it's so easy. It happens that I could not find it in the api page, I take a look at QlistControl class, and I found the function that I needed, replaceItem(), just after RemoveItem().

;)



Copyright © 2005 - 2013, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.