I tried to make the CONTROL button's appear flat (w/o
raised 3-D look). But the button disapears. Does anyone
see what I'm doing wrong?
-----------------------------------------------------------
raised 3-D look). But the button disapears. Does anyone
see what I'm doing wrong?
-----------------------------------------------------------
Code:
#COMPILE EXE #REGISTER NONE $INCLUDE "WIN32API.INC" GLOBAL hDlg AS LONG GLOBAL DWidth AS LONG, DHeight AS LONG GLOBAL KWidth AS LONG, KHeight AS LONG CALLBACK FUNCTION CB_KEY() MSGBOX"aaa" END FUNCTION FUNCTION PBMAIN() AS LONG DWidth=600:DHeight=440 KWidth=10:KHeight=100 DIALOG NEW 0,"Academy",,,DWidth,DHeight,%WS_CAPTION OR %WS_SYSMENU,0 TO hDlg IF hDlg=0 THEN EXIT FUNCTION ' Error occurred t&=(DWidth-52*(KWidth+1))/2 FOR i&=0 TO 51 CONTROL ADD BUTTON,hDlg,800+i&,"",t&+(KWidth+1)*i&,260,KWidth,KHeight,0,%BS_OWNERDRAW OR %BS_DEFAULT OR %BS_LEFT CALL OR %BS_FLAT CB_KEY ' The statement below works but causes a 3D raised look ' CONTROL ADD BUTTON,hDlg,800+i&,"",t&+(KWidth+1)*i&,260,KWidth,KHeight,0,%BS_OWNERDRAW OR %BS_DEFAULT OR %BS_LEFT CALL CB_KEY NEXT i& DIALOG SHOW MODAL hDlg END FUNCTION
Comment