EpiShape Blank Title 66580

Joe, yes, not very intuitive. See if this helps:



************************************************************************
*******





Looking at the code for the EpiShape you don't set the colors directly,
rather you set the "Status" Property in code.











The four StatusTypes are:







StatusTypes.Warning



StatusTypes.Global



StatusTypes.OK



StatusTypes.Stop







shpEpiCustom1.Status = StatusTypes.Warning











The following code snippet from the EpiShape control shows which colors
are associated with a particular status:







switch(status)



{



case StatusTypes.Warning:



color1 = Color.Yellow;



color2 = Color.LightYellow;



enabledTextColor = Color.Black;



break;



case StatusTypes.Global:



color1 = Color.MediumBlue;



color2 = Color.LightBlue;



enabledTextColor = Color.LightBlue;



break;



case StatusTypes.OK:



color1 = Color.Green;



color2 = Color.LightGreen;



enabledTextColor = Color.LightGreen;



break;



case StatusTypes.Stop:



color1 = Color.Red;



color2 = Color.MistyRose;



enabledTextColor = Color.AntiqueWhite;



break;









________________________________

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Joe Rojas
Sent: Friday, October 15, 2010 12:26 PM
To: vantage@yahoogroups.com
Subject: [Vantage] EpiShape





Hi All,

This is the first time I'm trying to use an EpiShape and it's not as
intuitive as I thought it would be. :)

I'm trying to create a red box that is displayed when a UD checkbox is
set to true.

To start, I added the EpiShape, set it to red and bound it to
CheckBox03.

I also added a checkbox so that I could toggle the vale.

When the form loads, the red box is displayed by default, which is
expected where the visible value is true.

The first issue is that the box is red on the outer edges but
transitions to green. I don't see anything that controls this. How do I
set it to just a solid red?

I imagine that I need to hook into EpiViewNotify if I want to change the
color of the box or hide it when the value if false. Is that right?

Thanks for any advice you can give.







Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
jrojas@... <mailto:jrojas%40matsinc.com> | www.matsinc.com Ask
us about our clean, green and beautiful matting and flooring

This message is intended only for the individual named. If you are not
the named addressee you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately by e-mail if you have
received this e-mail by mistake. Please note that any views or opinions
presented in this email are solely those of the author and do not
necessarily represent those of the company.

[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]
Has anyone used the EpiShape object? I am trying to add text on the shape
and change the text and color of the shape depending on a field in my
datasource. It seems like an awkward object that I can't figure out what
its controls are. Anyone used this before?



Daniel Laidig

Laidig Systems, Inc.

(574) 256-0204 ext. 229

<mailto:daniellaidig@...> daniellaidig@...





[Non-text portions of this message have been removed]
Hi All,



This is the first time I'm trying to use an EpiShape and it's not as
intuitive as I thought it would be. :)

I'm trying to create a red box that is displayed when a UD checkbox is
set to true.



To start, I added the EpiShape, set it to red and bound it to
CheckBox03.

I also added a checkbox so that I could toggle the vale.

When the form loads, the red box is displayed by default, which is
expected where the visible value is true.



The first issue is that the box is red on the outer edges but
transitions to green. I don't see anything that controls this. How do I
set it to just a solid red?

I imagine that I need to hook into EpiViewNotify if I want to change the
color of the box or hide it when the value if false. Is that right?



Thanks for any advice you can give.










Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
jrojas@... | www.matsinc.com Ask us about our clean, green and beautiful matting and flooring


This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


[Non-text portions of this message have been removed]