Sidney
3rd July 2007, 20:20
Hi,

In Baan IV c4, is possible to create an object of the DsCfield type with multiple lines? With the DsNmultiLine option error occurs.

Best regards,

Sidney.

george7a
4th July 2007, 09:20
Hi,

I have tried that one without success. I think it works only in Baan 5 and higher.

- George

rberti
16th October 2007, 15:13
HI guys, could you give me an example code? I'm trying to create it in LN, but without success.

regards,

rberti

george7a
16th October 2007, 15:20
Can you please post your code?

rberti
17th October 2007, 14:09
shure, by the way, its working now... it was my very first time creating this object.:o
but I still have a problem.
I need to use the event EVTKEYPRESS, so when the user press the first key, i can do something, like enable or disable commands. But how could I monitor this event?:confused:


function extern cria.campo()
{
long ret.o
long retw.o



retw.o = current.mwindow()
ret.o = create.object( DsCfield, retw.o,
DsNwidth, 100,
DsNheight, 25,
DsNx, 70,
DsNy, 100,
DsNstring, 9,
DsNcolumns, 9,
DsNsetState, DSMAP,
DsNeventMask , EVTKEYPRESS,
DsNmaxLength, 9)

update.object(retw.o)
}


Thanks for reply!

george7a
17th October 2007, 15:02
Hi,

There is a good example in the following link:
http://www.baanboard.com/programmers_manual_baanerp_help_functions_user_interface_objects_example

I hope it helps,

- George

NPRao
17th October 2007, 20:37
rberti,

Some of the low level create.object() functions are not WebTop compatible. As you are on LN 6.1 Tools, you have to use - Programmable dialogs synopsis (http://www.baanboard.com/programmers_manual_baanerp_help_functions_programmable_dialogs_synopsis) which is Webtop compatible.

SSA ERP LN 6.1 Programmers Guide
Deprecated low-level UI drawing API's
--------------------------------------------------------------------------------
The following API's will "draw" objects on the screen and are therefore deprecated. For some API's a new alternative is given.

Deprecated API Alternative API
User Interface Object Programmable Dialogs
Structure Chart Manager -
Chart Manager Programmable Dialogs (chart functions)
Plan Chart Manager Gantt And Schedule Charts
Character Based Windows -
Colors -
Timers -
Events -