delphi,c++builder,alpha-transparency,c++builder-2010
You don't need to try and grab the original bitmap from the imagelist because the imagelist itself knows how to draw honoring transparency information. You can use its Draw method for that. Otherwise, an answer here suggests that setting AlphaFormat to 'afIgnored' before calling GetBitmap should preserve transparency....
You are not populating TIdSNMP::Trap with any values. That is why TIdSNMP::SendTrap() is not sending anything. There is nothing for it to send. Try this instead: void __fastcall TMainForm::btSendTrapClick(TObject *Sender) { String myEnterprise = _D("1.5.5.5.5.5.5.5"); String eventType = myEnterprise + _D(".1"); String eventDistance = myEnterprise + _D(".2"); TIdSNMP *idSnmp =...