_Ralph_
6th March 2009, 20:11
I'm working with programmable dialogs to solve on an elegant way a problem in one of our reports.

By clicking on a form command a user can chose 10 transaction types(Tipo Trans) and one dimension(histórico) for each one of the transactions.

The problem is that have no idea about how to can I move the dimension field to the right of the transaction field.

The only way I know is using DLG_RANGE_FIELD attribute, but this(as the name suggests) is only applicable for range fields and copy all the other attributes from the "parent" field.

Does anybody knows if there is a way to do this?

here is my code, and the picture of the session




function extern define.ttyp.group.o()
{

long i.o

dlg.o = dialog.new("Agrupar Tipos de Transação",
DLG_STATUSBAR, false,
DLG_OK_TEXT, "OK")



for i.o = 0 to MAX.TTYP.GROUP.O
dialog.add.ttyp.o(str$(i.o))
endfor

if not dialog.show(dlg.o) then
blank.ttyp.group.o()
endif
}

function dialog.add.ttyp.o(string i.ttyp.o)
{
dialog.add.field(
dlg.o,
"ttyp"&i.ttyp.o&".o", "Tipo Trans "&i.ttyp.o,
DLG_DOMAIN, "tfgld.ttyp",
DLG_ZOOM_PROG, "tfgld0511m000",
DLG_ZOOM_RETURN, "tfgld011.ttyp")
dialog.add.field(
dlg.o,
"hocd"&i.ttyp.o&".o", "Histórico "&i.ttyp.o,
DLG_DOMAIN, "tfgld.dimx",
DLG_ZOOM_PROG, "tfgld0511m000",
DLG_ZOOM_RETURN, "tfgld011.ttyp")

}