Index
2008-12-07 09:43 – Graham Brown : Graphical checkbox question (VFP8)
2008-12-07 11:40 – Kenneth Kixmoeller : Re: Graphical checkbox question (VFP8)
2014-09-01 14:06 – Jeff Johnson : Checkbox Question
2014-09-01 14:23 – Kurt @ VR-FX : Re: Checkbox Question
2014-09-01 14:27 – Jeff Johnson : Re: Checkbox Question
2014-09-01 14:31 – Mike Copeland : Re: Checkbox Question
2014-09-01 14:34 – Rafael Copquin : Re: Checkbox Question
2014-09-01 14:43 – Jeff Johnson : Re: Checkbox Question
2014-09-01 14:49 – Ted Roche : Re: Checkbox Question
2014-09-01 14:52 – Jeff Johnson : Re: Checkbox Question
Back to top
Graphical checkbox question (VFP8)

Author: Graham Brown

Posted: 2008-12-07 09:43:59   Link

Hi all

=20

I'm trying to use a graphical checkbox, this has a picture and a

downpicture with the caption set to 12 (middle)

=20

The backcolour of the contrainer is set to a pale blue and the image is

a dark blue. The checkbox is working as I'd expect it to but has an

awful white and black border round it=20

=20

Does anyone know how to get rid of the border please?

=20

Regards

Graham=20

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

©2008 Graham Brown
Back to top
Re: Graphical checkbox question (VFP8)

Author: Kenneth Kixmoeller

Posted: 2008-12-07 11:40:27   Link

I haven't tried this in 8, but in the old days, if the graphic is a

BMP, we needed a .msk (mask) file to accompany it.

To create a .msk file:

- open the button graphic in your favourite graphics program

- invert the colours

- save it with the same name, but use a .msk extension

Be sure to "clear resources" to test.

Ken

©2008 Kenneth Kixmoeller
Back to top
Checkbox Question

Author: Jeff Johnson

Posted: 2014-09-01 14:06:42   Link

I have checkboxes in a grid that I want to behave in a certain way. I

want the checkbox to display the control source - checked or unchecked -

but I want it to be "read only." I also want a double click to pop up a

form. Everything works fine except I can't get the click or double

click to not change the value. The only thing I want to happen is the

double click event. I have tried nodefault in the click and read only,

but it still changes the value when clicked.

How do I make it so the double click is the only thing that happens on

the checkbox?

TIA

--

Jeff

Jeff Johnson

jeff@dcsoftware.com

(623) 582-0323

Please reply to jeff@san-dc.com!

Visit our forum at www.san-dc.com/forum

Register and join in the discussion

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/5404C3C2.8020403@dcsoftware.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2014 Jeff Johnson
Back to top
Re: Checkbox Question

Author: Kurt @ VR-FX

Posted: 2014-09-01 14:23:54   Link

Jeff - this may be a WAG - but, It doesn't make sense to make a Control

Read-Only - and, yet, still expect to interact with it!

Here's another WAG on how to resolve the issue - make a FAKE looking

Checkbox - just an Image you create w/PC Paint - then Display THAT image

- and NOT the Real Checkbox - then it can't get Check, U need NOT worry

about Read-Only, and then implement code in Click or Double-click to

make your pop-up appear.

Again - just a guess/suggestion how to do it - even though it may seem

strange...

-K-

On 9/1/2014 3:06 PM, Jeff Johnson wrote:

> I have checkboxes in a grid that I want to behave in a certain way. I

> want the checkbox to display the control source - checked or unchecked

> - but I want it to be "read only." I also want a double click to pop

> up a form. Everything works fine except I can't get the click or

> double click to not change the value. The only thing I want to happen

> is the double click event. I have tried nodefault in the click and

> read only, but it still changes the value when clicked.

>

> How do I make it so the double click is the only thing that happens on

> the checkbox?

>

> TIA

>

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/5404C7CA.5020305@optonline.net

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2014 Kurt @ VR-FX
Back to top
Re: Checkbox Question

Author: Jeff Johnson

Posted: 2014-09-01 14:27:19   Link

Read only and nodefault in the click and double click have no affect on

the control. It still checks and unchecks normally.

On 9/1/2014 12:23 PM, Kurt @ VR-FX wrote:

> Jeff - this may be a WAG - but, It doesn't make sense to make a

> Control Read-Only - and, yet, still expect to interact with it!

>

> Here's another WAG on how to resolve the issue - make a FAKE looking

> Checkbox - just an Image you create w/PC Paint - then Display THAT

> image - and NOT the Real Checkbox - then it can't get Check, U need

> NOT worry about Read-Only, and then implement code in Click or

> Double-click to make your pop-up appear.

>

> Again - just a guess/suggestion how to do it - even though it may seem

> strange...

>

> -K-

>

>

> On 9/1/2014 3:06 PM, Jeff Johnson wrote:

>> I have checkboxes in a grid that I want to behave in a certain way. I

>> want the checkbox to display the control source - checked or

>> unchecked - but I want it to be "read only." I also want a double

>> click to pop up a form. Everything works fine except I can't get the

>> click or double click to not change the value. The only thing I want

>> to happen is the double click event. I have tried nodefault in the

>> click and read only, but it still changes the value when clicked.

>>

>> How do I make it so the double click is the only thing that happens

>> on the checkbox?

>>

>> TIA

>>

>

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/5404C897.20100@san-dc.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2014 Jeff Johnson
Back to top
Re: Checkbox Question

Author: Mike Copeland

Posted: 2014-09-01 14:31:09   Link

return .f. in the valid for the checkbox?

Jeff Johnson wrote:

> I have checkboxes in a grid that I want to behave in a certain way. I

> want the checkbox to display the control source - checked or unchecked

> - but I want it to be "read only." I also want a double click to pop

> up a form. Everything works fine except I can't get the click or

> double click to not change the value. The only thing I want to happen

> is the double click event. I have tried nodefault in the click and

> read only, but it still changes the value when clicked.

>

> How do I make it so the double click is the only thing that happens on

> the checkbox?

>

> TIA

>

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/5404C97D.7000509@ggisoft.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2014 Mike Copeland
Back to top
Re: Checkbox Question

Author: Rafael Copquin

Posted: 2014-09-01 14:34:10   Link

Try this in the click event:

if this.value = .t.

this.value = .t.

else

this.value = .f.

endif

I did not try it but the click event will change a .t. to a .f. Then you

should leave a .t. as a .t. and a .f. as a .f.

Rafael Copquin

El 01/09/2014 16:06, Jeff Johnson escribió:

> I have checkboxes in a grid that I want to behave in a certain way. I

> want the checkbox to display the control source - checked or unchecked

> - but I want it to be "read only." I also want a double click to pop

> up a form. Everything works fine except I can't get the click or

> double click to not change the value. The only thing I want to happen

> is the double click event. I have tried nodefault in the click and

> read only, but it still changes the value when clicked.

>

> How do I make it so the double click is the only thing that happens on

> the checkbox?

>

> TIA

>

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/5404CA32.4050501@fibertel.com.ar

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2014 Rafael Copquin
Back to top
Re: Checkbox Question

Author: Jeff Johnson

Posted: 2014-09-01 14:43:23   Link

Neither this nor the return false from the valid work.

On 9/1/2014 12:34 PM, Rafael Copquin wrote:

> Try this in the click event:

>

> if this.value = .t.

> this.value = .t.

> else

> this.value = .f.

> endif

>

> I did not try it but the click event will change a .t. to a .f. Then

> you should leave a .t. as a .t. and a .f. as a .f.

> Rafael Copquin

>

>

> El 01/09/2014 16:06, Jeff Johnson escribió:

>> I have checkboxes in a grid that I want to behave in a certain way. I

>> want the checkbox to display the control source - checked or

>> unchecked - but I want it to be "read only." I also want a double

>> click to pop up a form. Everything works fine except I can't get the

>> click or double click to not change the value. The only thing I want

>> to happen is the double click event. I have tried nodefault in the

>> click and read only, but it still changes the value when clicked.

>>

>> How do I make it so the double click is the only thing that happens

>> on the checkbox?

>>

>> TIA

>>

>

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/5404CC5B.3000008@san-dc.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2014 Jeff Johnson
Back to top
Re: Checkbox Question

Author: Ted Roche

Posted: 2014-09-01 14:49:09   Link

On Mon, Sep 1, 2014 at 3:06 PM, Jeff Johnson <jeff@dcsoftware.com> wrote:

> I have checkboxes in a grid that I want to behave in a certain way.

I have a radical suggestion. If you want to have a checkbox in a grid, but

you don't want it to act like a checkbox, perhaps using the checkbox

control is not what you want to do.

Perhaps you should use a less interactive control, like a textbox or a

picture button, and then add it it the data-binding and behaviors you want.

I'm not certain it would work in this case, but as a general rule, I've

found it easier to add my own custom behaviors in Fox than to try to block

a control from doing what it was designed to do.

--

Ted Roche

Ted Roche & Associates, LLC

http://www.tedroche.com

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CACW6n4vHDLFu60L54XfvmUSbLpctSw73ygL4eZOHbkcmu26AyA@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2014 Ted Roche
Back to top
Re: Checkbox Question

Author: Jeff Johnson

Posted: 2014-09-01 14:52:44   Link

On 9/1/2014 12:49 PM, Ted Roche wrote:

> On Mon, Sep 1, 2014 at 3:06 PM, Jeff Johnson <jeff@dcsoftware.com> wrote:

>

>> I have checkboxes in a grid that I want to behave in a certain way.

>

> I have a radical suggestion. If you want to have a checkbox in a grid, but

> you don't want it to act like a checkbox, perhaps using the checkbox

> control is not what you want to do.

>

> Perhaps you should use a less interactive control, like a textbox or a

> picture button, and then add it it the data-binding and behaviors you want.

>

> I'm not certain it would work in this case, but as a general rule, I've

> found it easier to add my own custom behaviors in Fox than to try to block

> a control from doing what it was designed to do.

>

>

What I want is the visual aspect of a check box. I want a box checked

or unchecked based on the control source. I don't want it to do

anything other than run a popup on the double click - which actually

changes the value.

I can do this sort of thing with any other controls but the checkbox

does not appear to respond to readonly or nodefault.

Thanks,

--

Jeff

Jeff Johnson

jeff@san-dc.com

SanDC, Inc.

(623) 582-0323

SMS (602) 717-5476

Fax 623-869-0675

Visit our forum at www.san-dc.com/forum

Register and join in the discussion

www.san-dc.com

www.cremationtracker.com

www.agentrelationshipmanager.com

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/5404CE8C.2010801@san-dc.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2014 Jeff Johnson