Hi Thanks for your quick response. I am using Tk-MDI-0.2 for Perl which is available from CPAN.
I am sorry for not posting the sample code and here it is.
use strict; use warnings; use Tk; use Tk::MDI; my $mw = tkinit; my $mdi = $mw->MDI( -style=>'win32', -background=>'gray'); my $child1 = $mdi->add; my $text = $child1->Text->pack; $text->insert('end',"A text widget"); my $child2 = $mdi->add(-titletext=>'Listbox Title'); my $mbar = $child2 -> Menu(); $child2 -> configure(-menu => $mbar); my $submenu = $mbar -> cascade(-label=>"OPTIONS", -underline=>0, -tear +off =>0); $submenu -> command(-label => "FILE", -underline=>0); $submenu -> command(-label => "EDIT", -underline=>0); my $lb = $child2->Listbox->pack; $lb->insert(0,"A Listbox"); MainLoop;

When I run the above code no error messages received but the menu will not appear in the child Window. Hope you Monks will help me in resolving this issue.

In reply to Re^2: MDI Interface by kranthi
in thread MDI Interface by kranthi

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.