Click here to Skip to main content
14,391,186 members
   

Delphi

 
Question[SOLVED] Assigning Properties and Events At Runtime Pin
AmbiguousName28-Jun-13 2:25
MemberAmbiguousName28-Jun-13 2:25 
AnswerRe: Assigning Properties and Events At Runtime Pin
smags1328-Jun-13 10:22
Membersmags1328-Jun-13 10:22 
QuestionMessage Closed Pin
21-Jun-13 0:25
Membermark32221-Jun-13 0:25 
AnswerRe: What is Delphi Pin
Richard MacCutchan21-Jun-13 3:16
mveRichard MacCutchan21-Jun-13 3:16 
AnswerRe: What is Delphi Pin
Jose A Pascoa29-Jul-13 7:58
MemberJose A Pascoa29-Jul-13 7:58 
Question[SOLVED] Access a const from a class Pin
AmbiguousName12-Jun-13 22:30
MemberAmbiguousName12-Jun-13 22:30 
AnswerRe: Access a const from a class Pin
Corinna John14-Jun-13 4:01
MemberCorinna John14-Jun-13 4:01 
AnswerRe: Access a const from a class Pin
smags1318-Jun-13 9:10
Membersmags1318-Jun-13 9:10 
GeneralRe: Access a const from a class Pin
AmbiguousName19-Jun-13 19:47
MemberAmbiguousName19-Jun-13 19:47 
GeneralRe: Access a const from a class Pin
smags1320-Jun-13 8:10
Membersmags1320-Jun-13 8:10 
Question[SOLVED] Set/Get ItemData() Equivalent in Delphi Pin
AmbiguousName6-Jun-13 0:03
MemberAmbiguousName6-Jun-13 0:03 
AnswerRe: Set/Get ItemData() Equivalent in Delphi Pin
smags136-Jun-13 11:25
Membersmags136-Jun-13 11:25 
Basically, you need to set/get Object into/from Items property of TComboBox instance.

An example could be found at TComboBox.Items Property[^]

To set:
// Add View styles and constants to the Combo Box
ComboBox1.Items.AddObject('vsIcon', TObject(vsIcon));
ComboBox1.Items.AddObject('vsList', TObject(vsList));
ComboBox1.Items.AddObject('vsReport', TObject(vsReport));
ComboBox1.Items.AddObject('vsSmallIcon', TObject(vsSmallIcon));
// Display first item in the Combo Box
ComboBox1.ItemIndex := 0;


To get:
ListView1.ViewStyle := TViewStyle(Items.Objects[ItemIndex]);


TComboBox uses an instance of TCustomComboBoxStrings to maintain captions and their associated data, which has a function called PutObject.
function PutObject(Index: Integer; AObject: TObject); override;
This is the function that sends CB_SETITEMDATA message internally and where you could be able to set 32-bit value along with a given item index.

On the other hand, GetObject
function GetObject(Index: Integer): TObject;
will retrieve the 32-bit value for you.

Notice, in the world of Delphi, all these 32-bit values here are actually a TObject value.
Questionuse the DLL of c#.net code in delphi Pin
RashmitaS10-May-13 10:01
MemberRashmitaS10-May-13 10:01 
GeneralRe: use the DLL of c#.net code in delphi Pin
Richard MacCutchan10-May-13 23:13
mveRichard MacCutchan10-May-13 23:13 
GeneralRe: use the DLL of c#.net code in delphi Pin
lazaro7425-May-13 5:49
Memberlazaro7425-May-13 5:49 
GeneralRe: use the DLL of c#.net code in delphi Pin
Richard MacCutchan25-May-13 5:52
mveRichard MacCutchan25-May-13 5:52 
Questionhow to wifi, wirless programming? Pin
rahmat_208-Apr-13 1:18
Memberrahmat_208-Apr-13 1:18 
AnswerRe: how to wifi, wirless programming? Pin
smags1311-Apr-13 11:31
Membersmags1311-Apr-13 11:31 
GeneralRe: how to wifi, wirless programming? Pin
Theooo6-May-13 10:23
MemberTheooo6-May-13 10:23 
GeneralRe: how to wifi, wirless programming? Pin
smags138-May-13 10:14
Membersmags138-May-13 10:14 
GeneralRe: how to wifi, wirless programming? Pin
Amir Mohammad Nasrollahi28-Jul-13 1:46
professionalAmir Mohammad Nasrollahi28-Jul-13 1:46 
GeneralRe: how to wifi, wirless programming? Pin
Morteza Kashi28-Jul-13 2:03
MemberMorteza Kashi28-Jul-13 2:03 
GeneralRe: how to wifi, wirless programming? Pin
Amir Mohammad Nasrollahi28-Jul-13 2:10
professionalAmir Mohammad Nasrollahi28-Jul-13 2:10 
AnswerRe: how to wifi, wirless programming? Pin
Theooo6-May-13 9:58
MemberTheooo6-May-13 9:58 
GeneralRe: how to wifi, wirless programming? Pin
Amir Mohammad Nasrollahi28-Jul-13 1:45
professionalAmir Mohammad Nasrollahi28-Jul-13 1:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.