How to create a "Widget container" like a sidebar

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

How to create a "Widget container" like a sidebar

Post by ale870 » Fri Nov 06, 2009 6:55 pm

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!

shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Contact:

Post by shadowslash » Sat Nov 07, 2009 9:07 am

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
Parañaque, Philippines
Image
Image

ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

Post by ale870 » Mon Nov 09, 2009 6:39 pm

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!) :-)

Garrett
Posts: 386
Joined: Sat Apr 08, 2006 8:15 am
Contact:

Post by Garrett » Tue Nov 10, 2009 6:31 am

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.
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)

shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Contact:

Post by shadowslash » Tue Nov 10, 2009 6:40 am

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
Parañaque, Philippines
Image
Image

ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

Post by ale870 » Tue Nov 10, 2009 10:59 am

Thank you.
I will get in touch :wink:

ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

Post by ale870 » Fri Nov 13, 2009 10:58 pm

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.

Post Reply