WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Boxes Functions
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Box Text Resize Problem


Question:

I am using BoxesUp, BoxDrawText etc to display a status window from a process that runs on a timed basis. I have the window controls enabled so that the program can be shutdown and the window minimised etc. The problem is that the window can be resized which results in the font size being altered and the text overruns itself etc.

Can resizing of the window be disabled but still allow the window controls to be active? Can the font grow proportional so that the text doesn't overwite on resizing?

Answer:

I am not aware of any to disable the box resizing, however you can change the mapping mode of the box, so that the text doesn't get resized....

For Example:

BoxesUp("200,200,800,800", @normal)
BoxMapMode(1,0)
BoxDrawText(1, "200,200,750,250", "WinBatch Box Example - BoxDrawText ",@TRUE, 0)
BoxCaption(1, "WinBatch BoxDrawText Example")
BoxDrawText(1, "100,350,900,400", "Use BoxDrawText to display information to your user's. ", @TRUE, 0)
TimeDelay(5)

User Reply:

Thanks, the BoxMapMode gives me what I need to control the text. What was happening was that I was 'printing' some text on the same line starting at different points. As the window was resized the font of the text was growing (or shrinking) but as it was still being output at the original co-ordinates the parts ran over each other.
Article ID:   W16906
File Created: 2007:07:03:14:26:54
Last Updated: 2007:07:03:14:26:54