conversations
list | source
string | stack
string |
---|---|---|
[
{
"from": "system",
"value": "Refresh the GUI when mxLoggerObserverGUI updates text of a TGadget\n\nrefs gh-17\n"
},
{
"from": "human",
"value": "Type mxLoggerObserverGUI\n\n\tField m_output:Object\n\t\n\tMethod Reset()\n\t\tIf TGadget(m_output)\n\t\t\tSetGadgetText(TGadget(m_output), \"\")\n\t\tEnd If\n\tEnd Method\n\n\tMethod SendMessage:Object(message:Object, context:Object)\n\t\tLocal msg:String = String(message)\n\t\tIf String(context) = \"error\"\n\t\t\tNotify(msg, True)\n\t\tElse If TGadget(m_output)\n\t\t\tLocal gadget:TGadget = TGadget(m_output)\n\t\t\tSetGadgetText(gadget, GadgetText(gadget) + \"~n\" + String(message))\n\t\tElse If m_output = Null\n\t\t\tNotify(msg)\n\t\tEnd If\n\tEnd Method\n\nEnd Type"
},
{
"from": "gpt",
"value": "Type mxLoggerObserverGUI\n\n\tField m_output:Object\n\t\n\tMethod Reset()\n\t\tIf TGadget(m_output)\n\t\t\tSetGadgetText(TGadget(m_output), \"\")\n\t\tEnd If\n\tEnd Method\n\n\tMethod SendMessage:Object(message:Object, context:Object)\n\t\tLocal msg:String = String(message)\n\t\tIf String(context) = \"error\"\n\t\t\tNotify(msg, True)\n\t\tElse If TGadget(m_output)\n\t\t\tLocal gadget:TGadget = TGadget(m_output)\n\t\t\tSetGadgetText(gadget, GadgetText(gadget) + \"~n\" + String(message))\n\t\t\t'Refresh GUI\n\t\t\tDriver.Poll\n\t\tElse If m_output = Null\n\t\t\tNotify(msg)\n\t\tEnd If\n\tEnd Method\n\nEnd Type"
}
] | blitzmax | chosen |
README.md exists but content is empty.
- Downloads last month
- 40