Home > Software engineering > Listbox control without ScaleMode property how to keep the same as the form of
Listbox control without ScaleMode property how to keep the same as the form of
Time:09-16
My form ScaleMode property is vbPixels, want to stay with and listbox control, need to be what kind of conversion?
CodePudding user response:
Listbox only left, top, width, heigh and scalemode, these four attributes in the forms interface design as long as the form of scalemode changed corresponding numerical also changed automatically, if the form of the scalemode once you have identified as vbpixels this four attributes according to the pixels can be defined, Only containers such as form, picturebox scalemode property, the property of the container positioning, effective normal controls the scalemode property to determine the coordinates of the container of the size of the numerical meaning,
CodePudding user response:
Form is scalemode Pixels, the listbox in form, but I'm in a listbox MouseMove events to observe the value of x and y, and MouseMove event in the form of the value of x and y comparison, discovered the listbox a lot larger than form, is about 14.5 times
CodePudding user response:
I want to use SendMessage (List1. HWND LB_SETTABSTOPS, 3 & amp; , width) to set set the List1 the width of a TAB in the health, but don't know what the DuDu is for unit