FiveWin DIALOG Property

FiveWin DIALOG Property

Postby Jimmy » Sun Dec 15, 2019 2: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
User avatar
Jimmy
 
Posts: 1586
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: FiveWin DIALOG Property

Postby Otto » Sun Dec 15, 2019 9:58 am

Hello Jimmy,
maybe this sample can help.
Best regards
Otto
Code: Select all  Expand view

#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
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6008
Joined: Fri Oct 07, 2005 7:07 pm

Re: FiveWin DIALOG Property

Postby Jimmy » Sun Dec 15, 2019 7:14 pm

hi,
Otto wrote:Hello Jimmy,
maybe this sample can help.
Code: Select all  Expand view

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

Re: FiveWin DIALOG Property

Postby Antonio Linares » Mon Dec 16, 2019 8:59 am

oDlg:hWnd
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41315
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveWin DIALOG Property

Postby Jimmy » Mon Dec 16, 2019 9: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
User avatar
Jimmy
 
Posts: 1586
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: FiveWin DIALOG Property

Postby Enrico Maria Giordano » Tue Dec 17, 2019 9:10 am

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: 8315
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: FiveWin DIALOG Property

Postby Enrico Maria Giordano » Tue Dec 17, 2019 9: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
User avatar
Enrico Maria Giordano
 
Posts: 8315
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: FiveWin DIALOG Property

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


Re: FiveWin DIALOG Property

Postby Jimmy » Wed Dec 18, 2019 10:32 pm

Enrico Maria Giordano wrote:samples\testtray.prg
EMG

THX
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1586
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: karinha and 98 guests