View Single Post
01-22-12, 07:08 AM   #3
Animor
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Mar 2011
Posts: 136
Thank you so much for this. I learned a lot from your comments about good practice in programming, you should write a guide with these conventions!

About GetNumLinesDisplayed - it looks like it's giving the correct result if I use it after Show(). However, when I originally used this function right after the frame construction, it gave "0". I don't really understand it.

Two questions, if I may:

1. Because of tinsert(UISpecialFrames, "AnimorHistoryFrame"), the frame was hidden by default when I reload. However, when I've added AnimorHistoryFrame:Show() to the bottom of the code, it didn't work - nothing happened. But when I used the slash command you coded for me, with the same function, the frame did show. Why is that?

2. What is the difference between HideParentPanel(self) and self:GetParent():Hide(), and why I should not use the first?

Thanks again!

Last edited by Animor : 01-22-12 at 08:40 AM.
  Reply With Quote