Re: Adding to standard dialogs

2010-05-18 Thread stephen barncard
In 4.0 the dialogdata property is a full fledged data object and can be
multi-dimensional, easily converted back and forth into an array. This
simplifies creating complex dialog boxes with many parameters.  Before 4.0,
complex systems needed to be created to get multiple data blocks, some with
multiple lines and sensitive formatting, "through the eye of the needle".
All the parameters had to be sent in an exact order as well, and contributed
to many scripting errors. This simple change in dialogdata has made a world
of difference in the way I create dialog boxes.

A technique I use to extend the usefulness of a dialog is using some extra
tags I've created to use in addition to the htmltext property.

Often I need to package formatted text in a field in a dialog, but I require
more than the htmltext property will allow, like centering, textcolor and
backgroundcolor (of the entire field), but I want all of the properties to
be described in the htmltext.   After the last line of the gathered
htmlText, I add name-value pairs like this:


As it turns out, if you set the htmltext of a field and include tags it
doesn't know about, Rev just silently ignores those tags and only changes
what it knows.
 So first, I'll parse out the extra tags and process them after first
setting the htmlText. Works like a champ - keeps all display parameters in
one block of text, rather that spread out in two or more areas.

On 18 May 2010 13:33, Bob Sneidar  wrote:

> There is no way to add to the present ask and answer dialogs. But there's
> nothing to prevent you from making your own! See the dialogdata in the
> documentation for methods to send data back and forth between your custom
> dialog window and your application. You get and set the dialogdata (a global
> property) as you please. I don't even think there is any reason why you
> could not use an array.
>
> I would recommend having all your dialog windows as cards in a special
> stack. You can lock the screen, open them modally, set things up the way you
> want, and then show and hide the stack. Once the user clicks whatever ok or
> cancel or other button, you set the dialog data according to the contents of
> the particular dialog, then hide or close the stack.
>
> Bob
>
>
> On May 17, 2010, at 8:07 PM, Paul D. DeRocco wrote:
>
> > Is there any way to modify the standard file open/save dialogs, to add
> > things like checkboxes?
> >
> > --
> >
> > Ciao,   Paul D. DeRocco
> > Paulmailto:pdero...@ix.netcom.com
> >
> > ___
> > use-revolution mailing list
> > use-revolution@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



-- 
-
Stephen Barncard
Back home in SF
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Adding to standard dialogs

2010-05-18 Thread stephen barncard
One *could* make a great ask/answer file dialog from scratch, complete with
the 'correct' icons that would be very close to the standard.  Do a search
of Rev archives for 'Directory Walker' . There are many, many threads about
this.
*You could use a datagrid and lay it out any way you want.*

On 18 May 2010 14:20, J. Landman Gay  wrote:

> Bob Sneidar wrote:
>
>> There is no way to add to the present ask and answer dialogs. But
>> there's nothing to prevent you from making your own!
>>
>
> Yup. But Paul wanted to know about open/save file dialogs. Unfortunately
> there's no way to modify those.
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



-- 
-
Stephen Barncard
Back home in SF
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Adding to standard dialogs

2010-05-18 Thread Bob Sneidar
Silly me. Same principle applies though. It's one of the reasons I like 
hypercoding so much. You can fairly easily make things look pretty much like 
anything you want. I wrote a Monopoly stack once in my Hypercard heyday. There 
was no color at the time though, so I gave it up. 

Bob


On May 18, 2010, at 2:20 PM, J. Landman Gay wrote:

> Bob Sneidar wrote:
>> There is no way to add to the present ask and answer dialogs. But
>> there's nothing to prevent you from making your own!
> 
> Yup. But Paul wanted to know about open/save file dialogs. Unfortunately 
> there's no way to modify those.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Adding to standard dialogs

2010-05-18 Thread J. Landman Gay

Bob Sneidar wrote:

There is no way to add to the present ask and answer dialogs. But
there's nothing to prevent you from making your own!


Yup. But Paul wanted to know about open/save file dialogs. Unfortunately 
there's no way to modify those.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Adding to standard dialogs

2010-05-18 Thread Bob Sneidar
There is no way to add to the present ask and answer dialogs. But there's 
nothing to prevent you from making your own! See the dialogdata in the 
documentation for methods to send data back and forth between your custom 
dialog window and your application. You get and set the dialogdata (a global 
property) as you please. I don't even think there is any reason why you could 
not use an array. 

I would recommend having all your dialog windows as cards in a special stack. 
You can lock the screen, open them modally, set things up the way you want, and 
then show and hide the stack. Once the user clicks whatever ok or cancel or 
other button, you set the dialog data according to the contents of the 
particular dialog, then hide or close the stack. 

Bob


On May 17, 2010, at 8:07 PM, Paul D. DeRocco wrote:

> Is there any way to modify the standard file open/save dialogs, to add
> things like checkboxes?
> 
> --
> 
> Ciao,   Paul D. DeRocco
> Paulmailto:pdero...@ix.netcom.com
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Adding to standard dialogs

2010-05-17 Thread Paul D. DeRocco
Is there any way to modify the standard file open/save dialogs, to add
things like checkboxes?

--

Ciao,   Paul D. DeRocco
Paulmailto:pdero...@ix.netcom.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution