cob007 19 Posted June 18, 2020 Report Share Posted June 18, 2020 sorry what i meant was this as u mentioned it will work only with text columns as below, can the table to datagrid work with image column. Its ok if it cannot work with button column but if a update can be made to with table to datagrid image column then that would be great Update version 1.5 Added - Table To DataGrid (still experimental and likely will change)Fixed - Events not working correctly Note: Table To DataGrid will still require you to initialize the DataGrid. It will only work with text columns for now, so your entire DataGrid should be text columns to use this. This command is still early but it is functional and so I included it in this update along with the bug fix. Quote Link to post Share on other sites
cob007 19 Posted June 18, 2020 Report Share Posted June 18, 2020 Update V 1.11 AddedChange DataGrid Text Cell ValueChange DataGrid Image Cell ValueChange DataGrid Button Cell ValueAdd DataGrid Header Click EventThe ability to run a command when the datagrid header is clicked means that you can implement a sorting algorithm for the datagrid. In the UltimateUI Demo folder that comes with the plugin you will see DataGrid With Sort Example to see a basic example of how to use Add DataGrid Header Click Event and sort a table. ive sent you a PM with regards to the query Quote Link to post Share on other sites
HelloInsomnia 1103 Posted June 24, 2020 Author Report Share Posted June 24, 2020 Update V 1.12 AddedChange DataGrid CheckBox Cell ValueSet TreeViewItem PropertyGet TreeViewItem PropertyAdd TreeViewItem Event 1 Quote Link to post Share on other sites
cob007 19 Posted July 2, 2020 Report Share Posted July 2, 2020 for the Change DataGrid Text Cell Value can we change the colour of the text as well. Because this helps in case we have a text that is in submission and then done, we can change the color to done to green to show the completion of the job. 1 Quote Link to post Share on other sites
HelloInsomnia 1103 Posted July 2, 2020 Author Report Share Posted July 2, 2020 Somebody was asking about the TreeView commands, they work the same as most of the others but here is a brief example of some of them: plugin command("UltimateUI.dll", "UI Load XAML", "<TreeView Name=\"myTreeViewEvent\"> <TreeViewItem Header=\"Employee1\" x:Name=\"emp1\"> <TreeViewItem Header=\"Jesper Aaberg\" x:Name=\"jesper\" /> <TreeViewItem Header=\"Employee Number\"> <TreeViewItem Header=\"12345\" /> </TreeViewItem> <TreeViewItem Header=\"Work Days\"> <TreeViewItem Header=\"Monday\" /> <TreeViewItem Header=\"Tuesday\" /> <TreeViewItem Header=\"Thursday\" /> </TreeViewItem> </TreeViewItem> </TreeView>", "False", "False", "False", "BaseLight", "Blue") plugin command("UltimateUI.dll", "UI Add TreeViewItem Event", "Expanded", "emp1", "Expanded") plugin command("UltimateUI.dll", "UI Add TreeViewItem Event", "Collapsed", "emp1", "Collapsed") alert("expanding") wait(0.5) plugin command("UltimateUI.dll", "UI Set TreeViewItem Property", "IsExpanded", "emp1", "true") define Expanded { alert("{$plugin function("UltimateUI.dll", "$UI Get TreeViewItem Property", "Header", "emp1")} expanded") } define Collapsed { alert("{$plugin function("UltimateUI.dll", "$UI Get TreeViewItem Property", "Header", "emp1")} collapsed") } 1 Quote Link to post Share on other sites
HelloInsomnia 1103 Posted July 2, 2020 Author Report Share Posted July 2, 2020 Update V 1.13 AddedPadding, Font Family, Font Size, Foreground, Background, Horizontal Alignment, Vertical Alignment parameters to Change DataGrid Text CellMax Width, Max Height, Horizontal Alignment, Vertical Alignment parameters to Change DataGrid Image CellPadding, Font Family, Font Size, Foreground, Background, Horizontal Alignment, Vertical Alignment parameters to Change DataGrid Button CellBreaking ChangesRename: Change DataGrid Button Cell Value -> Change DataGrid Button CellRename: Change DataGrid CheckBox Cell Value -> Change DataGrid CheckBox CellRename: Change DataGrid Image Cell Value -> Change DataGrid Image CellRename: Change DataGrid Text Cell Value -> Change DataGrid Text Cell Note: these names provide better longevity to the software and flexibility to change more than just the values of the cells. 2 Quote Link to post Share on other sites
Marani 80 Posted July 14, 2020 Report Share Posted July 14, 2020 (edited) UPDATE: I totally forgot about 'Set" commands and using it solved my issue. this post can be ignored.*****************************************************************************************************************Nick, I loaded the XAML code in an On Load command, but the data (in front of the labels) doesn't populate till the bot is finished doing it's job, then I do a Run Node on the Load XAML node manually to see the labels' text is updated with data. How can I populate data in the run time? Edited July 14, 2020 by Marani Quote Link to post Share on other sites
drewness 26 Posted July 21, 2020 Report Share Posted July 21, 2020 Hi Nick, I sent an email with my question but posted here in case the answer may be useful to others if the glitch is widespread and not related to my setup: After adding sorting logic hooked to a Datagrid event header click, when updating the grid with the sorted table the Table to Datagrid command works instantly, which is awesome. The problem is, when the table has formatting or special cells/columns that aren't text-based the table to Datagrid command isn't able to add the cells with images or buttons, styling, etc. So I clear all Datagrid rows with the command and then loop through the table to add the rows one at a time. Unfortunately, when doing this the table clears and then doesn't update in the interface until after a fairly significant delay - it's like the UI locks up. I haven't been able to find a way around this delay - do you have any suggestions on how the grid can update in realtime as the rows are added to remove the lag? Side note: thanks for adding the tree view stuff, I haven't gotten a chance to experiment with it much yet but it will definitely add to the UX for bots so I'm excited to dig in. Thanks again for all your excellent work on the plugin - very much appreciated! Quote Link to post Share on other sites
cob007 19 Posted July 21, 2020 Report Share Posted July 21, 2020 Hi Nick, I sent an email with my question but posted here in case the answer may be useful to others if the glitch is widespread and not related to my setup: After adding sorting logic hooked to a Datagrid event header click, when updating the grid with the sorted table the Table to Datagrid command works instantly, which is awesome. The problem is, when the table has formatting or special cells/columns that aren't text-based the table to Datagrid command isn't able to add the cells with images or buttons, styling, etc. So I clear all Datagrid rows with the command and then loop through the table to add the rows one at a time. Unfortunately, when doing this the table clears and then doesn't update in the interface until after a fairly significant delay - it's like the UI locks up. I haven't been able to find a way around this delay - do you have any suggestions on how the grid can update in realtime as the rows are added to remove the lag? Side note: thanks for adding the tree view stuff, I haven't gotten a chance to experiment with it much yet but it will definitely add to the UX for bots so I'm excited to dig in. Thanks again for all your excellent work on the plugin - very much appreciated!Hi drew I had the same issue and i have made the same workaroud. Nick said he will work on doing a table to datagrid with images as at the moment table to datagrid does not allow images to beused directly AS TABLE TO DATAGRID can only work with text column at the moment Quote Link to post Share on other sites
drewness 26 Posted July 21, 2020 Report Share Posted July 21, 2020 Yeah that would be a good fix for images, but I'm also worried about button columns, centering text in certain columns, and other formatting that might be tricky to push through in a single table to Datagrid call - I like the looping and adding option so data can be altered as added to the grid, if we could get rid of the delay and have the grid start rendering the new rows as they're added in realtime Quote Link to post Share on other sites
HelloInsomnia 1103 Posted July 24, 2020 Author Report Share Posted July 24, 2020 Update V 1.14 AddedPadding, Font Family, Font Size, Foreground, Background, Horizontal Alignment, Vertical Alignment parameters to Table To DataGridFixedBug where Change DataGrid Text Cell would throw an error when using Table To DataGridRemoved extra space at bottom of DataGridBreaking ChangesTable To DataGrid has added properties which will break that command so you will need to update it Quote Link to post Share on other sites
cob007 19 Posted July 24, 2020 Report Share Posted July 24, 2020 Table To DataGrid has added properties which will break that command so you will need to update it thanks nick, does datagrid work with image cell now Quote Link to post Share on other sites
HelloInsomnia 1103 Posted July 27, 2020 Author Report Share Posted July 27, 2020 Table To DataGrid has added properties which will break that command so you will need to update it thanks nick, does datagrid work with image cell now The datagrid can use images yes. Table to datagrid cannot though right now. Quote Link to post Share on other sites
Marani 80 Posted August 2, 2020 Report Share Posted August 2, 2020 Nick,Can I have multi-line cells in datagrid? If yes, how should I do that?Thanks Quote Link to post Share on other sites
HelloInsomnia 1103 Posted August 4, 2020 Author Report Share Posted August 4, 2020 Nick,Can I have multi-line cells in datagrid? If yes, how should I do that?Thanks I think this is what you mean: plugin command("UltimateUI.dll", "UI Load XAML", "<DataGrid x:Name=\"dg\"/>", "False", "False", "False", "BaseLight", "Blue") plugin command("UltimateUI.dll", "UI Initialize DataGrid", "dg", "{$plugin function("UltimateUI.dll", "$UI Add DataGrid Text Column", "Name")}{$plugin function("UltimateUI.dll", "$UI Add DataGrid Text Column", "Age")}", 16, "Arial", "", "") plugin command("UltimateUI.dll", "UI Add DataGrid Row", "dg", "{$plugin function("UltimateUI.dll", "$UI DataGrid Text Cell", "Bob", "", "Arial", 12, "", "", "Center", "Center")}{$plugin function("UltimateUI.dll", "$UI DataGrid Text Cell", 36, "", "Arial", 12, "", "", "Center", "Center")}") plugin command("UltimateUI.dll", "UI Add DataGrid Row", "dg", "{$plugin function("UltimateUI.dll", "$UI DataGrid Text Cell", "Jane Steve", "", "Arial", 12, "", "", "Center", "Center")}{$plugin function("UltimateUI.dll", "$UI DataGrid Text Cell", 29, "", "Arial", 12, "", "", "Center", "Center")}") plugin command("UltimateUI.dll", "UI Add DataGrid Row", "dg", "{$plugin function("UltimateUI.dll", "$UI DataGrid Text Cell", "Taylor", "", "Arial", 12, "", "", "Center", "Center")}{$plugin function("UltimateUI.dll", "$UI DataGrid Text Cell", 22, "", "Arial", 12, "", "", "Center", "Center")}") plugin command("UltimateUI.dll", "UI Add DataGrid Row", "dg", "{$plugin function("UltimateUI.dll", "$UI DataGrid Text Cell", "Joe", "", "Arial", 12, "", "", "Center", "Center")}{$plugin function("UltimateUI.dll", "$UI DataGrid Text Cell", 41, "", "Arial", 12, "", "", "Center", "Center")}") Quote Link to post Share on other sites
Marani 80 Posted August 4, 2020 Report Share Posted August 4, 2020 Actually I directly use "Table to Datagrid" command without using "UI Add DataGrid Row" (adding row command seems to work slow, isn't it?). So I first add new lines to the list of items(which is stroed in a #var), then convert the #var to a list, and add that list as a column to the table, then convert the table to the datagrid. it works but I'll miss those new lines in the datagrid. Quote Link to post Share on other sites
HelloInsomnia 1103 Posted August 5, 2020 Author Report Share Posted August 5, 2020 Actually I directly use "Table to Datagrid" command without using "UI Add DataGrid Row" (adding row command seems to work slow, isn't it?). So I first add new lines to the list of items(which is stroed in a #var), then convert the #var to a list, and add that list as a column to the table, then convert the table to the datagrid. it works but I'll miss those new lines in the datagrid. Can you post some code that is always helpful to replicate an issue. Quote Link to post Share on other sites
Marani 80 Posted August 6, 2020 Report Share Posted August 6, 2020 Just sent you a PM Nick. Quote Link to post Share on other sites
drewness 26 Posted August 17, 2020 Report Share Posted August 17, 2020 (edited) Hi Nick, Hope all is well! Thank you for the newest rounds of updates you released in the past month - I meant to follow up sooner but time got away from me. The sort table then table to datagrid works much faster than the adding individual rows, and allow for column sorting with the event hooks for data grid headers - super awesome! I purchased the source code and have been trying to go through on how to achieve this but I'm stumped, was hoping you might be able to shed some insight on how you'd do it (or add it as an update if possible): Import Table to Datagrid but look at the column type and if it's a checkbox, have True or False render the checkboxes for that column as checked or unchecked. I'm sure it can be done but I'm having trouble wrapping my head around detecting that and rendering correctly, but most of my grids have a checkbox column so I'm stuck on sorting and re-rendering grids without doing the slower loop add row method. Additionally, I know with Aymens datagrid plugin we could set column widths and pass a * or 'auto' (I can't remember which) to a column (I believe the syntax was something like if you wanted 5 columns with the middle row taking up the remaining available space, you would set the width in the properties like 25|100|*|100|50 (or auto where the * is). Would it be possible to replicate that? A lot of my grids look really compressed on wider screens and it would add a lot of polish to the interfaces. EDIT: Also, I forgot to mention - when using a context menu (i added one to a data grid) when the associated function runs after clicking the menu item, if the operation takes a few seconds to change (i.e. - scraping a webpage to update the datagrid row's cell values - can be recreated by just adding a 5 second wait in the called function) the context menu stays open and the interface locks up until the function has completed. Is there any workaround for this? Thanks again for this awesome plugin, it's really been a game-changer. I still haven't gotten to dive much into tree views but I really appreciate that being added, working on refactoring a few bots and going to utilize them instead of the multiple combo boxes I was using as a workaround. Edited August 17, 2020 by drewness Quote Link to post Share on other sites
gijosu 9 Posted September 4, 2020 Report Share Posted September 4, 2020 Can you share demo exe using both eliteubot and ultimateui with new features? Thanks Nick Quote Link to post Share on other sites
cob007 19 Posted October 6, 2020 Report Share Posted October 6, 2020 i want the togggle switch metro datagrid to be like this but im not able to do add this in the final ubot LOAD XAML UI.In that it ends up looking like another toggle switch, like the one you show in the training video. this is the code i used and although in xaml UI it shows exactly like this the windows 10 style toggle switch like the link of mahaapps below, in the final UI inside Uobt it shows like , like the one you show in the training video.which is the normal toggle switch and not windows 10 stylr <StackPanel Grid.Column="0" Margin="220,120,0,0" Height="167" VerticalAlignment="Top"> <Controls:ToggleSwitch x:Name="metroProgressBar" Header="Toggle Switch Sample" VerticalAlignment="Stretch"/> </StackPanel> https://mahapps.com/docs/controls/toggleswitch Quote Link to post Share on other sites
HelloInsomnia 1103 Posted October 9, 2020 Author Report Share Posted October 9, 2020 Update v 1.15 - over 7,000+ icons added AddedMaterial IconsFontAwesome IconsModern IconsMetro Demo With Icons demo projectFixedMetro Demo Project change static resources to dynamicMetro Demo Project fix issue with load xaml How To Use Icons In your VS project add these packages: https://www.nuget.org/packages/MahApps.Metro.IconPacks.FontAwesome/https://www.nuget.org/packages/MahApps.Metro.IconPacks.Material/https://www.nuget.org/packages/MahApps.Metro.IconPacks.Modern/ Then add the following namespaces: xmlns:Material="clr-namespace:MahApps.Metro.IconPacks;assembly=MahApps.Metro.IconPacks.Material" xmlns:FontAwesome="clr-namespace:MahApps.Metro.IconPacks;assembly=MahApps.Metro.IconPacks.FontAwesome" xmlns:Modern="clr-namespace:MahApps.Metro.IconPacks;assembly=MahApps.Metro.IconPacks.Modern" Now you can use icons in the following way: <Material:PackIconMaterial Kind="Account" /> <Modern:PackIconModern Kind="User" /> <FontAwesome:PackIconFontAwesome Kind="UserSolid" /> Quote Link to post Share on other sites
HelloInsomnia 1103 Posted October 9, 2020 Author Report Share Posted October 9, 2020 i want the togggle switch metro datagrid to be like this but im not able to do add this in the final ubot LOAD XAML UI.In that it ends up looking like another toggle switch, like the one you show in the training video. this is the code i used and although in xaml UI it shows exactly like this the windows 10 style toggle switch like the link of mahaapps below, in the final UI inside Uobt it shows like , like the one you show in the training video.which is the normal toggle switch and not windows 10 stylr <StackPanel Grid.Column="0" Margin="220,120,0,0" Height="167" VerticalAlignment="Top"> <Controls:ToggleSwitch x:Name="metroProgressBar" Header="Toggle Switch Sample" VerticalAlignment="Stretch"/> </StackPanel> https://mahapps.com/docs/controls/toggleswitch The new version looks like that but updating would break things for everyone so I'll have to see if there is another way. Quote Link to post Share on other sites
cob007 19 Posted October 13, 2020 Report Share Posted October 13, 2020 1. As you see in the image, i want the progress bar with values to be adjacent to the text. I reckon this was done using list view, list view contains text and each text has proggress bar with values, is this something we can do with list view with ultimate UI Quote Link to post Share on other sites
FallingDown 2 Posted September 3, 2021 Report Share Posted September 3, 2021 Hi @HelloInsomnia How can I add a open file dialogue button to the UI? Thanks. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.