My favorites | Sign in
Project Logo
                
Search
for
Updated May 09, 2007 by astigsen
Labels: Featured
Runmodes  
Runmodes unique to wxCocoaDialog

wxCocoaDialog supports a few runmodes which are not yet available in the original CocoaDialog for mac:

colorselect

Provides a color selection dialog.

returns: the color selected, or nothing if they cancel.

Options: (in addition to global options)

colorThe initial color to be selected in the dialog. It is quite flexible about the input format. You can define the color in html format like #FFFFFF or FFFFFF (if prepended with #, remember to quote it if using bash), css format like rgb(123,123,123) or for common colors just with the name.
output-rgbOutput the red, green and blue components of the color on separate lines.
output-cssOutput in css format like rgb(123, 123, 123).
output-htmlOutput in html format like #FFFFFF (default)

menu

Shows a popup menu.

returns: Index of the selected menuitem (counting from 1), or nothing if they cancel.

Example: CocoaDialog menu --items o&ne "#two" +three

Options: (in addition to global options)

itemsList of menu items. If prepended with # the item will be disabled. If prepended with + the item will be checked. You can add & in front of a char to make it work as a shortcut.
xposposition of menu (default is mouse pos).
yposposition of menu (default is mouse pos).

html

Shows a html document

Reads a html document (by default from stdin) and presents it for the user in a dialog. If the documents contains links in the form "cocoadialog://return this", clicking them will close the dialog and output the link contents ("return this").

returns: The contents of a cocoadialog:// link clicked, or nothing if closed by user.

Options: (in addition to global options)

html-from-fileRead html document from file (default is stdin).
titleSet dialog title.
widthSet dialog width.
heightSet dialog height


Comment by Josh.Nursing, Aug 13, 2007

Great little port with extended features. I love it.

Currently, it is impossible to have entries in the menu like "<<" and "<" and ">" or symbols starting with like send.

Could it be possible to resolve this in the current C++ source code?

Thanks.

Josh


Sign in to add a comment
Hosted by Google Code