AW: How to check, if QT has corrupted stack title

Tiemo Hollmann TB toolbook at kestner.de
Thu Mar 12 08:42:40 EDT 2009


No, my approach won't work either, because of the different skins and system
colors the stored snapshot always will be different - too quick shot :(
Tiemo

> -----Ursprüngliche Nachricht-----
> Von: use-revolution-bounces at lists.runrev.com [mailto:use-revolution-
> bounces at lists.runrev.com] Im Auftrag von Tiemo Hollmann TB
> Gesendet: Donnerstag, 12. März 2009 13:17
> An: 'How to use Revolution'
> Betreff: AW: How to check, if QT has corrupted stack title
> 
> Hi Bill
> Nice approach :) but I think on Win it won't work, because the title is
> left
> aligned, so comparing the left and right rect would always be false.
> ... but writing this I am just figuring out, if I could store a snapshot
> of
> the correct title in my app in a cusprop and compare it with a snapshot
> made
> on the fly...
> Thanks for giving ideas
> Tiemo
> 
> > -----Ursprüngliche Nachricht-----
> > Von: use-revolution-bounces at lists.runrev.com [mailto:use-revolution-
> > bounces at lists.runrev.com] Im Auftrag von Bill Marriott
> > Gesendet: Donnerstag, 12. März 2009 12:42
> > An: use-revolution at lists.runrev.com
> > Betreff: Re: How to check, if QT has corrupted stack title
> >
> > Tiemo,
> >
> > > I am not looking for a workaround, to get the tile back, but I am
> still
> > > looking for a solution, if it is possible to analyze, IF the title is
> > > broken
> > > or not. Comparing the title with a string, doesn't works, because the
> > > title
> > > property is still ok, it is just an issue of the title display. If I
> > could
> > > find out, IF the title is broken, I could set it to empty only on
> those
> > > machines, where it is broken and for the majority of the users I could
> > > show
> > > a title.
> >
> > This is horrible, but:
> >
> > function mungedTitleBar
> >    put the rect of this stack into myRect -- left,top,right,bottom
> >
> >    put myRect into leftRect
> >    add 40 to item 1 of leftRect
> >    subtract 20 from item 2 of leftRect
> >    put item 1 of leftRect + 20 into item 3 of leftRect
> >    put item 2 of leftRect + 10 into item 4 of leftRect
> >
> >    put leftRect into rightRect
> >    put item 3 of myRect - 90 into item 1 of rightRect
> >    put item 3 of myRect - 70 into item 3 of rightRect
> >
> >    export snapshot from rect leftRect to foobarL as PNG
> >    export snapshot from rect rightRect to foobarR as PNG
> >
> >    return foobarL = foobarR
> > end mouseUp
> >
> > This function captures two swatches from the titlebar of the current
> > window.
> > Assuming you have a window title that is longer than one or two
> characters
> > but not so long as to fill the entire window width, if the left swatch
> > matches the right swatch, then it's probably not displaying properly.
> >
> >
> >
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list