Skip to content

TCountView missing #146

Answered by magiblot
paule32 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Jens!

To use the built-in window counters, you just have to initialize the number field in your dialog (inherited from TWindow). The code for drawing the window counter is in TFrame:

if( ((TWindow *)owner)->number != wnNoNumber &&
((TWindow *)owner)->number < 10
)
{
l -= 4;
if( ( ((TWindow *)owner)->flags & wfZoom ) != 0 )
i = 7;
else
i = 3;
b.putChar( width-i, ((TWindow *)owner)->number + '0' );
}

However, as you can see, it only displays window numbers smaller than 10.

To calculate the window number, I guess the idiomatic way would be to define a custom broa…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by paule32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants