I have seen several Win32 programs that use Win32::GUI::BitmapInline to include the bitmap in the code. My question is how do you create the inline code? Lets say I wanted to create a toolbar button for Bold, Underline, and Italic... how would I know what to put in the inline code so that it generates a B, U, and I for me? Is there a way to generate that code by passing in the letter I want to generate to some other subroutine?
use strict; use warnings; use Win32::GUI; use Win32::GUI::BitmapInline (); #This inline image is the number 1 as a button my $bmp = new Win32::GUI::BitmapInline( q( Qk0GAwAAAAAAADYAAAAoAAAAEAAAAA8AAAABABgAAAAAANACAADEDgAAxA4AAAAAAAAAAA +AAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////// +////// ////////////////////////////////////////////AAAAAAAA////////////////AA +AAAAAA AAAAAAAAAAAAAAAA////////////////AAAAAAAA////////////////////////AAAAAA +AA//// ////////////////////AAAAAAAA////////////////////////AAAAAAAA////////// +////// ////////AAAAAAAA////////////////////////AAAAAAAA////////////////////// +//AAAA AAAA////////////////////////AAAAAAAA////////////////////////AAAAAAAA// +////// ////////////////AAAAAAAA////////////////////////AAAAAAAA////////////// +////// ////AAAAAAAA////////////////////////AAAAAAAA////////////////////////AA +AAAAAA ////////////////////////AAAAAAAA////////////////AAAAAAAAAAAAAAAA////// +////// ////////////AAAAAAAA////////////////////AAAAAAAAAAAA////////////////// +////// AAAAAAAA////////////////////////AAAAAAAA////////////////////////AAAAAA +AA//// ////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAA +AAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ) );

In reply to Using Win32::GUI::BitmapInline? by slloyd

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.