Customized GUI

B

Brandon Mr

first off, sorry if this in the wrong place, i just signed up here.
if so, let me know where to put further posts.

i am looking for a way to make a customized gui, like using differently
shaped windows or graphics for the window borders, while allowing me to
add buttons (using images) i dont mind researching things and learning
how they work and i dont mind having to learn a new toolkit, the
problem is i cant find anything to suit my needs, i have tried a few
different toolkits, including TK, Fox and GTK. I have made a few
differnt programs, imcluding an alarm clock, and a file manipulation
program(moving, renaming, creating, files and folders, complete with
GUIs using Fox toolkit) just to give you an estimation of what i know.
If these can do what id like them to do, i cant find out how. i have
been looking for weeks and havent come any closer. this is the last step
before giving up on it....

i am running on windows 7, (i know probably not the best place to start
with custom gui programming), I run ruby 1.86, and i have looked into
Shoes, Bowline, Glitter, GTK + Glade, Clutter (i have the files, they
are in tarballs and dont know where to put all the files, and the lack
of documentation sucks.)

i hope that is enough for someone to help if not let me know what you
need to know. Thanks in Advance....

X
 
M

Marnen Laibow-Koser

Brandon said:
first off, sorry if this in the wrong place, i just signed up here.
if so, let me know where to put further posts.

i am looking for a way to make a customized gui, like using differently
shaped windows or graphics for the window borders, while allowing me to
add buttons (using images)
[...]

Will Limelight (a bit like shoes, in JRuby) or Monkeybars (Swing
integration framework) be any help?

Best,
 
B

Brandon Mr

Marnen said:
Brandon said:
first off, sorry if this in the wrong place, i just signed up here.
if so, let me know where to put further posts.

i am looking for a way to make a customized gui, like using differently
shaped windows or graphics for the window borders, while allowing me to
add buttons (using images)
[...]

Will Limelight (a bit like shoes, in JRuby) or Monkeybars (Swing
integration framework) be any help?

Best,

i did see limelight, and i dont know java. which some java is required
to use limelight effectively, unless i am mistaken?

monkeybars i dont know about i will check with that and see if i can get
some info on that, and get back here
 
C

Chuck Remes

Marnen said:
Brandon said:
first off, sorry if this in the wrong place, i just signed up here.
if so, let me know where to put further posts.

i am looking for a way to make a customized gui, like using
differently
shaped windows or graphics for the window borders, while allowing
me to
add buttons (using images)
[...]

Will Limelight (a bit like shoes, in JRuby) or Monkeybars (Swing
integration framework) be any help?

Best,

i did see limelight, and i dont know java. which some java is required
to use limelight effectively, unless i am mistaken?

monkeybars i dont know about i will check with that and see if i can
get
some info on that, and get back here

Limelight is pure ruby so you don't need to learn any java.

Monkeybars is a DSL for Java Swing, so while you don't need to write
any Java code it is very useful to know how to read it. To effectively
use Monkeybars requires some knowledge of the Java Swing API.

cr
 
B

Brandon B.

Chuck said:
Limelight is pure ruby so you don't need to learn any java.

thanks for the heads up on limelight, i will have to give it a second
look and give some of the examples a try. why does it require jruby libs
if you dont need to use java in conjunction? it that just because it
builds off of java functionaily using ruby syntax?
 
J

James Britt

Brandon said:
monkeybars i dont know about i will check with that and see if i can get
some info on that, and get back here

http://monkeybars.rubyforge.org/

http://www.ibm.com/developerworks/library/j-monkeybars/index.html

My IBM article is slightly dated, but fundamentally correct.

See also Neurogami::SwingSet

http://neurogami.github.com/swingset/

mostly intended for use with Jimpanzee (my fork of Monkeybars) or
Monkeybars.

--
James Britt

www.jamesbritt.com - Playing with Better Toys
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff
www.neurogami.com - Smart application development
 
J

James Britt

Chuck said:
Marnen said:
Brandon Mr wrote:
first off, sorry if this in the wrong place, i just signed up here.
if so, let me know where to put further posts.

i am looking for a way to make a customized gui, like using differently
shaped windows or graphics for the window borders, while allowing me to
add buttons (using images)
[...]

Will Limelight (a bit like shoes, in JRuby) or Monkeybars (Swing
integration framework) be any help?

Best,

i did see limelight, and i dont know java. which some java is required
to use limelight effectively, unless i am mistaken?

monkeybars i dont know about i will check with that and see if i can get
some info on that, and get back here

Limelight is pure ruby so you don't need to learn any java.

Monkeybars is a DSL for Java Swing,

Um, not quite. It's a robust MVC library that makes it much easier to
separate GUI code from app logic and data manipulation. (In fact, were
someone motivated, the Swing part could be swapped out for SWT and most
of the code would stay the same.)
so while you don't need to write any
Java code it is very useful to know how to read it. To effectively use
Monkeybars requires some knowledge of the Java Swing API.

Sometimes. If you use the free NetBeans GUI editor you can use a
WYSIWYG tool to draw and compile the UI, and use (J)Ruby to drive it.
Or use Neurogami::SwingSet.

Knowing some Swing certainly helps; Monkeybars is not really meant to
*hide* Swing, but that's part of its strength. Anything you can do in
Swing you can do in Monkeybars. Sometimes it's easy (e.g. setting up
buttons and text fields) sometimes not ( various table controls, for
example, that are freakishly complex in that special Java way).

I started Neurogami::SwingSet to wrap common Swing items to reduce (and
ideally eliminate) the need for Swing knowledge, so you can get a fair
amount done using a plain text editor and no concern for Swing innards.

In actual practice, though, while I mostly use SwingSet for basic forms
(Help, About, or anything that is a simple grid of basic components) I
find that sophisticated layouts and screens works best when done using
a GUI editor and occasionally some manual Swing-based code to make
things Just So.

When picking a GUI toolkit there is often trade-off between what the
code does for you and what the code allows you.

I'm pretty sure all of the more robust GUI toolkits expect you to know
the APIs for the numerous widgets, so Monkeybars is no different in that
way.

For example, Shoes and Limelight make certain things stupid easy, but
you have a small set of pre-defined widgets to use. If those are all
you are going to need (and the toolkits meet your packaging and
distribution requirements), then you win.

If you go for Ruby bindings for GTK or Wx (or any of the robust JRuby
Swing frameworks) you get far more options, but an increase in
complexity and a need to learn some widget APIs. The win comes from the
greater sophistication possible in your applications.

The bottom line is that anyone looking for a Ruby GUI toolkit should not
be put off by the idea of maybe having to learn and use something not
strictly Ruby. That's shortsighted.

The key is to know if and when your choice is going to box you in
because you can only do what the toolkit author has decided for you.


--
James Britt

www.jamesbritt.com - Playing with Better Toys
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff
www.neurogami.com - Smart application development
 
B

Brandon B.

Knowing some Swing certainly helps; Monkeybars is not really meant to
*hide* Swing, but that's part of its strength. Anything you can do in
Swing you can do in Monkeybars. Sometimes it's easy (e.g. setting up
buttons and text fields) sometimes not ( various table controls, for
example, that are freakishly complex in that special Java way).

not even sure what swing is... i dont mind learning new things, i
just dont know what to learn to get what i want to get done. i think i
am gonna look up swing though... sounds like it could be useful to know.
I started Neurogami::SwingSet to wrap common Swing items to reduce (and
ideally eliminate) the need for Swing knowledge, so you can get a fair
amount done using a plain text editor and no concern for Swing innards.

In actual practice, though, while I mostly use SwingSet for basic forms
(Help, About, or anything that is a simple grid of basic components) I
find that sophisticated layouts and screens works best when done using
a GUI editor and occasionally some manual Swing-based code to make
things Just So.

gui editors are a big help, and i have used Fox and GTK. i have looked
through the libraries and examples that i can find and i just cant seem
to get what i want done using them. almost makes me feel like i just
wasted alot of time learning something that wont help. even though i
know that to be false.
When picking a GUI toolkit there is often trade-off between what the
code does for you and what the code allows you.

I'm pretty sure all of the more robust GUI toolkits expect you to know
the APIs for the numerous widgets, so Monkeybars is no different in that
way.

For example, Shoes and Limelight make certain things stupid easy, but
you have a small set of pre-defined widgets to use. If those are all
you are going to need (and the toolkits meet your packaging and
distribution requirements), then you win.

If you go for Ruby bindings for GTK or Wx (or any of the robust JRuby
Swing frameworks) you get far more options, but an increase in
complexity and a need to learn some widget APIs. The win comes from the
greater sophistication possible in your applications.

The bottom line is that anyone looking for a Ruby GUI toolkit should not
be put off by the idea of maybe having to learn and use something not
strictly Ruby. That's shortsighted.\

i dont mean to sound shortsighted, and yes i do agree, i actually want
to learn alot of the languages, C++, Java, ruby, PHP, HTML. i love to
program. i just get stuck into one goal that shouldnt be too hard to
make happen and... well... i cant get it done. frustrating to say the
least. gotta love programming....

like i said, i dont have a problem with learning new things, i just dont
know what to learn, i feel like a kid in a candy store trying to figure
out what he wants.....
 
J

James Britt

Brandon said:
i dont mean to sound shortsighted, and yes i do agree, i actually want
to learn alot of the languages, C++, Java, ruby, PHP, HTML. i love to
program. i just get stuck into one goal that shouldnt be too hard to
make happen and... well... i cant get it done. frustrating to say the
least. gotta love programming....

like i said, i dont have a problem with learning new things, i just dont
know what to learn, i feel like a kid in a candy store trying to figure
out what he wants.....

It can be tricky. If you can spend a bit of time with different
libraries and tools it would help. But even then, it can be hard to
really know what each offers over the long run.



--
James Britt

www.jamesbritt.com - Playing with Better Toys
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff
www.neurogami.com - Smart application development
 
B

Brandon B.

It can be tricky. If you can spend a bit of time with different
libraries and tools it would help. But even then, it can be hard to
really know what each offers over the long run.

yea, im kinda getting that vibe... thanks everyone for the info, i
think im just gonna take a step back and see if i can work things out a
bit.

take care,

X
 
A

Arndt Roger Schneider

Brandon said:
first off, sorry if this in the wrong place, i just signed up here.
if so, let me know where to put further posts.

i am looking for a way to make a customized gui, like using differently
shaped windows or graphics for the window borders, while allowing me to
add buttons (using images) i dont mind researching things and learning
how they work and i dont mind having to learn a new toolkit, the
problem is i cant find anything to suit my needs, i have tried a few
different toolkits, including TK, Fox and GTK. I have made a few
differnt programs, imcluding an alarm clock, and a file manipulation
program(moving, renaming, creating, files and folders, complete with
GUIs using Fox toolkit) just to give you an estimation of what i know.
If these can do what id like them to do, i cant find out how. i have
been looking for weeks and havent come any closer. this is the last step
before giving up on it....

i am running on windows 7, (i know probably not the best place to start
with custom gui programming), I run ruby 1.86, and i have looked into
Shoes, Bowline, Glitter, GTK + Glade, Clutter (i have the files, they
are in tarballs and dont know where to put all the files, and the lack
of documentation sucks.)

i hope that is enough for someone to help if not let me know what you
need to know. Thanks in Advance....

X


Are you trying to create a visualizaition with gui elements?

Maybe something akin what I did with gstripes (Tk):
http://gestaltitems.sourceforge.net/geitems/Gestalt_Items_Gstripes.html
?

-roger
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top