STATUSBAR problem in Resource Dialog?

STATUSBAR problem in Resource Dialog?

Postby Taiwan » Wed Feb 21, 2007 5:06 pm

Hello

I define Resource Dialog and bStart this function

Code: Select all  Expand view
METHOD Build_PROG_ToolBar() CLASS TCustMsf

      ::oImgLst1 = TImageList():New( 24, 24 )
      ::oImgLst1:AddMasked( TBitmap():Define( "B_DB_FIRST_XP"    ,, ::oPGA_Dlg ), nRGB( 255, 0, 255 ) )
      ::oImgLst1:AddMasked( TBitmap():Define( "B_DB_PREV_XP"     ,, ::oPGA_Dlg ), nRGB( 255, 0, 255 ) )
      ::oImgLst1:AddMasked( TBitmap():Define( "B_DB_NEXT_XP"     ,, ::oPGA_Dlg ), nRGB( 255, 0, 255 ) )
      ::oImgLst1:AddMasked( TBitmap():Define( "B_DB_LAST_XP"     ,, ::oPGA_Dlg ), nRGB( 255, 0, 255 ) )
     
      ::oToolBar1 = TToolBar():New( ::oPROG_Dlg, 52, 52, ::oImgLst1 )
      ::oToolBar1:AddButton( { || ::JumpRecData( 1, ::oPROG_Brw1 ) }, "記錄移到第一筆"      , "第一筆" )
      ::oToolBar1:AddButton( { || ::JumpRecData( 2, ::oPROG_Brw1 ) }, "記錄移到上一筆"      , "上一筆" )
      ::oToolBar1:AddButton( { || ::JumpRecData( 3, ::oPROG_Brw1 ) }, "記錄移到下一筆"      , "下一筆" )
      ::oToolBar1:AddButton( { || ::JumpRecData( 4, ::oPROG_Brw1 ) }, "記錄移到最後一筆"    , "最後一筆" )
     
   DEFINE STATUSBAR OF ::oPROG_Dlg PROMPT "檢視此客戶之一般報價單"

RETURN NIL

I found ToolTip's message not show STATUSBAR
Any idea for it?

FWH 2.6 SEP+BCC55+xHarbour 0.99.71

Regards,

Richard
User avatar
Taiwan
 
Posts: 218
Joined: Fri Oct 07, 2005 1:55 am
Location: Taipei, Taiwan

Postby Antonio Linares » Sat Feb 24, 2007 9:55 am

Richard,

Please place a MsgInfo() here and check if it gets displayed:
Code: Select all  Expand view
METHOD Notify( nIdCtrl, nPtrNMHDR ) CLASS TWindow

   local nCode     := GetNMHDRCode( nPtrNMHDR )
   local nHWndFrom := GetNMHDRHWndFrom( nPtrNMHDR )
   local oCtrl     := oWndFromHwnd( nHWndFrom )

   if oCtrl != nil
      do case
         case nCode == 103 .or. nCode == TVN_SELCHANGEDA  // TreeView item selected
              oCtrl:SelChanged()

         otherwise
              MsgInfo( "here!" )
              if oCtrl:hWnd != ::hWnd
                 return oCtrl:Notify( nIdCtrl, nPtrNMHDR )
              endif   
      endcase
   endif

return nil
regards, saludos

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

Postby Taiwan » Sat Feb 24, 2007 11:31 am

Hello Antonio,

This is my FWH 2.6 SEP Code below:
Code: Select all  Expand view
METHOD Notify( nIdCtrl, nPtrNMHDR ) CLASS TWindow

   local nCode     := GetNMHDRCode( nPtrNMHDR )
   local nHWndFrom := GetNMHDRHWndFrom( nPtrNMHDR )
   local oCtrl     := oWndFromHwnd( nHWndFrom )

   if oCtrl != nil
      do case
         case nCode == 103 .or. nCode == TVN_SELCHANGEDA  // TreeView item selected
              oCtrl:SelChanged()

         case nCode == -759  // Date-time picker changed
              oCtrl:Changed()

         otherwise
              MsgInfo( "here!" )
              if oCtrl:hWnd != ::hWnd
                 return oCtrl:Notify( nIdCtrl, nPtrNMHDR )
              endif
      endcase
   endif

return nil


I change code like you and touch ToolBar's button can appear MsgInfo()
My preview report window use TSButton Bar+STATUSBAR can show message.
My Main Window TToolBar+STATUSBAR can not show any message.
:roll:
Regards,

Richard
User avatar
Taiwan
 
Posts: 218
Joined: Fri Oct 07, 2005 1:55 am
Location: Taipei, Taiwan


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 67 guests