473,394 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Window is not getting repainted - Windows CE

Hi,
I am working windows CE application.

I am opening a page which has Textbox in it.

In that TextBox I am showing a text report.

Previously the font of text was 'Tahoma' as system font was Tahoma too.

But now i want to show report in 'Corier New' Font but I am facing new.

I am opening the window using showDialog(). but that windows is showing the text with tahoma font.
But if that windows loose focus and again gains. Its get repainted.

so i have come to conclusion that when I open window using ShowDialog() window is not getting repainted. and I want to repaint it.

So please help me in this as I have wasted too much time in this.

Thanks and Regards,
Sachin
Aug 6 '09 #1
6 3239
RedSon
5,000 Expert 4TB
Which version of CE?

You can force the window to be repainted by Invalidating the rect and updating the window.

http://msdn.microsoft.com/en-us/library/ms927613.aspx
Aug 6 '09 #2
Version is CE 5.0
Do you mean that when window gets loaded i need to call the invalidate() method in gotFocus() event?
Aug 7 '09 #3
RedSon
5,000 Expert 4TB
I don't know in what method you should call invalidaterect and updatewindow, it depends on your design. But if you want the window to repaint first you must invalidate the region that you want repainted and then tell the window to repaint itself. This is done normally by the Windowing system automatically but there may be times when you want to do it explicitly, therefore MS provides APIs for you to do that.
Aug 7 '09 #4
Will u elaborate more.
like..which API's I should use..

Thanks
Aug 10 '09 #5
RedSon
5,000 Expert 4TB
Invaldaterect and updatewindow....
Aug 10 '09 #6
There was problem in base class.

First time it was painting window from values from the base class which were readonly.

I needed to change to base classes so that values from base classes get updated or editable and thus will write text in proper format at first instance.

but anyway..thanks for ur replies
Aug 21 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Daphne Tregear | last post by:
I'm really stuck with this and would appreciate any help. http://www.cs.man.ac.uk/~daf/i-p-c-s.org/faq/history_1.php is one of a series of really simple pages (a block of text, an image, and two...
3
by: Dale | last post by:
I'm using the NotifyIcon component on a form within a Windows application that will normally show no interface. NotifyIcon does add an icon as required to the notification area of the Task Bar. ...
6
by: David Hayes | last post by:
juglesh <juglesh@nospamRadioKDUG.com> wrote in "Re: how to maximize the browser window that fits the monitor size?" (Saturday, January 01, 2005 3:12 AM): > > >I want to maximize the browser...
3
by: Logan McKinley | last post by:
I need to draw a dot where ever the user clicks (which will be on either the form or a couple dynamically placed picture boxes). I thought the following code should work: //--- static public...
1
by: Dave Harris | last post by:
We have a bit of a situation where Windows.Forms.MessageBox is somehow causing a specific window created in native C++ to get an NC_DESTROY message. The windows share a common great-grandparent and...
1
by: Diogo Alves - Software Developer | last post by:
Hi there, Since my last questions wasn't very clear, I will do it in a different way. I want to resize my app but while resizing I dont want to see content of the form, I just want to see the...
14
by: | last post by:
Hi All, I am little confused here, hope you can help me. While processing WM_POWERBROADCAST (wParam=PBT_APMQUERYSUSPEND), I MUST to do some lengthy operation(30 sec) before system Suspends or...
1
by: muralikrishnae | last post by:
i have created a popup window which comes from system tray i had set a timer so that window moves from bottom to top. when i am creating more popwindows the popup moves slowly as the number...
1
by: ValValVal | last post by:
Hi. Please help me and sorry for my dumb question. I use NetBeans 6.1 in development. I have JFrame Client. In that JFrame when I click on button StartGame there appears another JFrame...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.