Hey all..!!
I know it's possible, and I find example codes in 'BCB help'!! But it doesn't work!! the code follows:
It adds everything but the graphic..!? Why?
Is it beacuse of my version? (BCB 3 Standard)
{
static char * Drive_Letter[]={"a:\\","b:\\","c:\\","d:\\","e:\\","f:\\",
"g:\\","h:\\","i:\\","j:\\","k:\\","l:\\","m:\\","n:\\","o:\\","p:\\",
"q:\\","r:\\","s:\\","t:\\","u:\\","v:\\","w:\\","x:\\","y:\\","z:\\"};
int AddedIndex;
for(int x =0; x <= 25; x++ )
{
switch(GetDriveType(Drive_Letter[x]))
{
case DRIVE_REMOVABLE:
AddedIndex=DriveTabSet->Tabs->AddObject(String(Drive_Letter[x]),
Floppy->Picture->Graphic);
break;
case DRIVE_FIXED:
AddedIndex=DriveTabSet->Tabs->AddObject(String(Drive_Letter[x]),
Fixed->Picture->Graphic);
break;
case DRIVE_REMOTE:
AddedIndex=DriveTabSet->Tabs->AddObject(String(Drive_Letter[x]),
Network->Picture->Graphic);
break;
case DRIVE_CDROM:
AddedIndex=DriveTabSet->Tabs->AddObject(Drive_Letter[x],
Floppy->Picture->Graphic);
break;
case DRIVE_RAMDISK:
AddedIndex=DriveTabSet->Tabs->AddObject(Drive_Letter[x],
Floppy->Picture->Graphic);
break;
}
}
} Martin G Broman
mgb_svea@thevortex.com
DWS - Alpha Whitin Dead Wolf Society
I know it's possible, and I find example codes in 'BCB help'!! But it doesn't work!! the code follows:
It adds everything but the graphic..!? Why?
Is it beacuse of my version? (BCB 3 Standard)
{
static char * Drive_Letter[]={"a:\\","b:\\","c:\\","d:\\","e:\\","f:\\",
"g:\\","h:\\","i:\\","j:\\","k:\\","l:\\","m:\\","n:\\","o:\\","p:\\",
"q:\\","r:\\","s:\\","t:\\","u:\\","v:\\","w:\\","x:\\","y:\\","z:\\"};
int AddedIndex;
for(int x =0; x <= 25; x++ )
{
switch(GetDriveType(Drive_Letter[x]))
{
case DRIVE_REMOVABLE:
AddedIndex=DriveTabSet->Tabs->AddObject(String(Drive_Letter[x]),
Floppy->Picture->Graphic);
break;
case DRIVE_FIXED:
AddedIndex=DriveTabSet->Tabs->AddObject(String(Drive_Letter[x]),
Fixed->Picture->Graphic);
break;
case DRIVE_REMOTE:
AddedIndex=DriveTabSet->Tabs->AddObject(String(Drive_Letter[x]),
Network->Picture->Graphic);
break;
case DRIVE_CDROM:
AddedIndex=DriveTabSet->Tabs->AddObject(Drive_Letter[x],
Floppy->Picture->Graphic);
break;
case DRIVE_RAMDISK:
AddedIndex=DriveTabSet->Tabs->AddObject(Drive_Letter[x],
Floppy->Picture->Graphic);
break;
}
}
} Martin G Broman
mgb_svea@thevortex.com
DWS - Alpha Whitin Dead Wolf Society