XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 10th, 2025, 6:01 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Help "Arrangable Widget"
PostPosted: May 28th, 2014, 4:32 pm 
Offline
User avatar

Joined: December 18th, 2012, 12:23 am
Posts: 74
Hey guys, im trying to build a system status widget that can be re-aranged directly by moving & placing the parts around and save the "layout" as default so the next time its opened it displays the data the way you prefer, i got the sizegrip working correctly (i think) and one of the "data modules" to move around by click & drag..so far so good.

But im having some probs with a couple things:

1- the CPU/Temperature chart module cant be dragged by clicking directly over it, you need to click a little bit below it, dont know why.
2- when i resize the main widget window it automatically returns to the default position, how can i make it stay where you left it?

can someone check it please, maybe offer some ideas?

thank you!

Attachment:
SystemStatus_3.jpg
SystemStatus_3.jpg [ 23.8 KiB | Viewed 7331 times ]

Attachment:
SystemStatus_1.jpg
SystemStatus_1.jpg [ 62.27 KiB | Viewed 7331 times ]

Attachment:
SystemStatus_2.jpg
SystemStatus_2.jpg [ 88.92 KiB | Viewed 7331 times ]


Attachment:
AIVI_System_status_V2.xwp [12.04 KiB]
Downloaded 300 times

_________________
"If it's true that our species is alone in the Universe then i'd have to say the Universe aimed rather low.. and settled for very little"
-George Carlin


Top
 Profile  
 
PostPosted: May 28th, 2014, 11:32 pm 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
As I told I don't use the sizegrip, but I suppose that not works properly because you need to put all of your components in a main layer.
Create an empty layer with width and height values of the "widget" and drag there your layers to see if will work.
(don't forget to make a backup of your .xwp in case that something go wrong..)

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: May 29th, 2014, 3:51 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
surely there are some bugs with aligning that i have mentioned before in bugs section



kabott1 wrote:
1- the CPU/Temperature chart module cant be dragged by clicking directly over it, you need to click a little bit below it, dont know why.

as i found,
when you drag the size grip, the [LayerCPUgraph] will resize, so your clickable area will get bigger, but since it's hidden you can't see this

as i found you can disable aligning for this layer to don't resize by sizegrip





kabott1 wrote:
2- when i resize the main widget window it automatically returns to the default position, how can i make it stay where you left it?

do you mean when reloading widget?
i don't find any problem with that,
can you explain more?


Top
 Profile  
 
PostPosted: May 29th, 2014, 8:57 am 
Offline
User avatar

Joined: December 18th, 2012, 12:23 am
Posts: 74
jimking wrote:
As I told I don't use the sizegrip, but I suppose that not works properly because you need to put all of your components in a main layer.
Create an empty layer with width and height values of the "widget" and drag there your layers to see if will work.
(don't forget to make a backup of your .xwp in case that something go wrong..)


Ill try that next

hamid wrote:
as i found,
when you drag the size grip, the [LayerCPUgraph] will resize, so your clickable area will get bigger, but since it's hidden you can't see this
as i found you can disable aligning for this layer to don't resize by sizegrip


im not sure i understand what your saying hamid, i want those bottom charts to trim in/out as i move the widget sizegrip to reveal / hide them as one needs, if i disable aligning for this layer it wont react to my actions with the sizegrip no more..


hamid wrote:
do you mean when reloading widget?
i don't find any problem with that,
can you explain more?


Yes, what i meant is: Once you have moved/re-positioned the CPU/Temp chart display ([LayerCPUgraph]) and proced to resize the main widget, the CPU/Temp chart display automatically disappears and returns to its default position, where the desplay was originally before you moved it, it does not stays where you moved it, can this be fixed so that once you have move a Layer (not with the editor but directly via widget ) it "remembers" its last position?


The idea is try to exploit to the max the Liberty xwidget gives when comes to "dynamic widgets" , something really Awesome but that i haven't seen done before, i wanna make a dynamic widget, by "dynamic" i mean: A widget of which it and its content can be re-arranged directly from it, not having to go through the Widget Designer,
Change the widget size and Move the different displays around and also change their size (dunno if this can be done using various sizegrips at the same time) and finally saving the configuration as Default. i wanna post it as an example once its done, so ppl can study how it works.

One dynamic widget gives you certain freedom, many will give you an amazing way to display all your data. This is my old desktop interface, i build it with rainmeter and tooked me around between 7 months (learning & building), but to mod any display i had to get directly in the code and start changing things one by one, it was a slow tedious process, now i wanna take it to the next level making everything dynamic :mrgreen:

Attachment:
iNTERFACE- 1.jpg
iNTERFACE- 1.jpg [ 482.91 KiB | Viewed 7316 times ]

Attachment:
iNTERFACE-2.jpg
iNTERFACE-2.jpg [ 479.3 KiB | Viewed 7316 times ]

Attachment:
iNTERFACE-4.jpg
iNTERFACE-4.jpg [ 504.25 KiB | Viewed 7316 times ]



It looks like a lot of work, but once you have one done, the rest is easy! :D

_________________
"If it's true that our species is alone in the Universe then i'd have to say the Universe aimed rather low.. and settled for very little"
-George Carlin


Top
 Profile  
 
PostPosted: May 30th, 2014, 9:36 am 
Offline
User avatar

Joined: December 18th, 2012, 12:23 am
Posts: 74
OK, i got the window working properly, JimKing was correct, i had to place all the content inside a layer, sizegrip works ok too

Now, how does one gets the widget to save its configuration/ arrangement as default?

I wanna put a button "Save as Default" but no idea how to go and solve this

Thanks guys!



Attachment:
DynamicWindowTestOne.xwp [16.29 KiB]
Downloaded 312 times

_________________
"If it's true that our species is alone in the Universe then i'd have to say the Universe aimed rather low.. and settled for very little"
-George Carlin


Top
 Profile  
 
PostPosted: May 30th, 2014, 11:09 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Thanks a lot for the Dynamic Window test widget kabott1! :)
About the "save ini" I'm sure that hamid can help you..
I don't know how Rainmeter works, but I think that making widgets with XWidget it's more "simple" and fun...

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: May 30th, 2014, 12:19 pm 
Offline
User avatar

Joined: December 18th, 2012, 12:23 am
Posts: 74
Plus there is a LOT you can do with Xwidget you cant with Rainmeter, like it cant browse websites, adjustable size widgets, or stream video with it, among some.

But to be fair, i used it for 3 years, it has available tons of Manuals, instructions and help guides that makes it more accessible, therefore, appealing to the beginner.

One thing i miss from it was the ability to create separate skins and then "include" one to the other via scripting call "@Include1: xx/xx/xx/Contents.ini", that was a way of simplifying your work a lot cause you didn't have to deal with a thousand lines of code, think of it like separating layers in different files, one file contains the Backgorund and some buttons, other file contains the modules & charts,etc , then you simply call the "Contents" file/layers from the "Background" file. It sounds like isn't necessary, but when your are approaching the widgets as an entirely paralel interface, alternative to the traditional Windows OS, things tend to rapidly evolve into chaos lol, you could nest files inside files all you wanted, i really liked that, was a very organized approach.

Anyways, after a week with Xwidget i already did 3 impossible things to do whit Rainmeter .. i browsed the internet with a widget, i created an adjustable size widget with modules inside that can be move around by simply click & drag!! that's AMAZING!

If Xwidget V2 solves some htmlcore bugs the possibilities are:

Attachment:
c85401dfe7660f4b81d4560f12dc699f.jpg
c85401dfe7660f4b81d4560f12dc699f.jpg [ 291.2 KiB | Viewed 7303 times ]


in other words, your imagination will truly be the limit :D

_________________
"If it's true that our species is alone in the Universe then i'd have to say the Universe aimed rather low.. and settled for very little"
-George Carlin


Top
 Profile  
 
PostPosted: May 30th, 2014, 3:57 pm 
Offline
User avatar

Joined: June 10th, 2012, 5:57 am
Posts: 313
XWidget 2.0 will have the include function.

Attachment:
aivitestone.xwp [16.37 KiB]
Downloaded 309 times

more information about setvalue and getvalue : viewtopic.php?f=10&t=2316


Top
 Profile  
 
PostPosted: May 30th, 2014, 5:57 pm 
Offline
User avatar

Joined: December 18th, 2012, 12:23 am
Posts: 74
qiancang wrote:
XWidget 2.0 will have the include function.


wOOT!! qincang THATS AMAZING YOU GUYS!! CANT WAIT!! :o :mrgreen:


(Here's how the new version goes ) updated with qiancang fixes :D

Attachment:
v3.jpg
v3.jpg [ 246.61 KiB | Viewed 7293 times ]


Attachment:
AIVI_system_status_v3.xwp [83.46 KiB]
Downloaded 283 times

_________________
"If it's true that our species is alone in the Universe then i'd have to say the Universe aimed rather low.. and settled for very little"
-George Carlin


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Powered by phpBB® Forum Software © phpBB Group