Hi Bruce,
Maybe there is something you can do about this sometime. Below the
script is my output, which shows that on my PC, a combo box will be ok
in a PPro bar button up to height setting of 25. Anything between 26
and 44, the combo box is inoperable. Doesn't matter if the manifest is
used or not. For some other users, the combo can't be used at the 24
setting that works for me. Would be nice if the dropdown window (when
dropped) was always 206. I can detect when its only 2, and change it
with Window.Position but it sure makes a mess since it needs to be
visible to change the height after its already been created).
Regards,
Sheri
local pprodir=file.folder(win.exepath("c=powerpromain"))
if (file.validpath(pprodir++?"\powerpro.exe.manifest")) do
win.debug("manifest is active, shutdown powerpro b4 renaming it")
else
win.debug("manifest is not active")
endif
if (cl.exists("testc") !==0)
cl.removeall("testc")
local testbar=cl.create("testc", 1)
testbar.newproperties("Format1 = IconSize: 24 Position: Floating")
testbar.addproperties("Format2 = MaxText: 531")
testbar.addproperties("Format3 = Flat Back: 144 176 255")
testbar.addproperties("Format4 = Border Tooltips AllVDesks 3DFrame
BarSize TextCenter")
;combo box
local combobutton=testbar.insert(testbar.length)
combobutton.setid("combo1")
combobutton.setlabel("*control combobox dropdownlist clientedge scroll
sort border autohscroll")
combobutton.setwidth(450)
for (local i=1;i<50;i++)
cl.setheight("testc", "combo1", i)
bar.show("testc")
local CB_SHOWDROPDOWN = 0x014F
local cb1=testbar.GetCtrlHandle("combo1")
win.sendmessage(cb1, CB_SHOWDROPDOWN, 1, 0)
local cb1listheight=win.height("c=ComboLBox")
win.sendmessage(cb1, CB_SHOWDROPDOWN, 0, 0)
win.debug("button height:", cl.getheight("testc", "combo1"), ;;+
"drop window height: ", cb1listheight)
endfor
cl.setheight("testc", "combo1", 24)
bar.close("testc")
quit
(my output, same whether manifest is active or not)
button height: 1 drop window height: 206
button height: 2 drop window height: 206
button height: 3 drop window height: 206
button height: 4 drop window height: 206
button height: 5 drop window height: 206
button height: 6 drop window height: 206
button height: 7 drop window height: 206
button height: 8 drop window height: 206
button height: 9 drop window height: 206
button height: 10 drop window height: 206
button height: 11 drop window height: 206
button height: 12 drop window height: 206
button height: 13 drop window height: 206
button height: 14 drop window height: 206
button height: 15 drop window height: 206
button height: 16 drop window height: 206
button height: 17 drop window height: 206
button height: 18 drop window height: 206
button height: 19 drop window height: 206
button height: 20 drop window height: 206
button height: 21 drop window height: 206
button height: 22 drop window height: 206
button height: 23 drop window height: 206
button height: 24 drop window height: 206
button height: 25 drop window height: 206
button height: 26 drop window height: 2
button height: 27 drop window height: 2
button height: 28 drop window height: 2
button height: 29 drop window height: 2
button height: 30 drop window height: 2
button height: 31 drop window height: 2
button height: 32 drop window height: 2
button height: 33 drop window height: 2
button height: 34 drop window height: 2
button height: 35 drop window height: 2
button height: 36 drop window height: 2
button height: 37 drop window height: 2
button height: 38 drop window height: 2
button height: 39 drop window height: 2
button height: 40 drop window height: 2
button height: 41 drop window height: 2
button height: 42 drop window height: 2
button height: 43 drop window height: 2
button height: 44 drop window height: 19
button height: 45 drop window height: 19
button height: 46 drop window height: 19
button height: 47 drop window height: 19
button height: 48 drop window height: 19
button height: 49 drop window height: 19