[Xerte] lazy question on drawRect

Paul Swanson Paul.Swanson at harlandfs.com
Thu Sep 30 23:51:22 BST 2010


Cool. I knew of arrow and face (I've used those to style buttons,
including the combobox button, which uses arrow for the downwards
pointing triangle). I've been looking for a list of the other
properties. Where did you find the other properties?

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Thursday, September 30, 2010 3:47 PM
To: Xerte list
Subject: RE: [Xerte] lazy question on drawRect

 

ooh, ooh, Mr. Cahtah, Mr.Cahtah!

Way better than drawRect.

Found a few others. 
Adding darkshadow has a nice effect.

//engine[cboxArray[i]].setStyleProperty("arrow", 0xFF0000);
engine[cboxArray[i]].setStyleProperty("highlight", 0xFFFFFF);
engine[cboxArray[i]].setStyleProperty("highlight3D", 0xFF0000);
//engine[cboxArray[i]].setStyleProperty("shadow", 0xFF99CC);
engine[cboxArray[i]].setStyleProperty("darkshadow", 0xFF0000);
//engine[cboxArray[i]].setStyleProperty("scrollTrack", 0xCC6666);
//engine[cboxArray[i]].setStyleProperty("face", 0xFFCCCC);


Thanks Paul. Nice nugget.



________________________________

Subject: RE: [Xerte] lazy question on drawRect
Date: Thu, 30 Sep 2010 15:22:19 -0700
From: Paul.Swanson at harlandfs.com
To: xerte at lists.nottingham.ac.uk

ckbox.setStyleProperty('highlight', 0x00FF00);

ckbox.setStyleProperty('highlight3D', 0x00FF00);

 

I'm not sure of all the style property names, but the two above will
make at least part of the border of a checkbox green. I'm sure there are
some other style property names that will finish it off, if you can find
a list of property names somewhere.

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Thursday, September 30, 2010 2:56 PM
To: Xerte list
Subject: RE: [Xerte] lazy question on drawRect

 

Ok, I tried a dummy file and it looks like when I try to draw into an rs
(like a checkbox) the default colour is yellow and lineweight 1.

The rs has a drawRect function, so I guess that's why it will accept the
direction.

There is a setStyleProperty and updateStyleProperty in the rs.
Are those for addressing text styles only, or can I goose them to affect
the drawRect?




________________________________

From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Thu, 30 Sep 2010 16:29:51 +0100
Subject: RE: [Xerte] lazy question on drawRect

Clear()

 

Then lineStyle()

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 30 September 2010 16:27
To: Xerte list
Subject: [Xerte] lazy question on drawRect

 


How do I change the colour of the outline of a code drawn artifact:


//engine[cboxArray[i]].beginFill(0xFF0000,100); //doesn't work
//engine[cboxArray[i]].lineStyle(3,0xFF0000,100); //doesn't work
engine[cboxArray[i]].drawRect(-3,-3,16,16);

Cheers,
Dave


This message and any attachment are intended solely for the addressee
and may contain confidential information. If you have received this
message in error, please send it back to me, and immediately delete it.
Please do not use, copy or disclose the information contained in this
message or in any attachment. Any views or opinions expressed by the
author of this email do not necessarily reflect the views of the
University of Nottingham. 
This message has been checked for viruses but the contents of an
attachment may still contain software viruses which could damage your
computer system: you are advised to perform your own checks. Email
communications with the University of Nottingham may be monitored as
permitted by UK legislation. 

_______________________________________________ Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and
any attachment are intended solely for the addressee and may contain
confidential information. If you have received this message in error,
please send it back to me, and immediately delete it. Please do not use,
copy or disclose the information contained in this message or in any
attachment. Any views or opinions expressed by the author of this email
do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an
attachment may still contain software viruses which could damage your
computer system: you are advised to perform your own checks. Email
communications with the University of Nottingham may be monitored as
permitted by UK legislation. 


_______________________________________________ Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and
any attachment are intended solely for the addressee and may contain
confidential information. If you have received this message in error,
please send it back to me, and immediately delete it. Please do not use,
copy or disclose the information contained in this message or in any
attachment. Any views or opinions expressed by the author of this email
do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an
attachment may still contain software viruses which could damage your
computer system: you are advised to perform your own checks. Email
communications with the University of Nottingham may be monitored as
permitted by UK legislation. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20100930/9fb6b09e/attachment.html


More information about the Xerte mailing list