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

CodePudding user response:

The
reference 3 floor SXQVB response:
I want to use SendMessage (List1. HWND, LB_SETTABSTOPS, 3 & amp; To set set List1, width) the width of a TAB in the healthy, but don't know what unit of the DuDu

Apis used in the "unit of measure", and with you in VB6 form or a control ScaleMode irrelevant!
On "test", I also don't know what is it that "unit of measure", conversion relationship is probably "unit 1=1.5 pixels",
Set up the first tabstop location, for example, "60", then it will be located in "90 pixels",

And you said the "width", should be "not correct"; Is the correct way of saying, it is "TabStop position table,"
Do you want to set up multiple (seems to be the "table" must begin from the first TAB),
Then you should put the corresponding data in a "Long array", each value corresponding to the "absolute position,"
And the API is called when the lParam pass is "the first address values", namely "the memory address of the first element",
Therefore attention should be paid to your API statement format, correctly passed "lParam",

CodePudding user response:

Is there similar to the attribute of the DOCK?
  • Related