Thread View: borland.public.delphi.nativeapi
2 messages
2 total messages
Started by S
Fri, 19 Mar 2004 22:26
Add an item to the TOP of Tchecklistbox ??
Author: S
Date: Fri, 19 Mar 2004 22:26
Date: Fri, 19 Mar 2004 22:26
8 lines
1291 bytes
1291 bytes
Was wondering if there is a known way of adding a checkbox to a TCheckListbox, but adding to top of list. AddItem adds it to the bottom, and I don't see a method that allows you move from one position to another. Thanks Steve
Re: Add an item to the TOP of Tchecklistbox ??
Author: Mark Arkey
Date: Sun, 21 Mar 2004 04:22
Date: Sun, 21 Mar 2004 04:22
12 lines
1556 bytes
1556 bytes
steveb428@hotmail.com (S) wrote > Was wondering if there is a known way of adding a checkbox to a > TCheckListbox, but adding to top of list. The Insert method of the Items property (TStrings) of TCheckListBox does what you need. Pass the string to insert and the index at which to insert the string (use 0 for the first item): MyCheckListBox.Items.Insert(0, 'This will appear as the first item in MyCheckListBox'); Mark Arkey
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads