Do you know where your variables are? | |
PerlMonks |
Re: adding multiple labels with win32::GUIby rcseege (Pilgrim) |
on Sep 09, 2006 at 20:56 UTC ( [id://572183]=note: print w/replies, xml ) | Need Help?? |
Update: For more information on dealing with Label positioning read below. After rereading your post, it sounds like you might be better off using a TextField, ListView, or Listbox control as BrowserUk suggested. First, it should be Show instead of show, and second, you can drop it from the Label controls -- it's unnecessary. This leaves you with the following:
What is going on is you are laying one Label directly on top of the other one so it looks as though only one is created. To verify this, change the text of the first Label to "hello world". Now, the overlay should be easy to see. Try specifying the position of the second Label by using one or more of the following options: -left, -top, or -pos. Here are a few examples:
or even:
Of course, this can be problematic because of fonts so you could use the Height and Width methods:
You might also take a look at the GridLayout control. Here's one example: Rob
In Section
Seekers of Perl Wisdom
|
|