FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FiveWin DIALOG Property
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM

FiveWin DIALOG Property

Posted: Sun Dec 15, 2019 02:35 AM
hi,

i have look at DEFINE DIALOG
c:\fwh\source\classes\dialog.prg

what i miss : how do i get Property of DIALOG :-)

these Error are left from HMG

Error: Unresolved external '_HB_FUN_GETFORMHANDLE'
hWnd of DIALOG

Error: Unresolved external '_HB_FUN_GETPROPERTY'
Property like "Height" / "Width"

Error: Unresolved external '_HB_FUN_GETDESKTOPWIDTH'
Error: Unresolved external '_HB_FUN_GETDESKTOPHEIGHT
Size of Desktop

Error: Unresolved external '_HB_FUN_DOMETHOD'
call Method for show()/hide() DIALOG

please help me to fix these Error.
greeting,

Jimmy
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM

Re: FiveWin DIALOG Property

Posted: Sun Dec 15, 2019 09:58 AM
Hello Jimmy,
maybe this sample can help.
Best regards
Otto
Code (fw): Select all Collapse
#include "FiveWin.ch"

function Main()

   local oDlg


   DEFINE DIALOG oDlg
  
   @ 3, 5 BUTTON "xbrowse" SIZE 40, 12 ;
      ACTION xbrowse(oDlg) DEFAULT

   @ 3, 16 BUTTON "&Cancel" SIZE 40, 12 ACTION oDlg:End()

   ACTIVATE DIALOG oDlg CENTERED 
   
return nil

//----------------------------------------------------------------------------//


Size of desktop
local nWidth := GetSysMetrics( 0 )
local nHeight := GetSysMetrics( 1 )
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM

Re: FiveWin DIALOG Property

Posted: Sun Dec 15, 2019 07:14 PM
hi,
Otto wrote:Hello Jimmy,
maybe this sample can help.
Code (fw): Select all Collapse
Size of desktop
  local nWidth  := GetSysMetrics( 0 ) 
   local nHeight := GetSysMetrics( 1 )

thx for Tip.
so i have to use API to get those Information :-)
i wonder that there is no Property to get HWND of DIALOG. what do i miss :-)
greeting,

Jimmy
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: FiveWin DIALOG Property

Posted: Mon Dec 16, 2019 08:59 AM

oDlg:hWnd

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM

Re: FiveWin DIALOG Property

Posted: Mon Dec 16, 2019 09:54 PM
Antonio Linares wrote:oDlg:hWnd
hihi ... ok back to OOP.

Question : DEFINE DIALOG is the same as TDialog:New() :-)

it is for me more easy to use OOP than Marco Code.

---

Back again to my Question if there are any Function or other to get Property of DIALOG :-)
greeting,

Jimmy
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: FiveWin DIALOG Property

Posted: Tue Dec 17, 2019 09:10 AM
Jimmy wrote:Question : DEFINE DIALOG is the same as TDialog:New() :-)


Yes. Best docs is dialog.ch, in this case.

EMG
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: FiveWin DIALOG Property

Posted: Tue Dec 17, 2019 09:11 AM
Jimmy wrote:Back again to my Question if there are any Function or other to get Property of DIALOG :-)


Look into dialog.prg and the ancestor window.prg.

EMG
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM

Re: FiveWin DIALOG Property

Posted: Tue Dec 17, 2019 11:06 PM
hi,
Enrico Maria Giordano wrote:Look into dialog.prg and the ancestor window.prg.

aaaaah ... YES now i can see Method and DATA ( Xbase++ -> VAR ) of CLASS

---

under HMG when use in Main FORM/DIALOG SIZE 0,0 it is invisible an goes to TaskTray where i have a Menu.
how to get Main Dialog to Tasktray under FiveWin :-)
greeting,

Jimmy
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: FiveWin DIALOG Property

Posted: Wed Dec 18, 2019 08:40 AM

samples\testtray.prg

EMG

Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM

Re: FiveWin DIALOG Property

Posted: Wed Dec 18, 2019 10:32 PM
Enrico Maria Giordano wrote:samples\testtray.prg
EMG

THX
greeting,

Jimmy

Continue the discussion