bAction on Help Button at Dialog Title Bar!?

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 41476
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby JC » 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.

Code: Select all  Expand view
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
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Postby JC » 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
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Postby Antonio Linares » Fri Oct 24, 2008 5:53 pm

Julio,

Try this:

Add a new DATA bHelpIcon to Class TDialog and then change this method:
Code: Select all  Expand view
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
User avatar
Antonio Linares
Site Admin
 
Posts: 41476
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby JC » Fri Oct 24, 2008 6: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
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 34 guests