Solved

ShowMessage(listview1.itemappearance.Header.text, Item.text)

Posted on 2013-06-03
9
1,564 Views
Last Modified: 2013-06-06
Hi I need to drill into the ItemAppearance of the tlistview and ,
Showmessage of Footer, Header, Item.
0
Comment
Question by:Grant1842
  • 5
  • 2
9 Comments
 
LVL 7

Assisted Solution

by:Beneford
Beneford earned 500 total points
ID: 39218316
I don't have XE4, so can't actually try anything out.
What error are you getting?
XE2's ShowMessage takes one parameter only, but your title implies two.
If you want to show a single string with three strings in it, you could use:
ShowMessage(format('%s:%s:%s',listview1.itemappearance.header.text,listview1.itemappearance.footer.text,item.text]));

Open in new window


Or post some code (and a description of what you expect to see)..
0
 
LVL 12

Author Comment

by:Grant1842
ID: 39218687
I am doing an IOS app so the FMX.listview i a m using has more propertys than  one for windows.

as posted I need to show message for FMX.listview> ItemAppearance > 
Footer(Text, Detail)<show message of the Text and Detail
Header(Text, Detail)<show message show message of the Text and Detail
 Item(Text, Detail)<show message show message of the Text and Detail

Whish I could edit the title of the question. I just look at the listview for windows and it does not have the extra sup property as when you use it for firemonkey ios app,
0
 
LVL 12

Author Comment

by:Grant1842
ID: 39220839
Anyone have any thoughts on how to do this ?
THanks
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 12

Author Comment

by:Grant1842
ID: 39220970
LVThe 1,2,3 are the Headers (Item.Text).

How can I do a simple show message to show these values.
0
 
LVL 12

Author Comment

by:Grant1842
ID: 39224335
I have learned some new info.

showmessage( lvCustomers.Items.Item[0].Detail)
This will return the 1 in the first Header.

I need to do someting like
showmessage( lvCustomers.Items.Item[lvCustomers.Selected].Detail)

I need to get the Detail of the record I click on in the FMX.Listview.

Anyone here done this before.
Thanks
0
 
LVL 7

Accepted Solution

by:
Beneford earned 500 total points
ID: 39224733
Try:
showmessage( lvCustomers.Items.Item[lvCustomers.ItemIndex].Detail)
0
 
LVL 12

Author Closing Comment

by:Grant1842
ID: 39225324
Thanks Guys
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
sumDigits  challenge 7 75
array6 challenfge 6 83
Convert GUI app into console app for Win32 Env 5 82
Delphi inherited method 6 63
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific gro…
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now