Skip to main content

All Questions

4 votes
2 answers
194 views

Transforming file sizes to text representation

I am building on online file manager. One of the columns it displays is the file size, but this is always a high number of bytes. I would like to display the file size as does Windows Explorer, with a ...
ProfK's user avatar
  • 51.2k
4 votes
1 answer
1k views

QML use remaining width of last line in a Flow with multi-line Text

In QML, I want to fit some text into a limited amount of space. This text contains a localised, static and a variable part (a filename). The variable part is potentially too long to fit into the space ...
Tim Oesterreich's user avatar
0 votes
1 answer
31 views

Alignment being throw off after successive appends to textarea?

Here is a screenshot of what I'm talking about: https://i.sstatic.net/qgyxd.png Here's my code for formatting: items.append(String.format("%-30d%-30.2f%-30.2f%-30.2f\n", c, a, s, t)); Because each ...
John Smith's user avatar
0 votes
1 answer
1k views

List Formatting in Tkinter Text Box

I was just wondering if there was a way to get each of the elements in a list to display on separate lines, or with a line in between them in a text box in TKinter. What I have right now is simple ...
seanscal's user avatar
  • 568
5 votes
4 answers
24k views

How to correctly create a tab delimited text file in Java

I am trying to create a tab delimeted text file so that the output appears like columns but for some reason the tab appears on different locations. This is caused by the fact that the data values are ...
ziggy's user avatar
  • 15.9k
2 votes
1 answer
48k views

How do you format text/strings in VBA?

In the code below, I take some input parameters, either text or a cell, and combine them to form one string using the formatting I need. I need to make Task_Name bold, as well as text like "Lead :". ...
achinda99's user avatar
  • 5,078