Unfortunately it's a limitation of the XmCreateMessageBox routine. I chose that because it was relatively *easy* to do (easy is a code word for "I copied an existing dialog box that CDE used").

Now if you wanted to you could do web search one of the thousand ancient Motif/CDE guides and create a dialog/chooser from scratch and have a zillion buttons, but I wouldn't recommend that for a couple of reasons.

1) Primarily because CDE (which dtksh is part of) is on the Solaris EOS list and could be removed.

http://docs.sun.com/app/docs/doc/820-7273/fbdtw?l=en&a=view

2) It's not cross platform, meaning if you ever wanted to deploy SRSS on Linux, you'd have to find something else anyways.

3) There are better far cross platform scripting tools now available I "made" the original chooser. Zenity is one. Using a list dialog, tt's very easy to create a chooser with pretty much unlimited options to launch things. You can make the choices using in a number of manners, the most logical being the checklist or radiolist. User selects the app they want to run and then chooses one of the two available buttons, OK or Cancel. The only real downside is that you can't put icons in a list dialog box. :(

We've got a few examples floating around that are quite good that I'll stick up on The Think Thin blog, but you could probably figure it out very quickly just using the zenity manual.

http://library.gnome.org/users/zenity/stable/zenity-list-options.html.en

The other thing you could use Tcl/Tk. Where the beauty of zenity is in it's ease of use, Tcl/Tk is fairly simple and very powerful. Plus you can stick a whole bunch of icons or graphics in there to make it really pretty. I actually had a very nice one from a former colleague, but the downside it used features of the "commercial" product ActiveTcl. Commercial is in quotes because they used to offer a community version, but now that version is no longer available for Solaris and you'd have to get the "Business" edition for $750. Ouch.

You can still do the same things in regular Tcl/Tk, it will just be a bit more work.

Anyways, I'll poke around and post the examples I can find.

Nishimura, Scott L (IT Solutions) wrote:
Seth,

  If it's the same function that I use, the 3rd button is hard-coded to
quit.  It's built-in to the code and I didn't know enough about the X
language to tweak the code.  I think the code comes as an "object" that
has 2 options + quit.


Scott

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Seth Galitzer
Sent: Tuesday, July 06, 2010 2:22 PM
To: SunRay-Users mailing list
Subject: EXTERNAL:[SunRay-Users] need a better kiosk chooser

I'm sure this is a FAQ, but I'm not finding an answer in the archives
yet.

For the last couple of years, we've been using the CAM chooser script from http://blogs.sun.com/ThinkThin/entry/cam_chooser_application. This

has served us well until now, when I need to ad a third login option.  I

haven't figures out yet how to override the "quit" behavior and use that

button to enable the third application.

Can somebody either point me to documentation on how to do this, or is there a better way to allow an un-authenticated session to choose an application from a list?

Thanks.
Seth

_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to