Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC6 WinMobile5
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 20-Apr-11 20:07pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

When you say the alignment was disturbed, what does that mean exactly? Are you taking into consideration the width of the vertical scrollbar?
  Permalink  
Comments
decoder_85 at 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)



Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 21 Apr 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100