Hi Again,
I am trying to change the background color of an ITEM , it has FORGROUND and BACKGROUND options in its PROPERTIES when looked at in ACCUTERM.
So I am assuming that they can be changed on the "fly" durring use of the form.
Here is what I have tried so far
CALL ATGUISETPROP(GUIAPP,GUIFRM,'COMBCUST',GPITEMS,0,0,CUST.LIST,GUIERRORS,GUISTATE)
* RGBCOLOR = 102 + 255*256 + 102*65536
* RGBCOLOR = "Green"
* RGBCOLOR = 102:@SVM:255:@SVM:102
RGBCOLOR = "102,255,102"
CALL ATGUISETITEMPROP(GUIAPP,GUIFRM,'COMBCUST',GPBACKCOLOR,0,0,RGBCOLOR,GUIERRORS,GUISTATE)
IF GUIERRORS<1> >=2 THEN GOTO GUI.ERROR
CALL ATGUISHOW(GUIAPP,GUIFRM,"COMBCUST","",GUIERRORS,GUISTATE)
CALL ATGUIACTIVATE(GUIAPP,GUIFRM,'COMBCUST',GUIERRORS,GUISTATE)
IF GUIERRORS<1> >=2 THEN GOTO GUI.ERROR
It always aborts , as you can see I have tried the RGB raw number, a generic name as used in the Properties drop down, the numbers with sub values and with comers.
All of these ways are hinted at in the documentation, in various areas but cant find any examples
I know I will be kicking my self, when I see the answer but needs must :¬)
Can anyone help please
Blessings
Chris
------------------------------
Chris BAXTER
MD
CB Soft
IPSWICH GB
------------------------------