May be the following code is simple and does what you want and present the msgitems in the order you like to
- Code: Select all Expand view
#include 'fivewin.ch'
function Main()
LOCAL oWnd
DEFINE WINDOW oWnd
SET MESSAGE OF oWnd TO "" NOINSET 2007 // TIME
DEFINE MSGITEM OF oWnd:oMsgBar PROMPT 'CompanyName' SIZE 100
DEFINE MSGITEM OF oWnd:oMsgBar PROMPT wNetGetUser() SIZE 100
DEFINE MSGITEM OF oWnd:oMsgBar PROMPT "FinYear : 2008-09" SIZE 100
oWnd:oMsgBar:ClockOn()
oWnd:oMsgBar:oClock:bMsg := { || AMPM( Time() ) }
oWnd:oMsgBar:oClock:nWidth += 20
ACTIVATE WINDOW oWnd
return nil
The msgitems are shown in the order in which we write them. For that reason, I invoked clock at the end.
Mr Antonio gave us the FiveWin libraries with great flexibilty of usage. We can achieve manythings using just the codeblocks. We do not need to modify the FiveWin source code to a large extent. In any case, where we can get what we want without modifying the library, it is highly desirable not to modify the library. If we modify. we can not keep pace with updates of FWH libraries, which are updated every month.
Also before we attempt to modify FW libraries let us make doubly sure that there is no way of achieving what we want without modifying the library iteself