FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC MsgInfo
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
MsgInfo
Posted: Mon May 04, 2009 02:07 PM

Hello Antonio,

Could you provide a msginfo with a bigger โ€œokโ€ button like in FWH or the MSGYESNO.
The little โ€œOKโ€ is very hard to touch with the finger.

Thanks in advance
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: MsgInfo
Posted: Mon May 04, 2009 03:16 PM

Otto,

Those dialogs are Windows API built-in ones.

If you need a different one, then you have to code a dialogbox yourself. Its quite simple :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: MsgInfo
Posted: Mon May 04, 2009 03:34 PM

Antonio, would you be so kind to provide this code.
As msginfo is used often the code should be high standard.

Thanks in advance
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: MsgInfo
Posted: Mon May 04, 2009 05:00 PM

Otto,

MsgInfo() is just a wrapper to Windows API MessageBox() function.

If you want to use a different MessageBox() style in your application, simply design a dialog with the resources editor the way you want it: A SAY, an ICON (or a bitmap) and a BUTTON.

We can't provide a MessageBox() replacement that satisfies everybody wishes :-) Thats the freedom and beauty of FiveWin: you can modify it the way that you want it.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: MsgInfo
Posted: Wed Jun 03, 2009 03:15 PM
Hello Antonio,

what would be the best way to make the own msginfoBox modal.
Do I have to pass always the calling Window/dialog object?
Thanks in advance
Otto

Code (fw): Select all Collapse
function MsgInfo1(cText)
   local oDlg

   DEFINE DIALOG oDlg TITLE "Information" ;
      SIZE 200, 100 //COLOR "N/G" 
  
     @ 0.6, 4 SAY  cText SIZE 80, 10 
   @ 1.6, 6 BUTTON "OK" ACTION oDlg:End() SIZE 30, 20

   ACTIVATE DIALOG oDlg CENTERED 
   
return nil
//----------------------------------------------------------------------------//
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: MsgInfo
Posted: Mon Jun 08, 2009 01:42 PM

Otto,

is it running modal ?

If not, then you may need to supply it the oWnd of its container window.

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion