I found this in the OnEvent: "Note: Since Edit and MonthCal controls have their own context menu, a right-click in one of them will not launch the ContextMenu event."
But I need these edits since text controls don't give an option for good wrapping
Any solution?
Code: Select all
g := Gui("+AlwaysOnTop -Caption +ToolWindow +LastFound")
g.OnEvent("ContextMenu", Clack, -1)
g.AddPicture("x10 y10 w48 h-1 Section Icon +0x100" I,F)
g.AddEdit((ico ? "xs+48 ys" : "") " w" W0 " Background" g.BackColor " -VScroll -E0x200 Center vt 0x800", titl) ; Using readonly edit for word-cut-wrapping for fixed width
g.AddEdit((ico ? " xs+48" : "") " w" W0 " Background" g.BackColor " -VScroll -E0x200 y+5 Center 0x80 0x800", tip)
Clack(g,params*){
for i,param in params
str .= i . param . " "
MsgBox(str)
g.Destroy
}