News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

something wrong with indentation...

Started by mastermatic, July 07, 2007, 01:07:14 AM

Previous topic - Next topic

mastermatic

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;
....