IonicWind Software

IWBasic => GUI Central => Topic started by: billhsln on August 31, 2019, 06:17:20 PM

Title: Can you draw in Richedit
Post by: billhsln on August 31, 2019, 06:17:20 PM
I was wondering if I could put a line drawing into a Richedit.

Thinking:

This is a line of text (would allow up to 133 chars).
_________|_________|_________|_________|_________|_________|_________|_________|_________|
         1         2         3         4         5         6         7         8         9

But where _________| is done with a LINE command.  I want smaller |'s for each single char, a slightly larger | for 5's and then the largest | for the 10's.

Working on creating a text editor to split reports into some thing that can be easily loaded into a Spread Sheet from a flat file.

Thanks,
Bill

PS, I create a lot of spread sheets for work off of reports sent to the printer, so I am thinking of something that I can add tab's or comma's between fields and if the field is numeric, but the negative sign is after the number or it has ()'s to show negatives, I want to convert it to a standard numeric, with the - sign in front of the number.
Title: Re: Can you draw in Richedit
Post by: Brian on September 01, 2019, 05:27:22 AM
Bill,

Why not make your own font up? Should be easy enough

Brian
Title: Re: Can you draw in Richedit
Post by: fasecero on September 01, 2019, 10:25:50 AM
Brian's right,

https://en.wikipedia.org/wiki/Box-drawing_character

Quote from: undefinedBox-drawing characters, also known as line-drawing characters, are a form of semigraphics widely used in text user interfaces to draw various geometric frames and boxes.

─────┴─────
Unfortunately, these are only drawn correctly in unicode, you would need a richedit unicode to do it.

Alternatively you could make a small image for each "necessary block" and paste as appropriate.

─ ┴