184 {
187 if (menuButton)
188 {
190 menuButton.SetText(label);
191 menuButton.SetTextColor(labelColor);
192 menuButton.Show(true);
193
194 if (funcName == "")
195 {
196 menuButton.SetFlags(menuButton.GetFlags() |
WidgetFlags.IGNOREPOINTER);
197 }
198 else
199 {
201 }
202
203 int itemWidth = label.
Length();
206 }
207
209 m_commands.Insert(
new CallQueueContext(obj, funcName, params));
210 }
proto native int Length()
Returns length of string.
proto int ToUpper()
Changes string to uppercase. Returns length.