473,609 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Window is not getting repainted - Windows CE

74 New Member
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 3246
RedSon
5,000 Recognized Expert Expert
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
fastestindian
74 New Member
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 Recognized Expert Expert
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
fastestindian
74 New Member
Will u elaborate more.
like..which API's I should use..

Thanks
Aug 10 '09 #5
RedSon
5,000 Recognized Expert Expert
Invaldaterect and updatewindow... .
Aug 10 '09 #6
fastestindian
74 New Member
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
2355
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 links at the bottom). It's a valid page and appears fine in all my browsers, except in IE. With IE (IE6 under XP) the text is invisible until the window is repainted by resizing, or moving another page in front of it and then behind. --
3
2485
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. Unfortunately the window is showing up in the little window that is displayed when user uses Alt-Tab to switch applications. How do I make this application not show up in the Alt-Tab window? Thanks.
6
5630
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 window when I open a new window. > > function expand() { > window.moveTo(0,0); > window.resizeTo(screen.availWidth, screen.availHeight); > }
3
10045
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 extern IntPtr WindowFromPoint(System.Drawing.Point Point); //... h = (System.Drawing.Point)hits; // this is an array of Point objects ip = WindowFromPoint(h);
1
1866
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 I believe are on the same thread. The window being destroyed is a modeless window that is a grandchild of the parent window passed into the messagebox. Here is the middle of the call stack. Somehow it is getting the ParkingWindow (whatever the...
1
3126
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 window border, then on release, the form reappears, just like when we use "Show window contents while dragging" on the windowsXP appearance settings... Any Ideas in how to do it?
14
4102
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 hibernates. To achieve this, in my message handler when processing PBT_APMQUERYSUSPEND, I create another thread which takes care of making this lengthy operation, and when its done I
1
2023
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 popups increase the more slow it becomes for moving window i have used movewindow() method.
1
2027
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 ChessGame. It has some Swing controls and some painting.Painting is done directly on JFrame. I am not sure,but probably this is called child window. Now I want this child window to be repainted well. I set event listeners on all possible relevant events...
0
8127
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8067
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8215
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8398
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6053
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4015
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4076
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2529
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1658
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.