Loading ...
Sorry, an error occurred while loading the content.

854RE: [cc2-dev-l] How do you open a text window?

Expand Messages
  • Peter Olsson
    Sep 6, 2010
    • 0 Attachment

      Try this code:

       

      void _stdcall TextWin(void);

      void _stdcall TWRcvInit(void);

      void _stdcall TWRcvEnd(void);

       

      static void XPCALL EnumerateText(void)

      {

        int iNum=5;

       

        FORMSTPKT(lpszLine, "User message: !01\r\n", 1)

          {(DWORD *)&iNum, FT_UDec4, FJ_Var, 0, 0},

        FORMSTEND

       

        TWRcvInit();

       

        FormSt(&lpszLine, RSC(FD_TxWin));

       

        TWRcvEnd();

        __asm clc;

      }

       

       

      void XPCALL TestCmd(void)

      {

        TXWIN TxWin={sizeof(TXWIN), (DWORD)NULL, (DWORD)"Sample report", TWF_Single,

          (DWORD)EnumerateText, (float).1, (float).3, (float).95, (float).9, 0,0,1,0,0,0,1};

       

        DWORD TxAdr=(DWORD)&TxWin;

       

        __asm mov esi, TxAdr;

        TextWin();

        CmdEnd();

      }

       

      From: cc2-dev-l@yahoogroups.com [mailto:cc2-dev-l@yahoogroups.com] On Behalf Of Larry
      Sent: Friday, September 03, 2010 4:32 PM
      To: cc2-dev-l@yahoogroups.com
      Subject: [cc2-dev-l] How do you open a text window?

       

       

      Many commands (LIST, NOTES, etc) open a new child window to display the text.

      Is there any commands built into the toolkit that I can use to reproduce this capability?

      I've scanned through the files and I cannot find the command(s) on my own, so any help would be appreciated.

      Lee

    • Show all 3 messages in this topic