Click here to Skip to main content
14,303,486 members
   

Delphi

 
AnswerRe: What is Delphi Pin
Richard MacCutchan21-Jun-13 2:16
protectorRichard MacCutchan21-Jun-13 2:16 
AnswerRe: What is Delphi Pin
Jose A Pascoa29-Jul-13 6:58
memberJose A Pascoa29-Jul-13 6:58 
Question[SOLVED] Access a const from a class Pin
AmbiguousName12-Jun-13 21:30
memberAmbiguousName12-Jun-13 21:30 
AnswerRe: Access a const from a class Pin
Corinna John14-Jun-13 3:01
memberCorinna John14-Jun-13 3:01 
AnswerRe: Access a const from a class Pin
smags1318-Jun-13 8:10
membersmags1318-Jun-13 8:10 
GeneralRe: Access a const from a class Pin
AmbiguousName19-Jun-13 18:47
memberAmbiguousName19-Jun-13 18:47 
GeneralRe: Access a const from a class Pin
smags1320-Jun-13 7:10
membersmags1320-Jun-13 7:10 
Question[SOLVED] Set/Get ItemData() Equivalent in Delphi Pin
AmbiguousName5-Jun-13 23:03
memberAmbiguousName5-Jun-13 23:03 
AnswerRe: Set/Get ItemData() Equivalent in Delphi Pin
smags136-Jun-13 10:25
membersmags136-Jun-13 10: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 9:01
memberRashmitaS10-May-13 9:01 
GeneralRe: use the DLL of c#.net code in delphi Pin
Richard MacCutchan10-May-13 22:13
protectorRichard MacCutchan10-May-13 22:13 
GeneralRe: use the DLL of c#.net code in delphi Pin
lazaro7425-May-13 4:49
memberlazaro7425-May-13 4:49 
GeneralRe: use the DLL of c#.net code in delphi Pin
Richard MacCutchan25-May-13 4:52
protectorRichard MacCutchan25-May-13 4:52 
Questionhow to wifi, wirless programming? Pin
rahmat_208-Apr-13 0:18
memberrahmat_208-Apr-13 0:18 
AnswerRe: how to wifi, wirless programming? Pin
smags1311-Apr-13 10:31
membersmags1311-Apr-13 10:31 
GeneralRe: how to wifi, wirless programming? Pin
Theooo6-May-13 9:23
memberTheooo6-May-13 9:23 
GeneralRe: how to wifi, wirless programming? Pin
smags138-May-13 9:14
membersmags138-May-13 9:14 
GeneralRe: how to wifi, wirless programming? Pin
Amir Mohammad Nasrollahi28-Jul-13 0:46
professionalAmir Mohammad Nasrollahi28-Jul-13 0:46 
GeneralRe: how to wifi, wirless programming? Pin
Morteza Kashi28-Jul-13 1:03
memberMorteza Kashi28-Jul-13 1:03 
GeneralRe: how to wifi, wirless programming? Pin
Amir Mohammad Nasrollahi28-Jul-13 1:10
professionalAmir Mohammad Nasrollahi28-Jul-13 1:10 
AnswerRe: how to wifi, wirless programming? Pin
Theooo6-May-13 8:58
memberTheooo6-May-13 8:58 
GeneralRe: how to wifi, wirless programming? Pin
Amir Mohammad Nasrollahi28-Jul-13 0:45
professionalAmir Mohammad Nasrollahi28-Jul-13 0:45 
QuestionJust wondering Pin
Jose A Pascoa1-Feb-13 22:08
memberJose A Pascoa1-Feb-13 22:08 
AnswerRe: Just wondering Pin
Eddy Vluggen2-Feb-13 0:51
mveEddy Vluggen2-Feb-13 0:51 
GeneralRe: Just wondering Pin
Jose A Pascoa2-Feb-13 2:01
memberJose A Pascoa2-Feb-13 2:01 

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.