[5.31 x64 x86] IDE indentation
Posted: Sun Aug 30, 2015 1:57 pm
It seems that some string influences the code indentation.
Select all code, then press ctrl + i (format indentation).
The result is
But the next code is no problem.
Code: Select all
Procedure VirtualLVProc(hWnd, Message, wParam, lParam)
If Message = #WM_NOTIFY
Select *NMLV\hdr\code
Case #NM_CUSTOMDRAW
*LVCD = lParam
Select *LVCD\nmcd\dwDrawStage
Case #CDDS_ITEMPREPAINT | #CDDS_SUBITEM
If *Wnd\pFilesArr(Idx)\State = #App_FileState_Done
ElseIf *Wnd\pFilesArr(Idx)\State = #App_FileState_CannotOpen
ItemText$ + "열기 오류" + #CR$
ElseIf *Wnd\pFilesArr(Idx)\State = #App_FileState_NotTested
ItemText$ + "작업 안 함" + #CR$
Else
ItemText$ + "기타 오류" + #CR$
EndIf
ProcedureReturn #CDRF_SKIPDEFAULT
EndSelect
EndSelect
EndIf
ProcedureReturn Result
EndProcedureThe result is
Code: Select all
Procedure VirtualLVProc(hWnd, Message, wParam, lParam)
If Message = #WM_NOTIFY
Select *NMLV\hdr\code
Case #NM_CUSTOMDRAW
*LVCD = lParam
Select *LVCD\nmcd\dwDrawStage
Case #CDDS_ITEMPREPAINT | #CDDS_SUBITEM
If *Wnd\pFilesArr(Idx)\State = #App_FileState_Done
ElseIf *Wnd\pFilesArr(Idx)\State = #App_FileState_CannotOpen
ItemText$ + "열기 오류" + #CR$
ElseIf *Wnd\pFilesArr(Idx)\State = #App_FileState_NotTested
ItemText$ + "작업 안 함" + #CR$
Else
ItemText$ + "기타 오류" + #CR$
EndIf
ProcedureReturn #CDRF_SKIPDEFAULT
EndSelect
EndSelect
EndIf
ProcedureReturn Result
EndProcedureBut the next code is no problem.
Code: Select all
Procedure VirtualLVProc(hWnd, Message, wParam, lParam)
If Message = #WM_NOTIFY
Select *NMLV\hdr\code
Case #NM_CUSTOMDRAW
*LVCD = lParam
Select *LVCD\nmcd\dwDrawStage
Case #CDDS_ITEMPREPAINT | #CDDS_SUBITEM
If *Wnd\pFilesArr(Idx)\State = #App_FileState_Done
ElseIf *Wnd\pFilesArr(Idx)\State = #App_FileState_CannotOpen
ItemText$ + "abcd" + #CR$
ElseIf *Wnd\pFilesArr(Idx)\State = #App_FileState_NotTested
ItemText$ + "abcd" + #CR$
Else
ItemText$ + "abcd" + #CR$
EndIf
ProcedureReturn #CDRF_SKIPDEFAULT
EndSelect
EndSelect
EndIf
ProcedureReturn Result
EndProcedure