Home > Software engineering >  Label control set-top problem
Label control set-top problem

Time:09-22

Excuse me each great god, and how to put label control above mapobject controls, "format", "order", "buy before" has been tested, invalid. Adopted first in mapobject controls placed on a picturebox control, then put the label controls on picturebox control, also not line, because a picturebox control unable to set transparent background, will be covered in mapobject controls part of the great god, please stop guidance, thank you ~ ~ ~

CodePudding user response:

With a PictureBox or Frame controls as a "container", then put the Lable control in it,
"Container" is set to control the appearance of the "plane, without borders" style,

A few "lightweight" controls such as Label (in common: the hWnd attribute),
Is said to be "through direct drawing object show "in its corresponding" container window,
"So that they can't "in the other attributes of the hWnd control",

CodePudding user response:

If you want to "no", blocking other controls may only HOOK window message processing,
Then oneself use GDI functions to display the text "painting" on the window,

CodePudding user response:

No direct set-top,
But you can consider in mapobject | picturebox | label overlay mode, the picture painted onto the picturebox mapobject corresponding areas, simulate the effect of the "transparent background",

CodePudding user response:

Make a separate transparent Form into the Label, then to Form the corresponding window top try,

CodePudding user response:

CodePudding user response:

reference 4 floor zhao4zhong1 response:
create a separate puts the Label transparent Form, then try to Form the corresponding window top,

Why do still use Lable, the need to display the text directly to Print to form went,

CodePudding user response:

Is the Label, accidentally input errors,

CodePudding user response:

refer to 7th floor Chen8013 response:
is a Label, accidentally input errors,

Can get more psychological comfort, at least,

CodePudding user response:

Have no way to "top" label, but you can use without borders picturebox set-top, embeds label
label is the essence of drawing form, the and other control is the essence of the form, like the text pattern on the tablecloth can't run to put books on the stationery on the table,
  • Related