Overblog
Follow this blog Administration + Create my blog

drawtext

An autosize VFP editbox

An autosize VFP editbox

this code builds an autosize editbox embed in a container class. it calculates the number of lines of the editbox for any given width and then it sets the real height with a fontname,fontsize and a fontstyle as parameters. the height of an editbox line...

Read more

A custom vfp Ansi and Unicode  tooltip

A custom vfp Ansi and Unicode tooltip

The drawText APi studied in previous post can draw a formatted text on any window surface. It can be ANSI (drawtext or DrawtextA) or Unicode(DrawTextW). A top level form is used here as tooltip fired on mouseEnter event on a control and destoyed on MouseLeave...

Read more

The DrawText API by a real example

The DrawText API by a real example

The drawText APi have some explanations in this MSDN link https://msdn.microsoft.com/en-us/library/windows/desktop/dd162498%28v=vs.85%29.aspx its very usefull when you want to format a text (ANSI orR Unicode) in a given area. The DrawText function draws...

Read more