private void CriarBotao16() { StdBEBotaoRibbon botao = new StdBEBotaoRibbon(); StdBEBotoesRibbon botoes = new StdBEBotoesRibbon(); botao.set_Descricao("Segurança"); botao.set_Icon32(false); botao.set_Id(RibbonConstants.CIDBOTAO1); var pic = IconConverter.ImageToIPicture(Resource.operacoes.ToBitmap()); botao.set_Icon((stdole.StdPicture)pic); botoes.Insere(botao); plataformaPrimavera.Ribbon.AdicionaBotoes(botoes, "Botoes", RibbonConstants.CIDGROUP); }
private void CriarBotao16() { StdBEBotaoRibbon botao = new StdBEBotaoRibbon(); StdBEBotoesRibbon botoes = new StdBEBotoesRibbon(); botao.set_Descricao("Seguridad"); botao.set_Icon32(false); botao.set_Id(RibbonConstants.CIDBOTAO1); var pic = IconConverter.ImageToIPicture(Image.FromFile(@"C:\IconsStandard\16x16\operacoes.ico")); // Resource.operacoes.ToBitmap()) botao.set_Icon((stdole.StdPicture)pic); botoes.Insere(botao); PlataformaPrimavera.Ribbon.AdicionaBotoes(botoes, "Botoes", RibbonConstants.CIDGROUP); }