Error WINDOWHEIG WindowWidth DCGETOPTIONS 880 710 NOMAXBUTTO

This forum is for eXpress++ general support.
Message
Author
User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Error WINDOWHEIG WindowWidth DCGETOPTIONS 880 710 NOMAXBUTTO

#1 Post by digitsoft »

Hi Roger
I have problem with my system, when using
HT WINDOWHEIG WindowWidth DCGETOPTIONS 880 710 NOMAXBUTTO NOMAXBUTTON

If mimizan when Maximo System generates this error I blink a lot and also

Nolberto Paulino



Hola Roger
Tengo Problema con mi sistema, cuando uso
DCGETOPTIONS WINDOWWIDTH 880 WINDOWHEIGHT 710 NOMAXBUTTON

Si mimizo el Sistema cuando lo Maximoso me genera este error y ademas Palpade mucho

Nolberto Paulino
Attachments
Bitmap
Bitmap
Error Express.JPG (181.04 KiB) Viewed 13660 times
Nolberto Paulino
Regards

User avatar
Tom
Posts: 1171
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Error WINDOWHEIG WindowWidth DCGETOPTIONS 880 710 NOMAXBUTTO

#2 Post by Tom »

Hi, Nolberto.

You don't have a problem with the size settings, but there is a lost workarea reference (alias) inside the to-be-resized-dialog. Refreshing the dialog (after resize) rereads the values of the dialog elements. And at least one of those points to a workarea which is not available anymore. You maybe close the workarea somewhere (in DCREAD .. EVAL?).
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: Error WINDOWHEIG WindowWidth DCGETOPTIONS 880 710 NOMAXBUTTO

#3 Post by digitsoft »

Thanks Tom for your help
I do not close the work area, only minimizes the system and restore it when I get that problem.

It seems that are closing in work areas but that only happens with dcbrowse.

but if you use EVAL {| o | o: setFrameState (XBPDLG_FRAMESTAT_MAXIMIZED)), that does not give the error.
Nolberto Paulino
Regards

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Error WINDOWHEIG WindowWidth DCGETOPTIONS 880 710 NOMAXBUTTO

#4 Post by rdonnay »

This does not make any sense to me. Your error window shows that DC_AutoResize() is being called. This would mean that you must also have an AUTORESIZE clause in your DCGETOPTIONS command, but you do not show this. Are you using DC_GetOptDefault() ?

Which particular clause of DCGETOPTIONS is causing the problem?
The eXpress train is coming - and it has more cars.

User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: Error WINDOWHEIG WindowWidth DCGETOPTIONS 880 710 NOMAXBUTTO

#5 Post by digitsoft »

Roger if I am using

DCGETOPTIONS TOOLTIPCOLOR GRA_CLR_BLACK, XBPSYSCLR_INFOBACKGROUND ;
NOESCAPEKEY ; &&& AUTOWINDOWMENU ; CHECKGET ;
COLORGETS {{GRA_CLR_BLACK,GRA_CLR_YELLOW},{GRA_CLR_BLUE,GRA_CLR_WHITE}} ;
ICON ICON_PV ;
HILITEGETS GRA_CLR_RED ;
NOSUPERVISE ;
MESSAGEINTO oMsgBox ;
TOOLTIPFONT '08.Arial Bold' ;
AUTORESIZE ;
CONFIRM

** AUTORESIZE
** DISABLEDCOLOR GRA_CLR_WHITE ; XBPSYSCLR_TRANSPARENT
** DISABLEDCOLOR { 50,0,0 } ;

DC_GetOptDefault( GetOptions )

DCGETOPTIONS BITMAP cFondoEmpresa ;
TOOLTIPCOLOR GRA_CLR_BLACK, XBPSYSCLR_INFOBACKGROUND ;
NOESCAPEKEY ;
CHECKGET ;
COLORGETS {{GRA_CLR_BLACK,GRA_CLR_YELLOW},{GRA_CLR_BLUE,GRA_CLR_WHITE}} ;
ICON ICON_PV ;
HILITEGETS GRA_CLR_RED ;
WINDOWHEIGHT nHeight ;
WINDOWWIDTH nWidth ;
MESSAGEINTO oMsgBox ;
TOOLTIPFONT '08.Arial Bold' ;
SCROLLBARS XBP_SCROLLBAR_VERT+XBP_SCROLLBAR_HORIZ ;
AUTORESIZE ;
ABORTQUERY MSG {||DC_WinAlert("Esta Seguro de Salir del Sistema "+NSD_TituloPrograma( cTipoMenuActivo )+" Fácil e Integrada","Atención",XBPMB_YESNO,XBPMB_WARNING,,oDlg) = XBPMB_RET_YES } ;
CLOSEQUERY MSG {||DC_WinAlert("Esta Seguro de Salir del Sistema "+NSD_TituloPrograma( cTipoMenuActivo )+" Fácil e Integrada","Atención",XBPMB_YESNO,XBPMB_WARNING,,oDlg) = XBPMB_RET_YES }

** MAXSIZE 1036,780



DCREAD GUI ;
TITLE NSD_TituloPrograma( cTipoMenuActivo )+" Fácil e Integrada" ;
PARENT @oDlg ;
OPTIONS GetOptions ;
SETAPPWINDOW ;
CLEAREVENTS ;
EVAL {|o|o:setFrameState( XBPDLG_FRAMESTAT_MAXIMIZED ), SetTimerEvent(100,{||_UpdateStats(GetList,oUserStatic)}), ;
MarcarDesMarcarPrinter( oMenuPrinter, aPos[1], "1" ), ;
MarcarDesMarcarPrinter( oTipoPapel , aPos[2], "2" ), ;
ChangeBitmap( @oDlg:drawingArea ),;
oThreadTPV:Animation( @oTpvStatic, {LED_ON,LED_OFF} ),;
oThreadTPV:Receive( ),;
aGetListMenu := GetList,;
SetAppFocus(o) }
Nolberto Paulino
Regards

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Error WINDOWHEIG WindowWidth DCGETOPTIONS 880 710 NOMAXBUTTO

#6 Post by rdonnay »

There is a possibility that DC_AutoResize() is getting called from another thread, but I would not know why.

click on the "Dot" button from the error window.
This should bring up DC_Dot() and will display the thread number in the title bar.

It should display Thread 1.
The eXpress train is coming - and it has more cars.

User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: Error WINDOWHEIG WindowWidth DCGETOPTIONS 880 710 NOMAXBUTTO

#7 Post by digitsoft »

The Dot does not have anything in the Workareas is as if someone gave you close the dbf, or is it possible that another thread
Attachments
Ejemplo
Ejemplo
Error Express 2.JPG (143.11 KiB) Viewed 13619 times
Nolberto Paulino
Regards

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Error WINDOWHEIG WindowWidth DCGETOPTIONS 880 710 NOMAXBUTTO

#8 Post by rdonnay »

Ok, I can see that it is not a thread problem. It appears that you have a browse window that is being resized and it has lost the connection to the alias because that database has been closed. Do you have a hidden window or a window that was not destroyed properly?

What have you added to your code to make this start happening?
The eXpress train is coming - and it has more cars.

User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: Error WINDOWHEIG WindowWidth DCGETOPTIONS 880 710 NOMAXBUTTO

#9 Post by digitsoft »

Ok, Roger
I'm just changing the size of the Main Menu window, and the choice of products just call it with this
function


PROCEDURE LaunchPad(cFunc,a,b,c,e,f)
local oThread:= Thread():New():Start(cFunc,a,b,c,e,f)
return


After loading the product option to give him of Minimize button that has the main menu screen, when maximizing the system generates a series of blink and then
generates the error.
Nolberto Paulino
Regards

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Error WINDOWHEIG WindowWidth DCGETOPTIONS 880 710 NOMAXBUTTO

#10 Post by rdonnay »

Ok, so this DOES have something to do with another thread.

It appears that the main thread is trying to resize a window in another thread.
Try DCGETOPTIONS NOAUTORESIZE in the other thread.
The eXpress train is coming - and it has more cars.

Post Reply