Hi, does anyone know how to return the RBG values for the background of an SLE, please? I've got the TextColor worked out, but cannot for the life of me find out how to do the same thing for the background. I want to retrieve the background colour ofthe SLE in exactly the same way as I am for the TextColor so I can save it to a DBF, for restoration later "on the fly"
This is how I'm saving the TextColor:
self:oDCP1BTNNAME:TextColor:Blue
self:oDCP1BTNNAME:TextColor:Red
self:oDCP1BTNNAME:TextColor:Green
Attempting to do the same with the Background like:
self:oDCP1BTNNAME:Background:Red
Returns : {(0x0010)0x05D7F7AC} CLASS COLOR
And a NO Exported Variable message Function iVARGET Arguement: RED
Any ideas please?
Hi,
Just looked in the help file.
Background of SLE inherits the Background fom the Control class
It is not strong typed but is a brush. Looks like the brush is a class
that designed to be set to a value more that the properties to be read
Look in the help for the brush class and maybe find more info in
https://groups.google.com/g/comp.lang.clipper.visual-objects
John
Op 17-11-2021 om 02:18 schreef jrol...@gmail.com:the SLE in exactly the same way as I am for the TextColor so I can save it to a DBF, for restoration later "on the fly"
Hi, does anyone know how to return the RBG values for the background of an SLE, please? I've got the TextColor worked out, but cannot for the life of me find out how to do the same thing for the background. I want to retrieve the background colour of
This is how I'm saving the TextColor:
self:oDCP1BTNNAME:TextColor:Blue
self:oDCP1BTNNAME:TextColor:Red
self:oDCP1BTNNAME:TextColor:Green
Attempting to do the same with the Background like: self:oDCP1BTNNAME:Background:Red
Returns : {(0x0010)0x05D7F7AC} CLASS COLOR
And a NO Exported Variable message Function iVARGET Arguement: RED
Any ideas please?
Attempting to do the same with the Background like:
self:oDCP1BTNNAME:Background:Red
Returns : {(0x0010)0x05D7F7AC} CLASS COLOR
And a NO Exported Variable message Function iVARGET Arguement: RED
Hi,Excellent, I knew it would be easy and obvious, but I kept getting confused. Thank you very much, Karl-Heinz.
What´s missing is the access to the color object.Attempting to do the same with the Background like:
self:oDCP1BTNNAME:Background:Red
Returns : {(0x0010)0x05D7F7AC} CLASS COLOR
And a NO Exported Variable message Function iVARGET Arguement: RED
self:oDCP1BTNNAME:Background:Color:Red
regards
Karl-Heinz
Hi,Sorry Karl-Heinz, but that doesn't work. It again says no exported variable:Color
What´s missing is the access to the color object.Attempting to do the same with the Background like:
self:oDCP1BTNNAME:Background:Red
Returns : {(0x0010)0x05D7F7AC} CLASS COLOR
And a NO Exported Variable message Function iVARGET Arguement: RED
self:oDCP1BTNNAME:Background:Color:Red
regards
Karl-Heinz
On Thursday, 18 November 2021 at 21:09:03 UTC+11, Karl-Heinz wrote:
Hi,
Attempting to do the same with the Background like:
self:oDCP1BTNNAME:Background:Red
Returns : {(0x0010)0x05D7F7AC} CLASS COLOR
And a NO Exported Variable message Function iVARGET Arguement: RED What´s missing is the access to the color object.
self:oDCP1BTNNAME:Background:Color:Red
regardsSorry Karl-Heinz, but that doesn't work. It again says no exported variable:Color
Karl-Heinz
Attempting to do the same with the Background like:
self:oDCP1BTNNAME:Background:Red
Returns : {(0x0010)0x05D7F7AC} CLASS COLOR
And a NO Exported Variable message Function iVARGET Arguement: RED What´s missing is the access to the color object.
self:oDCP1BTNNAME:Background:Color:Red
regardsSorry Karl-Heinz, but that doesn't work. It again says no exported variable:Color
Karl-Heinz
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 62:57:47 |
Calls: | 6,654 |
Files: | 12,200 |
Messages: | 5,331,692 |