FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour bAction on Help Button at Dialog Title Bar!?
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
bAction on Help Button at Dialog Title Bar!?
Posted: Wed Oct 22, 2008 10:11 PM

Júlio,

Could you please explain what specific action you want to do when the "?" is clicked ? Whats your idea ?

Is just to know what parameters you need to be supplied to the codeblock.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
bAction on Help Button at Dialog Title Bar!?
Posted: Thu Oct 23, 2008 11:43 AM
Antonio,

I need to execute a generic function that will go evaluate all components of my dialog.

It would be interesting if it could be passed to a dialog when in defining process... Like a property of dialog... and using the lHelpIcon property, when it is true... But, is also necessary that the normal process of button HelpIcon is pressed, with bHelpIcon defined, stay disabled.

DEFINE DIALOG oDlg ...

       oDlg:lHelpIcon := .T.
       oDlg:bHelpIcon := {|oDlg| myFunction( oDlg ) }

       ...

ACTIVATE DIALOG oDlg CENTER

So, I will access all components of dialog with this way.. or some else thing

Antonio, what do you think that?
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
bAction on Help Button at Dialog Title Bar!?
Posted: Fri Oct 24, 2008 11:29 AM

Antonio,

Sorry for my impatience... please, take a look!

Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
bAction on Help Button at Dialog Title Bar!?
Posted: Fri Oct 24, 2008 05:53 PM
Julio,

Try this:

Add a new DATA bHelpIcon to Class TDialog and then change this method:
METHOD SysCommand( nWParam, nLParam ) CLASS TDialog 

   if nWParam == SC_CLOSE .and. ::lModal 
      if GetCapture() != 0 
         ReleaseCapture() 
      endif    
      return .f. 
   endif 

   if nWParam == SC_HELP 
      if ValType( ::bHelpIcon ) == "B"
         Eval( ::bHelpIcon, Self ) 
      endif 
      ::lHelpIcon = .t. 
      return .f. 
   endif 

return Super:SysCommand( nWParam, nLParam )
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
bAction on Help Button at Dialog Title Bar!?
Posted: Fri Oct 24, 2008 06:10 PM

Antonio,

Was exactly this what I done! Thank for your confirmation!

Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9

Continue the discussion