Search found 35 matches: hdlg

Return to advanced search

Re: Referencing a dialog from a different class ?

It returns a numeric. So you can't use :hide()

oWdlg:hide()

cannot be replaced with

hDlg := GetActiveWindow( )
hDlg:hide()


However, this does work:

hDlg := GetActiveWindow( )
ShowWindow( hDlg, 0 ) // Hides
then
ShowWindow( hDlg, 1 ) // Shows it again in normal size

Thank you.
by TimStone
Fri Sep 22, 2017 4:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Referencing a dialog from a different class ?
Replies: 11
Views: 2301

Re: Harbour Problems

the class vMenu is from Tcontrol and have this method there is an error on this line METHOD Initiate( hDlg ) INLINE Super:Initiate( hDlg ), ::Default() Error occurred at: 05/17/17, 19:09:52 Error description: Error BASE/1003 Variable does not exist: SUPER sorry but where is ...
by Silvio.Falconi
Wed May 17, 2017 5:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Harbour Problems | Resolved!!!
Replies: 22
Views: 3893

Harbour Problems | Resolved!!!

... with xharbour on Habour make me an error on these lines Error description: Error BASE/1003 Variabile inesistente: SUPER ( line 89) METHOD Init ( hDlg ) INLINE Super:Init ( hDlg ), ::Default() METHOD Initiate( hDlg ) INLINE Super:Initiate( hDlg ), ::Default() ===========   Path and name: C:\Work\Prg\Agenda ...
by Silvio.Falconi
Tue May 16, 2017 4:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Harbour Problems | Resolved!!!
Replies: 22
Views: 3893

Re: Migrar a Harbour - Errores del compilador

Cámbiala asi:

METHOD Initiate( hDlg ) INLINE ::Super:Initiate( hDlg ), ::Default()
by Antonio Linares
Wed Dec 17, 2014 7:30 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Migrar a Harbour - Errores del compilador
Replies: 29
Views: 5378

Tengo un mensqje de error en bcc582

... 1 #define PSNRET_INVALID_NOCHANGEPAGE 2 #define PSNRET_MESSAGEHANDLED 3 #define PSM_SETCURSEL (WM_USER + 101) #define PropSheet_SetCurSel(hDlg, hpage, index) \ SNDMSG(hDlg, PSM_SETCURSEL, (WPARAM)index, (LPARAM)hpage) #define PSM_REMOVEPAGE (WM_USER + 102) #define PropSheet_RemovePage(hDlg, ...
by Armando Picon
Thu Aug 14, 2014 12:08 am
 
Forum: EasyReport, EasyDialog y EasyPreview
Topic: Tengo un mensqje de error en bcc582
Replies: 2
Views: 1556

Re: TO ANTONIO HELP FOR BLINK

I modify now: DATA oOut READONLY DATA nTime READONLY AS NUMERIC INIT 0 METHOD Initiate( hDlg ) INLINE Super:Initiate( hDlg ), ::Default() on New method if ! Empty( ::oWnd:hWnd ) ::Create() ::oWnd:AddControl( Self ) else ::oWnd:DefControl( Self ) endif on Default method ...
by Silvio.Falconi
Tue May 28, 2013 9:56 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TO ANTONIO HELP FOR BLINK
Replies: 9
Views: 1662

Re: Un control en un TPanel

... por AddControl() que es de TWINDOW, común a todo y todos. Lo que no llego a entender es porque ahora si funciona GetDlgItem() y antes no, pues hDlg no venía como 0 y se refería al mismo TPANEL. Pero bueno, lo importante es que funciona y que me has sacado de un apuro. Muchas gracias otra vez.
by antolin
Mon May 27, 2013 9:35 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Un control en un TPanel
Replies: 11
Views: 2592

Re: Un control en un TPanel

... inicializa todos sus controles pero no ese TSAY porque no le pertenece, pertenece al TPANEL. La solución pasaría por definirle un METHOD INITIATE( hDlg ) al uso al TPANEL añadiéndole al final: IF ::aControls # NIL  ASend( ::aControls, "INITIATE()", ::hWnd )ENDIF Pero aparece otro ...
by antolin
Mon May 27, 2013 8:31 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Un control en un TPanel
Replies: 11
Views: 2592

Re: Un contrl en un TPanel

... sino a mano con @ 10,10 .... . Segundo lo que falla es el TSAY que no se asocia con el panel. La línea del INITiATE: IF( ( ::hWnd := GetDlgItem( hDlg,::nId ) ) # 0 ) me devuelve 0 y creo que es porque no reconoce ::nId como item del panel. Seguramente tendrá algo que ver que no viene de recurso ...
by antolin
Thu May 23, 2013 3:29 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Un control en un TPanel
Replies: 11
Views: 2592

TGet Falla con el harbour del svn - por recientes cambios

... desde mi proyecto (esto tambien lo he hecho muchas veces sin problemas), esta fallando en el metodo initiate la linea que indica Super:Initiate( hDlg ) revienta con el error, Error description: Error BASE/1003 No existe la variable: SUPER Stack Calls =========== Called from: source\tget.prg => ...
by carlos vargas
Tue Jan 22, 2013 7:26 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: TGet Falla con el harbour del svn - por recientes cambios
Replies: 20
Views: 5585

New FTDN April/Abril 2012 (FWH 12.04)

... * Fix: Class TWindow Methods Hide() and Show() were not modifying DATA lVisible, now it is ok. * Enhancement: function SetWindowTheme( hWnd or hDlg or hControl ) can be used to disable the themes style for a specific window, dialog or control. FWH automatically converts SetWindowTheme( hWnd ...
by Antonio Linares
Sun Apr 29, 2012 3:41 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN April/Abril 2012 (FWH 12.04)
Replies: 0
Views: 1407

Re: Check if ID exist in resource

Antonio,

GetDlgItem( hDlg, nID ) allways returned 0 but oDlg:getitem(nID) is working fine.
The only problem I have now is to redefine a control in the function called in the ON INIT,it doesn't work.
Is it an other syntax I have to use?

Regards,
Marc
by Marc Vanzegbroeck
Sun Jan 15, 2012 7:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Check if ID exist in resource
Replies: 5
Views: 960

Re: Check if ID exist in resource

Marc, You could use: GetDlgItem( hDlg, nID ) --> hControl hControl will be zero if such control does not exist. The problem with this function is that you can not use it until you have the hWnd of the dialog, in other words: it will only ...
by Antonio Linares
Sun Jan 15, 2012 12:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Check if ID exist in resource
Replies: 5
Views: 960

Re: Consultas xBrowse

... porque no funciona: En el XBrowse de la versión que uso hay un bug que impide que funcione correctamente. En el método Initiate() hace if hDlg != nil Super:Initiate( hDlg ) ::SetColor( CLR_BLACK, GetSysColor( COLOR_WINDOW ) ) endif ignorando cualquier setcolor que hayas puesto. Lo correcto ...
by Carlos Mora
Tue Nov 09, 2010 8:15 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consultas xBrowse
Replies: 4
Views: 795

Re: Possible to calc. Right/Bottom Btn-Pos on diff. Dlg-Sizes ?

... allows the structure to be used to create a dialog box or position a control within a dialog box. Syntax CopyBOOL WINAPI MapDialogRect( __in HWND hDlg, __inout LPRECT lpRect ); // ----- FWH - Function ----------------- DLL32 FUNCTION MapDialRec; ( hDlg AS LONG, @lpRect AS LPSTR ) ; // RECT AS ...
by ukoenig
Mon Aug 16, 2010 10:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Possible to calc. Right/Bottom Btn-Pos on diff. Dlg-Sizes ?
Replies: 17
Views: 5617
Next

Return to advanced search