DTPicker in folder

DTPicker in folder

Postby Pier Luigi » Sat Feb 16, 2008 5:12 pm

DTPicker working fine, but in the folder no.

This is the code:

Code: Select all  Expand view
#include "FWCE.ch"

FUNCTION Main()

   LOCAL oWnd, oFld, oDate
   LOCAL dDate := DATE()

   DEFINE WINDOW oWnd TITLE "DTPICKER" MENU MenuEmpty()

      @ 0,-0.5 FOLDER oFld PROMPTS "One", "Two" ;
                           DIALOGS "ONE", "TWO" ;
                           SIZE 247, 270 BOTTOM

      REDEFINE DTPICKER oDate VAR dDate ID 101 OF oFld:aDialogs[1]

      oFld:aDialogs[1]:Move(0,0)
      oFld:aDialogs[2]:Move(0,0)

      oFld:InitDialogs()

   ACTIVATE WINDOW oWnd

RETURN ( nil )

FUNCTION MenuEmpty()

   LOCAL oMenu

   DEFINE MENU oMenu RESOURCE 80

RETURN ( oMenu )


This is the RC file:

Code: Select all  Expand view
#ifdef _CE
   #include "c:\vce\include\arm\windows.h"
   #include "c:\vce\include\arm\commctrl.h"
#endif

#define I_IMAGENONE      (-2)
#define IDS_HELP      104

#ifdef _CE

80 RCDATA
BEGIN
   80, 0
END

#endif

ONE DIALOG 135, 63, 140, 142
STYLE 0x4L | WS_CHILD
{
CONTROL "", 101, "SysDateTimePick32", 0 | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 78, 21, 46, 11
}

TWO DIALOG 135, 63, 140, 142
STYLE 0x4L | WS_CHILD
{
}


FWPPC shows this error:

Can't create dialogBox

Non defined Id
No: 101
stack calls:
TCONTROL:INITIATE(0)
TDATEPICK:INITIATE(0)
__OBJSENDMSG(0)
OSEND(0)
ASEND(0)
TFOLDER:INITDIALOGS(0)
MAIN(20)

Can you help me?

Regards
Pier Luigi
User avatar
Pier Luigi
 
Posts: 58
Joined: Fri Oct 07, 2005 6:30 am
Location: Rome - Italy

Postby Antonio Linares » Mon Feb 18, 2008 1:08 pm

Pier,

Just call this function before creating the window:
Code: Select all  Expand view
   InitCommon()

   DEFINE WINDOW oWnd TITLE "DTPICKER" MENU MenuEmpty()
   ...
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Pier Luigi » Mon Feb 18, 2008 6:35 pm

Now working fine.

Many thanks.
Pier Luigi
User avatar
Pier Luigi
 
Posts: 58
Joined: Fri Oct 07, 2005 6:30 am
Location: Rome - Italy


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 11 guests