FiveWin DIALOG Property

Post Reply
User avatar
Jimmy
Posts: 165
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

FiveWin DIALOG Property

Post by Jimmy »

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
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: FiveWin DIALOG Property

Post by Otto »

Hello Jimmy,
maybe this sample can help.
Best regards
Otto

Code: Select all

#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 )
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
Jimmy
Posts: 165
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: FiveWin DIALOG Property

Post by Jimmy »

hi,
Otto wrote:Hello Jimmy,
maybe this sample can help.

Code: Select all

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

Re: FiveWin DIALOG Property

Post by Antonio Linares »

oDlg:hWnd
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Jimmy
Posts: 165
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: FiveWin DIALOG Property

Post by Jimmy »

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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: FiveWin DIALOG Property

Post by Enrico Maria Giordano »

Jimmy wrote:Question : DEFINE DIALOG is the same as TDialog:New() :?:
Yes. Best docs is dialog.ch, in this case.

EMG
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: FiveWin DIALOG Property

Post by Enrico Maria Giordano »

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
User avatar
Jimmy
Posts: 165
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: FiveWin DIALOG Property

Post by Jimmy »

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
User avatar
Jimmy
Posts: 165
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: FiveWin DIALOG Property

Post by Jimmy »

Enrico Maria Giordano wrote:samples\testtray.prg
EMG
THX
greeting,
Jimmy
Post Reply