Page 1 of 1

How to create a "Widget container" like a sidebar

Posted: Fri Nov 06, 2009 6:55 pm
by ale870
Hello,

I wanted to create a sidebar, similar the one you can find in Mac, Windows Vista, etc...
My target was create a sidebar in RunRev, and using RunRev self to create the widgets ;-)

Now the problem I cannot decide how to solve some problems. Can you give me some suggestions, hints?

Well, these are the problems:

1) I need to create (main-stack?) a stack to "lock" it to a side of my screen (e.g.: lock on the right edge of the screen). This "component" must be always in "background" (widgets must lie over it). How can I setup a stack to lie always back to other stacks?

2) In order to create widgets, I was planning to create some Rev stacks, and load them, at runtime, to the main sidebar. Then I move them over the sidebar self. It is correct? Have you any better idea to accomplish this?

Thank you!

Posted: Sat Nov 07, 2009 9:07 am
by shadowslash
1. The approach that I think I'd do is use the windowBoundingRect property and I'd simply set the right of my main stack to the third item of the windowBoundingRect. As for the stack to lay behind the other windows, I might suggest using another language but almost equally easy to use as revTalk such as AutoIt. It can really handle Windows tasks.

2. I can't really get your question here... Sorry bout that... Image

Posted: Mon Nov 09, 2009 6:39 pm
by ale870
Thank you.
I think a found a good way. I will keep you informed (maybe I could create a sidebar standards so anybody can make and publish its rev widgets inside!) :-)

Posted: Tue Nov 10, 2009 6:31 am
by Garrett
If you're referring to like the Vista/7 Sidebar and or the Taskbar where no other windows are allowed to go into it's area or over it unless it's a fullscreen window. You won't be able to apply an "appbar" to Rev unless you use a third party program. Rev does not have any internal ability for this.

Posted: Tue Nov 10, 2009 6:40 am
by shadowslash
ale870 wrote:Thank you.
I think a found a good way. I will keep you informed (maybe I could create a sidebar standards so anybody can make and publish its rev widgets inside!) :-)
That would be nice... Image

Posted: Tue Nov 10, 2009 10:59 am
by ale870
Thank you.
I will get in touch :wink:

Posted: Fri Nov 13, 2009 10:58 pm
by ale870
I successfully created the "core" of the system. Obviously, a lot of things must be done.
However, I will publish a couple of screenshots in the next week.
I'm still writing the complete list of features, writing the messages sent (sidebar will "notify" some events to the widgets).

Thank you.