Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: mastermatic on July 07, 2007, 01:07:14 am
-
After a colon terminated line, the indentation is not correct.
Do I have any incorrect setting ?
Thanks
José Barbosa
See the example:
---------------------
before indentation
-------------------
case PM_HIDE:
PegDecoratedWindow::Message(Mesg);
KillTimer(1);
break;
case PM_TIMER:
break;
case SIGNAL(IDB_BLIST, PSF_CLICKED):
LerIndexList();
break;
case SIGNAL(IDB_BACTIV, PSF_CLICKED):
Select= pPrList-> GetSelectedIndex();
ActivarProg(ListTitPrg[Select]);
mostraUprogValores();
break;
case SIGNAL(IDB_BTIT, PSF_CLICKED):
FazTitProg=1;
TitPrgStr[0]='\0';
Remove(mKeyb);
mKeyb->SetTitle(TxtUt[13][LNG]);
Add(mKeyb);
break;
case SIGNAL(IDB_BGRAV, PSF_CLICKED):
if (TitPrgStr)
{
strcpy(ProgTit.Nome, TitPrgStr);
mostraUprogValores();
ProgTit.NZonas=MAXZON;
.....
-------------------------
after indentation
-----------------------
case PM_HIDE:
PegDecoratedWindow::Message(Mesg);
KillTimer(1);
break;
case PM_TIMER:
break;
case SIGNAL(IDB_BLIST, PSF_CLICKED):
LerIndexList();
break;
case SIGNAL(IDB_BACTIV, PSF_CLICKED):
Select= pPrList-> GetSelectedIndex();
ActivarProg(ListTitPrg[Select]);
mostraUprogValores();
break;
case SIGNAL(IDB_BTIT, PSF_CLICKED):
FazTitProg=1;
TitPrgStr[0]='\0';
Remove(mKeyb);
mKeyb->SetTitle(TxtUt[13][LNG]);
Add(mKeyb);
break;
case SIGNAL(IDB_BGRAV, PSF_CLICKED):
if (TitPrgStr)
{
strcpy(ProgTit.Nome, TitPrgStr);
mostraUprogValores();
ProgTit.NZonas=MAXZON;
....