X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 17 Oct 2008 01:36 PM by  anon
GUI widget_base-children puzzle Help please
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
17 Oct 2008 01:36 PM
    Hello, I have this base1 with x dimensions of 606 (according to widget_info/geometry). I have a child section, base2,  with the same dimensions (x=606). I then create a progressBar child, within parent base2. (x dimension of this is 257). Everything works fine and right after calling the routine that creates the progressBar the dimensions are: base1 = 606, base2 = 602 (notice it shrank by 4), and progressBar = 257. PROBLEM IS: If the x-size of base2 (the parent of the progress bar) is slightly less than the main base, base1, then the progressBar does not show. That is: If base1 = 606, base2 = 593 (13 pixels less), and progressBar = 257 the progressBar seems to be created, but it is not viisble! The x-dims after the procedure that creates the progressBar is as follows: base1 = 606 (nothing changed), base2 = 602 (increased by 9 pixels!!), progressBar = 257 (no change). Why is this? There seems to be plenty of space in base2 (593) to hold the 257 x-size progress bar. Notice that I ignore all the y values as this is not a factor. The problem seems to be related to base1 and base2, if this is these are the same x-size everything is ok, if base2 is short by a bit, the progressBar does not display. Also, when things work, base2 gets decreased a bit after calling the routine that creates progressBar, and when things does not work, the base2 dimension gets increased!! Any help? Please :-) IF, base1 = 612, base2 = 599, and progressBar = 257 then progressBar gets created, but it is not visible!!! Why is this?
    You are not authorized to post a reply.