I should have given more details initially. The
wxTE_MULTILINE value is being retrieved from an XML file so I'm running into the same issue. This is what my XML entry looks like if it helps
<text_ctrl
internal_name="text_ctrl_details"
parent="-1"
value=""
x_coordinate="100"
y_coordinate="53"
x_size="400"
y_size="110"
style="wxTE_MULTILINE" />
I'm then using XML::Twig to parse the XML so my actual code looks like this for creating the TextCtrl:
Wx::TextCtrl->new( $parent_panel, -1, $entry->att('value'), [$entry->a
+tt('x_coordinate'), $entry->att('y_coordinate')], [$entry->att('x_siz
+e'), $entry->att('y_size')], $entry->att('style') );
I've tried making it a function in the XML file and it still fails to show up. It does however work if I assign the constant to a scalar like you described.
Any thoughts?
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.