Questions tagged [textout]
39 questions
1
vote
1 answer
How to write dynamic text to an image in a TImageList used by a navbar?
I recently came across a situation where I needed to write a counter to an image used for a navbar, where the image was coming from an imagelist component.
After racking my brain for a few hours looking at other articles such as:
How to load a…

SiBrit
- 1,460
- 12
- 39
1
vote
1 answer
display textOut in multiple columns using C# Console.WriteLine
I am creating a program that will convert Fahrenheit to Celsius and vice-versa. The code works but how do I get my textOut to display in multiple columns using Console.WriteLine in C#?
Here is my code (not including Program.cs or…

Corina
- 11
- 5
1
vote
3 answers
How to align oriented text vertically or horizontally?
I am writing a function that draws text on a canvas. The function supports alignment vertical and horizontal, and also text orientation. My problem is that can't calculate proper alignment when text is oriented. This is the header:
procedure…

nico
- 127
- 1
- 13
1
vote
1 answer
How do I properly display Korean text with TextOut?
I am compiling with the UNICODE directive, so all CStrings are in Unicode. If I place "봉재" into a CString, select a font with "Arial", then use TextOut or TextOutW to display this text, two boxes are displayed.
If I add Latin characters to the text,…

gfindlay
- 11
- 2
1
vote
2 answers
C++ WinAPI TextOut() update text
I'm creating a Windows application with WinAPI. I'm using the TextOut() function to display updated text to the user when handling the WM_PAINT message for the window.
case WM_PAINT:
{
PAINTSTRUCT ps;
HDC hdc;
hdc = BeginPaint(hwnd,…

yop
- 141
- 1
- 4
- 11
1
vote
1 answer
Different shift length result of TextOut between Window 7 and Window XP
As title, I use CDC tool to painting text, as follow code, and use the nXOffset variable to shift location to align my text, but result of shift length is deference in windows 7 and windows xp, windows 7 is OK, but window xp does not my expectation.…

user1753112
- 203
- 2
- 17
1
vote
1 answer
WinApi, ::TextOut with different fonts (like Tahoma) bug
guys. I found really strange problem. With some fonts (there is a ChooseFont in my program) ::TextOut(..) draw text a little offset to the left from chosen position (smth like 2 pxl). DrawText(..) goes the same way. SetTextAlign DON'T solve this…

Vitaly Senko
- 323
- 2
- 13
1
vote
0 answers
TextOut() function displays text but text disappears as the window is Minimized or restored
I am unsing TextOut() Function to display some text in my window. It works fine and text is displayed as soon as the Window is Maximized.But as Soon as the Window is Minimized and restored again, all text displayed on window disappears :(
Is there…

Ayse
- 2,676
- 10
- 36
- 61
0
votes
0 answers
Multiline String with TCHAR and TextOut
I am trying to make a string on multiple lines in a windows desktop wizard with c++. I have absolutely no clue how to do it, as \n didn't work. No errors, it just doesn't make a new line.
Here is the section of the code where i'm trying to do…
0
votes
0 answers
(.text+0x26f): undefined reference to `TextOutA@20'
I've Been trying to fix this code for days now. When I try to compile main.cpp It gives me the error C:\Users\Username\AppData\Local\Temp\cckKRlpR.o:main.cpp:(.text+0x26f): undefined reference to TextOutA@20'. I've also tried including gdi32.lib and…

NoobBit
- 1
- 1
- 2
0
votes
0 answers
GUI C++ - Paint multiple lines? (Beginner question)
I want to explore C++ GUI coding.
I downloaded the example below and wanted to modify the output highlighted with: "<---------------". I know its a very stupid question but my goal is to learn the concept of GUI with C++ by doing.
What and why I…

nolimits
- 43
- 1
- 3
- 16
0
votes
1 answer
win32: TextOut not being displayed
I recently having my mainwindow write text by using WM_PAINT, but now I realise it was maybe not the best message to do so in, so I'm trying another version;
The mainwindow contains a menu, upon clicing a menu item the ID_FILE_PID msg is sent and it…

KaiserJohaan
- 9,028
- 20
- 112
- 199
0
votes
1 answer
Iterate through Rows in SQL to Output to Text File
I have a SQL table that contains several hundred rows of data. One of the columns in this table contains text reports that were stored as plain text within the column.
Essentially, I need to iterate through each row of data in SQL and output the…

GreatMagusKyros
- 75
- 2
- 11
0
votes
1 answer
Windows: right-to-left characters output using TextOut
I'd like to ask for help with win32 native TextOutW function when it comes down to displaying characters with right-to-left text direction. Basically, I want TextOutW to display text with characters as is, without applying any…

Dmitry Karasik
- 21
- 3
0
votes
2 answers
Is it possible to draw antialiased text on an 8bpp bitmap in Win32?
I've selected an 8bpp bitmap into a CDC, and used ::TextOut () to draw text. The font quality is ANTIALIASED_QUALITY, but the text comes out in monochrome; no gray pixels & jagged edges.
The 8bpp bitmap was extracted from a 24bpp bitmap that…

user20493
- 5,704
- 7
- 34
- 31