XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
ProgressBar Code https://www.bbs.xwidget.com/viewtopic.php?f=8&t=6984 |
Page 1 of 1 |
Author: | Rom [ March 24th, 2019, 7:15 am ] |
Post subject: | ProgressBar Code |
Hello ! I try to change the ForeGround Fill of a Progressbar with java. Wath is the code ? i try this but not work "progressbar1.Background.Fill.Color = rgba(255,255,255,255);" Thx ![]() |
Author: | Jimking [ March 25th, 2019, 3:05 am ] |
Post subject: | Re: ProgressBar Code |
Check these "multicolor" topics to port and fit the js used to your widget https://www.deviantart.com/jimking/gall ... multicolor |
Author: | Rom [ March 25th, 2019, 7:08 am ] |
Post subject: | Re: ProgressBar Code |
Ok Thanks ![]() |
Author: | Jimking [ March 25th, 2019, 8:17 am ] |
Post subject: | Re: ProgressBar Code |
You're welcome! ![]() |
Author: | Rom [ March 25th, 2019, 8:51 am ] |
Post subject: | Re: ProgressBar Code |
I have a question. I created a widget with cores "ShortCutCore and PhotoAlbumCore" and here is what I would like to do. Create a button to change the Path of ShorCutCore and save in an INI. And the same thing for the PhotoAlbumCore Folder Path I try codes but I can not do what I want. I try with this notament. Setinivalue ("inifile path", "section", "keyName", "keyValue"); Getinivalue ("inifile path", "section", "keyName", "defaultValue"); Thank you ![]() |
Author: | Jimking [ March 26th, 2019, 3:01 am ] | ||
Post subject: | Re: ProgressBar Code | ||
I attach you a test widget. There are built-in tag codes for both functions. The paths will be saved. (for the shortcut path there are more options/tags to use for) You want something different than that? ![]()
|
Author: | Rom [ March 26th, 2019, 4:03 am ] |
Post subject: | Re: ProgressBar Code |
Is it possible for this to save to an Ini file with this code ? Setinivalue ("inifile path", "section", "keyName", "keyValue"); Getinivalue ("inifile path", "section", "keyName", "defaultValue"); |
Author: | Jimking [ March 26th, 2019, 10:05 am ] |
Post subject: | Re: ProgressBar Code |
The save. ini works when you reload a widget or during the normal restart of Windows or restart of the program itself. When you completely close a widget / remove it from desktop no settings are saved. This is something general. XWidget works like this. So in your case, you don't need any js, since any configuration will be saved equally but always according the above conditions. |
Author: | Rom [ March 27th, 2019, 6:25 am ] |
Post subject: | Re: ProgressBar Code |
ok if i restart my PC all configuration are saved right ? Or i can use this code SaveIni() SaveAsDefIni() |
Author: | Jimking [ March 27th, 2019, 8:19 am ] |
Post subject: | Re: ProgressBar Code |
Yes. The configurations of the shortcut and photoalbum cores are saved even after restart the pc. As I told you in prev comment only when you completely close XWidget or close a widget (remove it from the desktop) the configuration options will be lost |
Author: | Rom [ March 28th, 2019, 5:59 am ] |
Post subject: | Re: ProgressBar Code |
Ok but i want to save configuration for after reboot you'r PC you don't have to reconfigure all of shortcut ![]() |
Author: | Jimking [ March 28th, 2019, 3:20 pm ] |
Post subject: | Re: ProgressBar Code |
Rom wrote: Ok but i want to save configuration for after reboot you'r PC you don't have to reconfigure all of shortcut ![]() I think that my previous comment was clear enough.. The shortcuts ARE SAVED EVEN AFTER YOU RESTART YOUR PC. You DON'T need any .ini js code! ONLY when you remove completely a widget from your desktop, the configuration/shortcuts will be lost. There is NO WAY to overwrite it. Because the js code is loading only when the widget is running (!) |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |