XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
What about XWidget2.0 action command format change to this? https://www.bbs.xwidget.com/viewtopic.php?f=3&t=4298 |
Page 1 of 1 |
Author: | Tony [ March 29th, 2014, 9:25 pm ] |
Post subject: | What about XWidget2.0 action command format change to this? |
I am developing XWidget2.0 ,and trying to make XWidget2 more easy to use and easy to create widget with no script. What about XWidget2.0 action command format change to this? --Support Multiple command, --Support control other Controls/Cores by option param "(control name)" --Support control other widget from folderName by option param "<folder name>" --Support Visual-Commands-Builder-Tool to Auto Generate commands ,just need select command target object and input params. ===Controls command============== [!obj opacity 0.3] Change the do command control's property opacity to 0.3 [!obj fadeto 0.3] Call the do command control's function "fadeto" with param 0.3, will make this control fade to opacity 0.3 [!obj moveto 100 200 0.5] Call the do command control's function "moveto" with param 100 200 0.5, will make this control move to 100,200 duration 0.5 sec [!obj animatefloat "left" 200 0.3] Call the do command control's function "animatefloat" with param "left" 200 0.3, will make this control's property "left" animate change to 200 duration 0.3 sec [!obj (text1) SelectTextFontColor] Open Select color dialog to change control "text1" font color,with autosave to config and autoload from config . the "()" is option [!obj <eker_note> (text1) text "OK!"] set widget(foldername "eker_note") 's control "text1" property "text" to "OK!" ===Cores command============== [!core 12hr/24hr] Do core command 12hr/24hr for current core [!core (datetimecore2) showsetting] Do core command 12hr/24hr for datetimeCore2, the "()" is option param ===widget golobe command============== [!cmd OpenTaskMgr] open taskmgr [!cmd <eker_note> moveto 100 200] call widget eker_note cmd to move to 100,200. the "<>" is option param ===Script command============== [!func <eker_note> DoFunc1 10 20] call script function "DoFunc1" with param 10,20 for widget "eker_note", the "<>" is option param ----------------------------------------------------------------------- for excample, text1 onclick action will change text1's opacity to 0.3 with animate duration 0.3 and move image2 to 100,200 with animation duration 0.5. Code: [!obj fadeto 0.3][!obj (image2) moveto 100 200 0.5]
|
Author: | Jimking [ March 30th, 2014, 4:32 am ] |
Post subject: | Re: What about XWidget2.0 action command format change to th |
Have various functions that required a script it will be great!! But we need to be careful to not change a lot of things, the structure of the Designer and leave the tags and cores function as in XW 1.x. Sometimes changing a lot the things, is more confusing and more hard for the users to learn again for the scratch.. Personally I prefer the selection of "ready to use" tags as now.. Maybe the veterans of the script code will love it, but the normal user will hate it.. |
Author: | Tony [ March 30th, 2014, 4:52 am ] |
Post subject: | Re: What about XWidget2.0 action command format change to th |
jimking wrote: Have various functions that required a script it will be great!! But we need to be careful to not change a lot of things, the structure of the Designer and leave the tags and cores function as in XW 1.x. Sometimes changing a lot the things, is more confusing and more hard for the users to learn again for the scratch.. Personally I prefer the selection of "ready to use" tags as now.. Maybe the veterans of the script code will love it, but the normal user will hate it.. XWidget2 will include a Visual-Commands-Builder-Tool to Auto Generate commands ,just need select command target object and input params. XWidget2 will almost completely compatible with XWidget1.x, tags and cores are still exists. I means that Improvement actions with this easy new commands to replace parts of script. I know normal user not like write script,So I will make a Visual-Commands-Builder-Tool, You just need select control name and command with mouse, not need write script ,just uses Visual-Commands-Builder-Tool to do more things. for excample: if you need to do two actions : fade out text1 to 0.3 ,and move image1 to 100,200 in 1.x: you had to write script code like this: test1.fadeto(0.3, 0.2); image1.moveto(100,200,0.5). in 2.0: you not must write script code, just uses Visual-Commands-Builder-Tool to select control name "text1" and seclet command "fadeto" and set param "0.3" and 0.2 and add command to image1 the same. So, with this new command format and Visual-Commands-Builder-Tool, normal user can create more powerful widget but NOT had learn and write script code ![]() |
Author: | digigamer [ March 30th, 2014, 5:20 am ] |
Post subject: | Re: What about XWidget2.0 action command format change to th |
This is great. However, I would like to propose another change to the designer. The code editor is buggy. But there is a high quality open-source component available already, with a permissible license for use in commercial software. http://www.scintilla.org/ Also, support for editing the XUL manually and multiple script files will be a welcome move for script enthusiasts. |
Author: | Tony [ March 30th, 2014, 5:49 am ] |
Post subject: | Re: What about XWidget2.0 action command format change to th |
digigamer wrote: This is great. However, I would like to propose another change to the designer. The code editor is buggy. But there is a high quality open-source component available already, with a permissible license for use in commercial software. http://www.scintilla.org/ Also, support for editing the XUL manually and multiple script files will be a welcome move for script enthusiasts. The Scintilla is cool ,but it is write by GTK+, I can not uses it in Delphi ![]() |
Author: | digigamer [ March 30th, 2014, 8:06 am ] |
Post subject: | Re: What about XWidget2.0 action command format change to th |
Delphi can call c++ dlls. It would be a hard way though...! However, the good things is there is a couple of bindings already available: DScintilla (very popular): https://code.google.com/p/dscintilla/ http://www.pnotepad.org/scintilla/ |
Author: | yereverluvinuncleber [ October 14th, 2014, 8:32 am ] |
Post subject: | Re: What about XWidget2.0 action command format change to th |
I had already suggested Context as a replacement code editor, it is available to use now, it is a fully fledged code editor, it was written in Delphi and the author is looking for someone to take it on. -oOo- I for one am not afraid of a bit of code. I am hoping that the scripting ability will survive in its entirety in version 2.0 for those of use who want to be able to create more complex functions. At the moment the scripting functionality is falling behind the widget, you cannot for instance, create new image or menu objects from code whereas you can do so via the GUI. All GUI operations should be achievable in code too. |
Author: | Tony [ October 14th, 2014, 6:02 pm ] |
Post subject: | Re: What about XWidget2.0 action command format change to th |
Hi Yereverluvinuncleber, Thanks for your feedback and suggestion, I am improving the XWidget2.0 Designer's CodeEdit and Script, etc: 1. uses Notepad++ editor core in XWidget2.0 designer : support code autocomplition and code suggestion,support code fold 2. uses Lua script to cross-platform(run Both on Windows and Android ) and support create Control and Core with script. viewtopic.php?f=22&t=5129 yereverluvinuncleber wrote: I had already suggested Context as a replacement code editor, it is available to use now, it is a fully fledged code editor, it was written in Delphi and the author is looking for someone to take it on.
-oOo- I for one am not afraid of a bit of code. I am hoping that the scripting ability will survive in its entirety in version 2.0 for those of use who want to be able to create more complex functions. At the moment the scripting functionality is falling behind the widget, you cannot for instance, create new image or menu objects from code whereas you can do so via the GUI. All GUI operations should be achievable in code too. |
Author: | yereverluvinuncleber [ October 15th, 2014, 1:44 am ] |
Post subject: | Re: What about XWidget2.0 action command format change to th |
Tony, Superb to hear of the editor improvements, it is essential that the IDE be fluid and easy to use, not frustrating. I am most impressed by what you are attempting and how much you are achieving. I really look forward to ver 2.0 and if I can help with testing the new version I would be happy to give it my time. |
Author: | Tony [ October 15th, 2014, 1:57 am ] |
Post subject: | Re: What about XWidget2.0 action command format change to th |
Thank you,I will upload the first beta version to forum about next month end ![]() yereverluvinuncleber wrote: Tony, Superb to hear of the editor improvements, it is essential that the IDE be fluid and easy to use, not frustrating. I am most impressed by what you are attempting and how much you are achieving. I really look forward to ver 2.0 and if I can help with testing the new version I would be happy to give it my time.
|
Author: | yereverluvinuncleber [ October 23rd, 2014, 7:48 am ] |
Post subject: | Re: What about XWidget2.0 action command format change to th |
Tony, a few of my Feature Requests - I hope they make it into Xwidget 2.0 IDE. Feature Request - Alt +f+s - being able to save via the keyboard http://bbs.xwidget.com/viewtopic.php?f=3&t=3430 Feature Request - grab lines - all lines to thin and difficult to grab http://bbs.xwidget.com/viewtopic.php?f=3&t=3450 Feature Request - double click on a layer/object opens code http://bbs.xwidget.com/viewtopic.php?f=3&t=3451 Please have a look at each. |
Author: | Rom [ January 26th, 2017, 3:17 am ] |
Post subject: | Re: What about XWidget2.0 action command format change to th |
Hello GPU Core maybe for the 2.0 ?? ![]() |
Author: | yereverluvinuncleber [ January 26th, 2017, 10:20 am ] |
Post subject: | Re: What about XWidget2.0 action command format change to th |
What would the GPU core do? Provide stats re: GPU usage, no. of shaders &c? |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |