Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have created a dialog in windows mobile which contains dynamically created radio buttons and some static texts in a tabular form. The list grows up at runtime based on the different data. e.g.
static text1 button1 button2 button3
static text2 button1 button2 button3

buttons are grouped in rows only.

Now When I created the dialog with as much as 23 rows of these controls, it was behaving absolutely fine. But when i increased the no. of rows by one only the alignment of these controls were disturbed. I am wondeing why this happened?

Also I have added vertical scroll to scroll the dialog for these controls to show correctly. and I am increasing the height of the dialog based on the no. of rows i am getting to display.

Is it caused due to scrolling or is it due to the creation of controls? I am completely blank here. please suggest some way to identify the problem or advise any solution.
Posted

1 solution

When you say the alignment was disturbed, what does that mean exactly? Are you taking into consideration the width of the vertical scrollbar?
 
Share this answer
 
Comments
decoder_85 21-Apr-11 3:20am    
alignment here means that some static texts is not visible and some radio button is hidden behind another. This seems to me a memory issue.. could that be possible as I am using win mobile 5 and by creating controls and increasing size might create memmory shortage?

i have considered the width of scrollbar and is scrolling just fine but some flickering issue.
I have also found out that by running the exe in debug mode (compiled in debug mode in visual studio) creates problem on 24th row onwards but in release mode it creates problem in 25th row onwards. size of release exe is less than debug exe size.

I have also found out that by decreasing the vertical height of text and buttons so as to compact them makes way for one more row without any problem.

this gives me some idea that this is due to the memory issue.
if you know any information about the memory limit of the device plz share with me and advise to sort this memory leakage during control creation.

Thnx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900