Type | Description | |||
Variant | A Picture object that indicates the picture being assigned, a string expression that may indicate the path to a picture file or a string expression that indicates the base64 encoded string that holds a picture object. Use the eximages tool to save your picture as base64 encoded format. |
The following VB sample loads a list of icons from a BASE64 encoded string:
Dim s As String s = "gD/bD/cAACBKIxJIwAAIBAEMiAAf7bABDAADAQCjEaAcdAkeAoIAoFAgEAoKA4HAwIBgKBgMBYKBYLBoOCQQmoRB0zCAWCARCYUCtDBgPC4YCwUDASoQUicVAIDkskAoJkYJCgNmgUrldr1fsFhsVjr7/YAACIIAAWABsAYBEQAAQRqN0f7EAAfh4BAsNv0Oh+BvcakwGA4IBMyu4AWoQuVRjEfkclvZ9AMaAAECIFCQhGJBAwTKJhA4iOIUGSBSKhBAjISxYIVKTReAkGZiOSCxIWo4ZDQlEwnFApFQ0Go2G44HI6IZEIpGI5IJJKKZUKpWK5YLJaMZkMpmM5oNJqOZ0Op2O54PJ6QaEQqGQ6IRKKSSTSiVSyXTCZTSiUZSFKUxTlQVJVFkWZaFqWxblwXJdGEYZiGKYxjmQZJlGkaZqGqaxrmwbJtHCcRxnIcpzHOdB0nUeJ5Hmeh6nse58HyfTFg+hy3r+v7BMGqQCsMxDFLwWoIseASSqkA6SAIhgBDvJoBgikzPAMCQgiiA4wjiCYRNSBAKCE1bYASEYZikeAKtwaIFAsEgaHCEp4t6DTguGFTjuS5bmue6Lpuq67su27rvvC8byvO9L1kE9r3vi+b6vu/L9v6/8AwHAsDwTBcGwfCMJwrC8Mw3DsPm1EcSxPFJ1RbF8YxnGptAABi3rkCMogAH4AH6J5JCoQo7h2FQUH8EwQAUKRgDuCp8kCf4AAKDJ8F6VI+CMfBvjGeBTGOYgmnCT4GHQGI" s = s + "jjmVZuG4JBrHiTJuj4Z4YHoNICDiNoUFWSBnHIOouFeTw8HWexLHwWJxD6LYrHgTxEnETovGOYZfBhBI+gKd4tBWPJvGiMQInyUwpGyW5CnsJR2DiXpDBiQQ8n2FQOBiRBiCiUork6I5NB4Zx0nSDZVj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FxuVzul1u13vF5vV7vl9v1/wGBwWDwkbiAAQGJrOHwt7w7AyETf4AyDAymRxKApuHzkPyUuz2Ns2Vz+PyOk1GYxWLyeitOmy2wjOa2cZ1OWoGMw2T0ko0Mazutz2611W0nBy+42m95eR3O/jPE6OtjWZxGK5HS4tP4+e7u81Wa5m25075G+6m04HD9mT60Tz/bqWy5G32v30nvm/n9fu7DQva0rPOs7T5KY7MAvq08Fss3qZwQ6jZtXBMAvg5D9QMpzvuuzTrQ8/7JtlByZQhDK8PzEEBRDAbFQI7zyp1EsZOhEyvxdFccQ5FUdQKn0ZwjGqzP46ccvsqEhyDJMlSXJkmoyiwfJXKKPJAkSSAAkqUSynEeyclaKI2fh/nmd6NngH54GejZwAfNk1gOcEtgAcADmBOU6TsjZgAOQE5GAAc+z0AcsUFQiNT+QAPzWAZwB/MwBnxRyNHyB5/D+3boICA==" With .Add("Label", EXRECORDLibCtl.ReadOnly) .Image = 1 .Picture = s .Value = "Editor" End With .EndUpdate End With
The following VC sample loads a list of icons from a BASE64 encoded string:
CString s( "gD/bD/cAACBKIxJIwAAIBAEMiAAf7bABDAADAQCjEaAcdAkeAoIAoFAgEAoKA4HAwIBgKBgMBYKBYLBoOCQQmoRB0zCAWCARCYUCtDBgPC4YCwUDASoQUicVAIDkskAoJkYJCgNmgUrldr1fsFhsVjr7/YAACIIAAWABsAYBEQAAQRqN0f7EAAfh4BAsNv0Oh+BvcakwGA4IBMyu4AWoQuVRjEfkclvZ9AMaAAECIFCQhGJBAwTKJhA4iOIUGSBSKhBAjISxYIVKTReAkGZiOSCxIWo4ZDQlEwnFApFQ0Go2G44HI6IZEIpGI5IJJKKZUKpWK5YLJaMZkMpmM5oNJqOZ0Op2O54PJ6QaEQqGQ6IRKKSSTSiVSyXTCZTSiUZSFKUxTlQVJVFkWZaFqWxblwXJdGEYZiGKYxjmQZJlGkaZqGqaxrmwbJtHCcRxnIcpzHOdB0nUeJ5Hmeh6nse58HyfTFg+hy3r+v7BMGqQCsMx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wh0hPhYBPBJIPAGh8BXAPgKA1gUx4gDB+g6gFhGg5AlhjBJBzgpgwAggIhlBiAwgxgCg4EigAAZgGA+BjBfBjOdhyAMg4h/B2g5h9Ajh+BAgXB/BBh8hrgiA5hGA+AwBUgVBXhLAVBlhoh6B3g3gWhAgiguB0A6BS"; s = s + "hPh9gbBth2gHASBPgwBvB1hoBNBbADACghv6gAAPA4FnBcAfhKgngvAkRlhsiAg=="; m_record.BeginUpdate(); m_record.Images( COleVariant( "gBJJgBAICAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwkbiAAQGJrOHwt7w7AyETf4AyDAymRxKApuHzkPyUuz2Ns2Vz+PyOk1GYxWLyeitOmy2wjOa2cZ1OWoGMw2T0ko0Mazutz2611W0nBy+42m95eR3O/jPE6OtjWZxGK5HS4tP4+e7u81Wa5m25075G+6m04HD9mT60Tz/bqWy5G32v30nvm/n9fu7DQva0rPOs7T5KY7MAvq08Fss3qZwQ6jZtXBMAvg5D9QMpzvuuzTrQ8/7JtlByZQhDK8PzEEBRDAbFQI7zyp1EsZOhEyvxdFccQ5FUdQKn0ZwjGqzP46ccvsqEhyDJMlSXJkmoyiwfJXKKPJAkSSAAkqUSynEeyclaKI2fh/nmd6NngH54GejZwAfNk1gOcEtgAcADmBOU6TsjZgAOQE5GAAc+z0AcsUFQiNT+QAPzWAZwB/MwBnxRyNHyB5/D+3boICA==" ) ); m_record.SetBackColor( RGB(255,255,255) ); m_record.SetLabelSize(166); COleVariant vtMissing; vtMissing.vt = VT_ERROR; CEditor editor = m_record.Add(COleVariant("Label"), /*ReadOnly*/ 0, vtMissing ); editor.SetImage( 1 ); editor.SetValue( COleVariant( "Editor" ) ); editor.SetPicture( COleVariant( (LPCTSTR)s ) ); m_record.EndUpdate();