d3coy
02-04-2006, 02:43 PM
I hope its not a bug, and maybe we can find a work-around, but try this code out:
rollout testrollout "Test Tabs"
(
local tabnames = #("First", "Second", "Third")
activeXControl ax "MSComctlLib.TabStrip.2" height:200 width:25 pos:[0,1]
on testrollout open do
(
ax.tabs.clear()
ax.placement = #tabplacementleft
ax.font.size = 7
for x = 1 to tabnames.count do
(
newtab = ax.tabs.add()
newtab.caption = tabnames[x]
)
)
)
createdialog testrollout
--cui.registerdialogbar testrollout
Run it as is, then simply press enter on the keyboard with the dialog active. Nothing happens, as nothing should. Uncomment the cui.registerdialogbar and try the same test, although this time when you press enter, it activates the max tool zoomall tool! This is very annoying if you have a combobox or any other UI element that requires the user to input text and reflexively press enter afterwards, since it would call this tool at that point. Any thoughts?
Something with enableAccelerators()?
rollout testrollout "Test Tabs"
(
local tabnames = #("First", "Second", "Third")
activeXControl ax "MSComctlLib.TabStrip.2" height:200 width:25 pos:[0,1]
on testrollout open do
(
ax.tabs.clear()
ax.placement = #tabplacementleft
ax.font.size = 7
for x = 1 to tabnames.count do
(
newtab = ax.tabs.add()
newtab.caption = tabnames[x]
)
)
)
createdialog testrollout
--cui.registerdialogbar testrollout
Run it as is, then simply press enter on the keyboard with the dialog active. Nothing happens, as nothing should. Uncomment the cui.registerdialogbar and try the same test, although this time when you press enter, it activates the max tool zoomall tool! This is very annoying if you have a combobox or any other UI element that requires the user to input text and reflexively press enter afterwards, since it would call this tool at that point. Any thoughts?
Something with enableAccelerators()?
