yock1960 Senior Member
 Joined: 18/08/2020 Location: United StatesPosts: 167 |
| Posted: 10:41am 07 Apr 2021 |
|
|
|
In addition to TassyJim's mod to GUIbitmap sub, if you add a variable for color in GuiObjDraw and add the bitmap argument for both cases, adding the grey color for the unchecked state, the checkbox case like so:
Case 3'checkbox If o(1,n,2) And 8 Then'visible Colour 0 Line x,y,x,y+11'| Line x,y,x+11,y'- Colour &hffffff Line x+11,y,x+11,y+11'| Line x,y+11,x,y+11'_ If o(1,n,2) And 4 Then'Enabled c = 0 Else'ghosted c = &h999999 EndIf If o(1,n,2) And 32 Then'checked color c GUI_bitmap x+2,y+2,&h18386C6CC6020301 Else COLOR &hdddddd GUI_bitmap x+2,y+2,&h18386C6CC6020301 EndIf Text x+15,y+(h/2)-(FONTHEIGHT()/2),Ot(n),,,,c,cGy Else'disappear GUIObjCleanup n,1 EndIf
gives you the desired result I think....for the CMM2 at least!
Steve Edited 2021-04-07 20:53 by yock1960 |