Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 20-07-2009
Member
 
Join Date: Jun 2009
Posts: 39
Change font for tooltip control ?

Hello good morning ,
I'm with a project right now and i would like to know how to change font of tool tip control ? because my project display in other language. the language is not English and need to alter back it to the same

any thoughts???
Reply With Quote
  #2  
Old 20-07-2009
Member
 
Join Date: Jan 2008
Posts: 1,515
Re: Change font for tooltip control ?

In order to create a ToolTip control, call CreateWindowEx and specify the TOOLTIPS_CLASS window class. This class is registered when the common control DLL is loaded. to confirm DLL is loaded, include the InitCommonControlsEx function in your application. so you have to explicitly define a ToolTip control as topmost. else , it might be covered by the parent window.take a look on this code
HWND hwndTip = CreateWindowEx(NULL, TOOLTIPS_CLASS, NULL,
WS_POPUP | TTS_NOPREFIX | TTS_ALWAYSTIP,
CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT,
hwndParent, NULL, hinstMyDll,
NULL);

SetWindowPos(hwndTip, HWND_TOPMOST,0, 0, 0, 0,
SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
Reply With Quote
  #3  
Old 20-07-2009
Member
 
Join Date: Feb 2008
Posts: 1,848
Re: Change font for tooltip control ?

Dude if you have retrieved this text from database, just configure this as the text for the tooltip. If it does not list out make correction, but you must look into encoding.
Reply With Quote
  #4  
Old 20-07-2009
Member
 
Join Date: May 2008
Posts: 2,383
Re: Change font for tooltip control ?

I just need to know what are you using right now.i think you have to use the tooltip text either in the resource files or database and configure it from there. can you just analyze this code

SetToolTip(controlName,textfromResourceFile)
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Change font for tooltip control ?"
Thread Thread Starter Forum Replies Last Post
How can I change my font in hotmail? SamDust Technology & Internet 5 10-01-2012 05:41 PM
Disable all font smoothing in Windows 7 (ie: including taskbar, menus, control panel, etc.) Madhunisha Customize Desktop 4 05-08-2010 12:45 PM
How To Change Font Color with CSS Vineeta Software Development 4 11-01-2010 03:55 AM
How to change font in Nokia N73 SamDust Portable Devices 3 31-03-2009 01:12 AM
Change Taskbar Font Donnell Windows XP Support 2 27-06-2008 11:23 PM


All times are GMT +5.5. The time now is 05:31 PM.