int32 FUNC_IDETERMINALBOX(){
qbs *tqbs;
ptrszint tmp_long;
int32 tmp_fileno;
uint32 qbs_tmp_base=qbs_tmp_list_nexti;
uint8 *tmp_mem_static_pointer=mem_static_pointer;
uint32 tmp_cmem_sp=cmem_sp;
#include "data335.txt"
mem_lock *sf_mem_lock;
new_mem_lock();
sf_mem_lock=mem_lock_tmp;
sf_mem_lock->type=3;
if (is_error_pending()) goto exit_subfunc;
do{
sub_pcopy( 0 , 2 );
if(!qbevent)break;evnt(25769,16300,"ide_methods.bas");}while(r);
do{
sub_pcopy( 0 , 1 );
if(!qbevent)break;evnt(25769,16301,"ide_methods.bas");}while(r);
do{
qbg_screen(NULL,NULL, 1 , 0 ,NULL,12);
if(!qbevent)break;evnt(25769,16302,"ide_methods.bas");}while(r);
do{
*_FUNC_IDETERMINALBOX_LONG_FOCUS= 1 ;
if(!qbevent)break;evnt(25769,16303,"ide_methods.bas");}while(r);
do{
if(!qbevent)break;evnt(25769,16304,"ide_methods.bas");}while(r);
do{
if (_FUNC_IDETERMINALBOX_ARRAY_UDT_O[2]&2){
error(10);
}else{
static int64 alloc_new_desc[8];
static uint64 alloc_req_elems;
static uint64 alloc_req_bytes;
static uint64 alloc_dim_value;
static uint64 alloc_bytes_per_element;
if (_FUNC_IDETERMINALBOX_ARRAY_UDT_O[2]&1){
if (!error_occurred) error(10);
}else{
alloc_new_desc[4]= 1 ;
alloc_new_desc[5]=( 100 )-alloc_new_desc[4]+1;
if (alloc_new_desc[5]<=0) error(5);
alloc_new_desc[6]=1;
alloc_req_elems=1;
alloc_bytes_per_element=(uint64)(101);
if (!alloc_bytes_per_element) error(257);
if (((int64)((ptrszint)alloc_new_desc[4]))!=alloc_new_desc[4]) error(257);
if (alloc_new_desc[5]<0) error(257);
if (((int64)((ptrszint)alloc_new_desc[5]))!=alloc_new_desc[5]) error(257);
if (alloc_new_desc[6]<0) error(257);
if (((int64)((ptrszint)alloc_new_desc[6]))!=alloc_new_desc[6]) error(257);
alloc_dim_value=(uint64)alloc_new_desc[5];
if (alloc_dim_value){
if (alloc_req_elems>(18446744073709551615ull/alloc_dim_value)) error(257);
alloc_req_elems*=alloc_dim_value;
}
if (alloc_req_elems>(18446744073709551615ull/alloc_bytes_per_element)) error(257);
alloc_req_bytes=alloc_req_elems*alloc_bytes_per_element;
if (((uint64)((ptrszint)alloc_req_elems))!=alloc_req_elems) error(257);
if (((uint64)((size_t)alloc_req_bytes))!=alloc_req_bytes) error(257);
if (_FUNC_IDETERMINALBOX_ARRAY_UDT_O[2]&4){
_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0]=(ptrszint)cmem_dynamic_malloc((size_t)alloc_req_bytes);
if (!_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0]) error(257);
memset((void*)(_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0]),0,(size_t)alloc_req_bytes);
}else{
_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0]=(ptrszint)calloc((size_t)alloc_req_bytes,1);
if (!_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0]) error(257);
}
_FUNC_IDETERMINALBOX_ARRAY_UDT_O[2]|=1;
_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4]=alloc_new_desc[4];
_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]=alloc_new_desc[5];
_FUNC_IDETERMINALBOX_ARRAY_UDT_O[6]=alloc_new_desc[6];
_FUNC_IDETERMINALBOX_ARRAY_UDT_O[7]=alloc_new_desc[7];
}
}
if(!qbevent)break;evnt(25769,16305,"ide_methods.bas");}while(r);
do{
if(!qbevent)break;evnt(25769,16306,"ide_methods.bas");}while(r);
do{
qbs_set(_FUNC_IDETERMINALBOX_STRING1_SEP,func_chr( 0 ));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,16307,"ide_methods.bas");}while(r);
do{
*_FUNC_IDETERMINALBOX_LONG_I= 0 ;
if(!qbevent)break;evnt(25769,16311,"ide_methods.bas");}while(r);
do{
SUB_IDEPAR((void*)( ((char*)(_FUNC_IDETERMINALBOX_UDT_P)) + ((0+0)) ),&(pass6610= 60 ),&(pass6611= 7 ),qbs_new_txt_len("Default Terminal",16));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,16312,"ide_methods.bas");}while(r);
do{
*_FUNC_IDETERMINALBOX_LONG_I=*_FUNC_IDETERMINALBOX_LONG_I+ 1 ;
if(!qbevent)break;evnt(25769,16314,"ide_methods.bas");}while(r);
do{
*_FUNC_IDETERMINALBOX_LONG_DTTBOX=*_FUNC_IDETERMINALBOX_LONG_I;
if(!qbevent)break;evnt(25769,16314,"ide_methods.bas");}while(r);
do{
*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+36)))= 1 ;
if(!qbevent)break;evnt(25769,16315,"ide_methods.bas");}while(r);
do{
*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+24)))= 2 ;
if(!qbevent)break;evnt(25769,16316,"ide_methods.bas");}while(r);
do{
*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+40)))=FUNC_IDENEWTXT(qbs_new_txt_len("Terminal Command",16));
if(!qbevent)break;evnt(25769,16317,"ide_methods.bas");}while(r);
do{
qbs_set(_FUNC_IDETERMINALBOX_STRING_A2,__STRING_DEFAULTTERMINAL);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,16317,"ide_methods.bas");}while(r);
do{
*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+44)))=FUNC_IDENEWTXT(_FUNC_IDETERMINALBOX_STRING_A2);
if(!qbevent)break;evnt(25769,16318,"ide_methods.bas");}while(r);
do{
*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+93)))=_FUNC_IDETERMINALBOX_STRING_A2->len;
if(!qbevent)break;evnt(25769,16318,"ide_methods.bas");}while(r);
do{
*_FUNC_IDETERMINALBOX_LONG_I=*_FUNC_IDETERMINALBOX_LONG_I+ 1 ;
if(!qbevent)break;evnt(25769,16320,"ide_methods.bas");}while(r);
do{
*_FUNC_IDETERMINALBOX_LONG_OKBUT=*_FUNC_IDETERMINALBOX_LONG_I;
if(!qbevent)break;evnt(25769,16320,"ide_methods.bas");}while(r);
do{
*_FUNC_IDETERMINALBOX_LONG_CABUT=*_FUNC_IDETERMINALBOX_LONG_I+ 1 ;
if(!qbevent)break;evnt(25769,16320,"ide_methods.bas");}while(r);
do{
*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+36)))= 3 ;
if(!qbevent)break;evnt(25769,16321,"ide_methods.bas");}while(r);
do{
*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+24)))= 7 ;
if(!qbevent)break;evnt(25769,16322,"ide_methods.bas");}while(r);
do{
*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+44)))=FUNC_IDENEWTXT(qbs_add(qbs_add(qbs_new_txt_len("#OK",3),_FUNC_IDETERMINALBOX_STRING1_SEP),qbs_new_txt_len("#Cancel",7)));
if(!qbevent)break;evnt(25769,16323,"ide_methods.bas");}while(r);
do{
*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+60)))= 1 ;
if(!qbevent)break;evnt(25769,16323,"ide_methods.bas");}while(r);
S_57738:;
fornext_value6614= 1 ;
fornext_finalvalue6614= 100 ;
fornext_step6614= 1 ;
if (fornext_step6614<0) fornext_step_negative6614=1; else fornext_step_negative6614=0;
if (is_error_pending()) goto fornext_error6614;
goto fornext_entrylabel6614;
while(1){
fornext_value6614=fornext_step6614+(*_FUNC_IDETERMINALBOX_LONG_I);
fornext_entrylabel6614:
*_FUNC_IDETERMINALBOX_LONG_I=fornext_value6614;
if (fornext_step_negative6614){
if (fornext_value6614<fornext_finalvalue6614) break;
}else{
if (fornext_value6614>fornext_finalvalue6614) break;
}
fornext_error6614:;
if(qbevent){evnt(25769,16327,"ide_methods.bas");if(r)goto S_57738;}
do{
memcpy(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+0))+ 0,((char*)_FUNC_IDETERMINALBOX_UDT_P)+((0+0))+ 0, 20);
if(!qbevent)break;evnt(25769,16327,"ide_methods.bas");}while(r);
fornext_continue_6613:;
}
fornext_exit_6613:;
S_57741:;
do{
if(qbevent){evnt(25769,16333,"ide_methods.bas");if(r)goto S_57741;}
do{
SUB_IDEDRAWPAR((void*)( ((char*)(_FUNC_IDETERMINALBOX_UDT_P)) + ((0+0)) ));
if(!qbevent)break;evnt(25769,16336,"ide_methods.bas");}while(r);
do{
*_FUNC_IDETERMINALBOX_LONG_F= 1 ;
if(!qbevent)break;evnt(25769,16337,"ide_methods.bas");}while(r);
do{
*_FUNC_IDETERMINALBOX_LONG_CX= 0 ;
if(!qbevent)break;evnt(25769,16337,"ide_methods.bas");}while(r);
do{
*_FUNC_IDETERMINALBOX_LONG_CY= 0 ;
if(!qbevent)break;evnt(25769,16337,"ide_methods.bas");}while(r);
S_57746:;
fornext_value6617= 1 ;
fornext_finalvalue6617= 100 ;
fornext_step6617= 1 ;
if (fornext_step6617<0) fornext_step_negative6617=1; else fornext_step_negative6617=0;
if (is_error_pending()) goto fornext_error6617;
goto fornext_entrylabel6617;
while(1){
fornext_value6617=fornext_step6617+(*_FUNC_IDETERMINALBOX_LONG_I);
fornext_entrylabel6617:
*_FUNC_IDETERMINALBOX_LONG_I=fornext_value6617;
if (fornext_step_negative6617){
if (fornext_value6617<fornext_finalvalue6617) break;
}else{
if (fornext_value6617>fornext_finalvalue6617) break;
}
fornext_error6617:;
if(qbevent){evnt(25769,16338,"ide_methods.bas");if(r)goto S_57746;}
S_57747:;
if ((*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+36))))||is_error_pending()){
if(qbevent){evnt(25769,16339,"ide_methods.bas");if(r)goto S_57747;}
do{
*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+72)))=*_FUNC_IDETERMINALBOX_LONG_FOCUS-*_FUNC_IDETERMINALBOX_LONG_F;
if(!qbevent)break;evnt(25769,16341,"ide_methods.bas");}while(r);
do{
*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+64)))= 0 ;
if(!qbevent)break;evnt(25769,16342,"ide_methods.bas");}while(r);
do{
*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+68)))= 0 ;
if(!qbevent)break;evnt(25769,16342,"ide_methods.bas");}while(r);
S_57751:;
if ((-((-(*_FUNC_IDETERMINALBOX_LONG_I==*_FUNC_IDETERMINALBOX_LONG_FOCUS))&&(-(*_FUNC_IDETERMINALBOX_LONG_FOCUS!=*_FUNC_IDETERMINALBOX_LONG_OLDFOCUS))))||is_error_pending()){
if(qbevent){evnt(25769,16343,"ide_methods.bas");if(r)goto S_57751;}
do{
*_FUNC_IDETERMINALBOX_LONG_OLDFOCUS=*_FUNC_IDETERMINALBOX_LONG_FOCUS;
if(!qbevent)break;evnt(25769,16344,"ide_methods.bas");}while(r);
S_57753:;
if ((-(*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+36)))== 1 ))||is_error_pending()){
if(qbevent){evnt(25769,16345,"ide_methods.bas");if(r)goto S_57753;}
do{
*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+93)))=((qbs*)(((uint64*)(__ARRAY_STRING_IDETXT[0]))[array_check((*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+44))))-__ARRAY_STRING_IDETXT[4],__ARRAY_STRING_IDETXT[5])]))->len;
if(!qbevent)break;evnt(25769,16347,"ide_methods.bas");}while(r);
S_57755:;
if ((-(*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+93)))> 0 ))||is_error_pending()){
if(qbevent){evnt(25769,16348,"ide_methods.bas");if(r)goto S_57755;}
do{
*(int8*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+88)))= -1 ;
if(!qbevent)break;evnt(25769,16348,"ide_methods.bas");}while(r);
}else{
do{
*(int8*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+88)))= 0 ;
if(!qbevent)break;evnt(25769,16348,"ide_methods.bas");}while(r);
}
do{
*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_FOCUS)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+89)))= 0 ;
if(!qbevent)break;evnt(25769,16349,"ide_methods.bas");}while(r);
}
}
do{
SUB_IDEDRAWOBJ((void*)( ((char*)(_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])) + (((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+0)) ),_FUNC_IDETERMINALBOX_LONG_F);
if(!qbevent)break;evnt(25769,16352,"ide_methods.bas");}while(r);
S_57764:;
if ((*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+64))))||is_error_pending()){
if(qbevent){evnt(25769,16353,"ide_methods.bas");if(r)goto S_57764;}
do{
*_FUNC_IDETERMINALBOX_LONG_CX=*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+64)));
if(!qbevent)break;evnt(25769,16353,"ide_methods.bas");}while(r);
do{
*_FUNC_IDETERMINALBOX_LONG_CY=*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+68)));
if(!qbevent)break;evnt(25769,16353,"ide_methods.bas");}while(r);
}
}
fornext_continue_6616:;
}
fornext_exit_6616:;
do{
*_FUNC_IDETERMINALBOX_LONG_LASTFOCUS=*_FUNC_IDETERMINALBOX_LONG_F- 1 ;
if(!qbevent)break;evnt(25769,16356,"ide_methods.bas");}while(r);
do{
sub__printstring(*(int32*)(((char*)_FUNC_IDETERMINALBOX_UDT_P)+((0+0)))+ 3 ,*(int32*)(((char*)_FUNC_IDETERMINALBOX_UDT_P)+((0+4)))+ 4 ,qbs_new_txt_len("Placeholder $$ will be replaced with the executable name.",57),NULL,0);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,16360,"ide_methods.bas");}while(r);
do{
sub__printstring(*(int32*)(((char*)_FUNC_IDETERMINALBOX_UDT_P)+((0+0)))+ 3 ,*(int32*)(((char*)_FUNC_IDETERMINALBOX_UDT_P)+((0+4)))+ 5 ,qbs_new_txt_len("Placeholder $@ will be replaced with the COMMAND$ string.",57),NULL,0);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,16361,"ide_methods.bas");}while(r);
do{
sub_pcopy( 1 , 0 );
if(!qbevent)break;evnt(25769,16365,"ide_methods.bas");}while(r);
S_57774:;
if ((*_FUNC_IDETERMINALBOX_LONG_CX)||is_error_pending()){
if(qbevent){evnt(25769,16366,"ide_methods.bas");if(r)goto S_57774;}
do{
qbg_screen(NULL,NULL, 0 , 0 ,NULL,12);
if(!qbevent)break;evnt(25769,16366,"ide_methods.bas");}while(r);
do{
qbg_sub_locate(*_FUNC_IDETERMINALBOX_LONG_CY,*_FUNC_IDETERMINALBOX_LONG_CX, 1 ,NULL,NULL,7);
if(!qbevent)break;evnt(25769,16366,"ide_methods.bas");}while(r);
do{
qbg_screen(NULL,NULL, 1 , 0 ,NULL,12);
if(!qbevent)break;evnt(25769,16366,"ide_methods.bas");}while(r);
}
do{
*_FUNC_IDETERMINALBOX_LONG_CHANGE= 0 ;
if(!qbevent)break;evnt(25769,16369,"ide_methods.bas");}while(r);
S_57780:;
do{
if(qbevent){evnt(25769,16370,"ide_methods.bas");if(r)goto S_57780;}
do{
SUB_GETINPUT();
if(!qbevent)break;evnt(25769,16371,"ide_methods.bas");}while(r);
S_57782:;
if ((*__LONG_MWHEEL)||is_error_pending()){
if(qbevent){evnt(25769,16372,"ide_methods.bas");if(r)goto S_57782;}
do{
*_FUNC_IDETERMINALBOX_LONG_CHANGE= 1 ;
if(!qbevent)break;evnt(25769,16372,"ide_methods.bas");}while(r);
}
S_57785:;
if ((*__LONG_KB)||is_error_pending()){
if(qbevent){evnt(25769,16373,"ide_methods.bas");if(r)goto S_57785;}
do{
*_FUNC_IDETERMINALBOX_LONG_CHANGE= 1 ;
if(!qbevent)break;evnt(25769,16373,"ide_methods.bas");}while(r);
}
S_57788:;
if ((*__LONG_MCLICK)||is_error_pending()){
if(qbevent){evnt(25769,16374,"ide_methods.bas");if(r)goto S_57788;}
do{
*_FUNC_IDETERMINALBOX_LONG_MOUSEDOWN= 1 ;
if(!qbevent)break;evnt(25769,16374,"ide_methods.bas");}while(r);
do{
*_FUNC_IDETERMINALBOX_LONG_CHANGE= 1 ;
if(!qbevent)break;evnt(25769,16374,"ide_methods.bas");}while(r);
}
S_57792:;
if ((*__LONG_MRELEASE)||is_error_pending()){
if(qbevent){evnt(25769,16375,"ide_methods.bas");if(r)goto S_57792;}
do{
*_FUNC_IDETERMINALBOX_LONG_MOUSEUP= 1 ;
if(!qbevent)break;evnt(25769,16375,"ide_methods.bas");}while(r);
do{
*_FUNC_IDETERMINALBOX_LONG_CHANGE= 1 ;
if(!qbevent)break;evnt(25769,16375,"ide_methods.bas");}while(r);
}
S_57796:;
if ((*__LONG_MB)||is_error_pending()){
if(qbevent){evnt(25769,16376,"ide_methods.bas");if(r)goto S_57796;}
do{
*_FUNC_IDETERMINALBOX_LONG_CHANGE= 1 ;
if(!qbevent)break;evnt(25769,16376,"ide_methods.bas");}while(r);
}
do{
*_FUNC_IDETERMINALBOX_LONG_ALT=*__LONG_KALT;
if(!qbevent)break;evnt(25769,16377,"ide_methods.bas");}while(r);
S_57800:;
if ((-(*_FUNC_IDETERMINALBOX_LONG_ALT!=*_FUNC_IDETERMINALBOX_LONG_OLDALT))||is_error_pending()){
if(qbevent){evnt(25769,16377,"ide_methods.bas");if(r)goto S_57800;}
do{
*_FUNC_IDETERMINALBOX_LONG_CHANGE= 1 ;
if(!qbevent)break;evnt(25769,16377,"ide_methods.bas");}while(r);
}
do{
*_FUNC_IDETERMINALBOX_LONG_OLDALT=*_FUNC_IDETERMINALBOX_LONG_ALT;
if(!qbevent)break;evnt(25769,16378,"ide_methods.bas");}while(r);
do{
sub__limit( 100 );
if(!qbevent)break;evnt(25769,16379,"ide_methods.bas");}while(r);
S_57805:;
dl_continue_6619:;
}while((!(*_FUNC_IDETERMINALBOX_LONG_CHANGE))&&(!is_error_pending()));
dl_exit_6619:;
if(qbevent){evnt(25769,16380,"ide_methods.bas");if(r)goto S_57805;}
S_57806:;
if ((*_FUNC_IDETERMINALBOX_LONG_ALT&(~(*__LONG_KCTRL)))||is_error_pending()){
if(qbevent){evnt(25769,16381,"ide_methods.bas");if(r)goto S_57806;}
do{
*__LONG_IDEHL= 1 ;
if(!qbevent)break;evnt(25769,16381,"ide_methods.bas");}while(r);
}else{
do{
*__LONG_IDEHL= 0 ;
if(!qbevent)break;evnt(25769,16381,"ide_methods.bas");}while(r);
}
do{
qbs_set(_FUNC_IDETERMINALBOX_STRING_ALTLETTER,qbs_new_txt_len("",0));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,16383,"ide_methods.bas");}while(r);
S_57812:;
if ((*_FUNC_IDETERMINALBOX_LONG_ALT&(~(*__LONG_KCTRL)))||is_error_pending()){
if(qbevent){evnt(25769,16384,"ide_methods.bas");if(r)goto S_57812;}
S_57813:;
if ((qbs_cleanup(qbs_tmp_base,-(__STRING_K->len== 1 )))||is_error_pending()){
if(qbevent){evnt(25769,16385,"ide_methods.bas");if(r)goto S_57813;}
do{
*_FUNC_IDETERMINALBOX_LONG_K=qbs_asc(qbs_ucase(__STRING_K));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,16386,"ide_methods.bas");}while(r);
S_57815:;
if (((-(*_FUNC_IDETERMINALBOX_LONG_K>= 65 ))&(-(*_FUNC_IDETERMINALBOX_LONG_K<= 90 )))||is_error_pending()){
if(qbevent){evnt(25769,16387,"ide_methods.bas");if(r)goto S_57815;}
do{
qbs_set(_FUNC_IDETERMINALBOX_STRING_ALTLETTER,func_chr(*_FUNC_IDETERMINALBOX_LONG_K));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,16387,"ide_methods.bas");}while(r);
}
}
}
do{
qbg_screen(NULL,NULL, 0 , 0 ,NULL,12);
if(!qbevent)break;evnt(25769,16390,"ide_methods.bas");}while(r);
do{
qbg_sub_locate(NULL,NULL, 0 ,NULL,NULL,4);
if(!qbevent)break;evnt(25769,16390,"ide_methods.bas");}while(r);
do{
qbg_screen(NULL,NULL, 1 , 0 ,NULL,12);
if(!qbevent)break;evnt(25769,16390,"ide_methods.bas");}while(r);
do{
*_FUNC_IDETERMINALBOX_LONG_INFO= 0 ;
if(!qbevent)break;evnt(25769,16394,"ide_methods.bas");}while(r);
do{
*_FUNC_IDETERMINALBOX_LONG_INVDATA= 0 ;
if(!qbevent)break;evnt(25769,16394,"ide_methods.bas");}while(r);
S_57825:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(__STRING_K,qbs_new_txt_len("",0))))||is_error_pending()){
if(qbevent){evnt(25769,16395,"ide_methods.bas");if(r)goto S_57825;}
do{
qbs_set(__STRING_K,func_chr( 255 ));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,16395,"ide_methods.bas");}while(r);
}
S_57828:;
if ((qbs_cleanup(qbs_tmp_base,(-(*__LONG_KSHIFT== 0 ))&(qbs_equal(__STRING_K,func_chr( 9 )))))||is_error_pending()){
if(qbevent){evnt(25769,16396,"ide_methods.bas");if(r)goto S_57828;}
do{
*_FUNC_IDETERMINALBOX_LONG_FOCUS=*_FUNC_IDETERMINALBOX_LONG_FOCUS+ 1 ;
if(!qbevent)break;evnt(25769,16396,"ide_methods.bas");}while(r);
}
S_57831:;
if ((qbs_cleanup(qbs_tmp_base,(*__LONG_KSHIFT&(qbs_equal(__STRING_K,func_chr( 9 ))))|((func_instr(NULL,func__os(),qbs_new_txt_len("MAC",3),0))&(qbs_equal(__STRING_K,func_chr( 25 ))))))||is_error_pending()){
if(qbevent){evnt(25769,16397,"ide_methods.bas");if(r)goto S_57831;}
do{
*_FUNC_IDETERMINALBOX_LONG_FOCUS=*_FUNC_IDETERMINALBOX_LONG_FOCUS- 1 ;
if(!qbevent)break;evnt(25769,16397,"ide_methods.bas");}while(r);
do{
qbs_set(__STRING_K,qbs_new_txt_len("",0));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,16397,"ide_methods.bas");}while(r);
}
S_57835:;
if ((-(*_FUNC_IDETERMINALBOX_LONG_FOCUS< 1 ))||is_error_pending()){
if(qbevent){evnt(25769,16398,"ide_methods.bas");if(r)goto S_57835;}
do{
*_FUNC_IDETERMINALBOX_LONG_FOCUS=*_FUNC_IDETERMINALBOX_LONG_LASTFOCUS;
if(!qbevent)break;evnt(25769,16398,"ide_methods.bas");}while(r);
}
S_57838:;
if ((-(*_FUNC_IDETERMINALBOX_LONG_FOCUS>*_FUNC_IDETERMINALBOX_LONG_LASTFOCUS))||is_error_pending()){
if(qbevent){evnt(25769,16399,"ide_methods.bas");if(r)goto S_57838;}
do{
*_FUNC_IDETERMINALBOX_LONG_FOCUS= 1 ;
if(!qbevent)break;evnt(25769,16399,"ide_methods.bas");}while(r);
}
do{
*_FUNC_IDETERMINALBOX_LONG_F= 1 ;
if(!qbevent)break;evnt(25769,16400,"ide_methods.bas");}while(r);
S_57842:;
fornext_value6622= 1 ;
fornext_finalvalue6622= 100 ;
fornext_step6622= 1 ;
if (fornext_step6622<0) fornext_step_negative6622=1; else fornext_step_negative6622=0;
if (is_error_pending()) goto fornext_error6622;
goto fornext_entrylabel6622;
while(1){
fornext_value6622=fornext_step6622+(*_FUNC_IDETERMINALBOX_LONG_I);
fornext_entrylabel6622:
*_FUNC_IDETERMINALBOX_LONG_I=fornext_value6622;
if (fornext_step_negative6622){
if (fornext_value6622<fornext_finalvalue6622) break;
}else{
if (fornext_value6622>fornext_finalvalue6622) break;
}
fornext_error6622:;
if(qbevent){evnt(25769,16401,"ide_methods.bas");if(r)goto S_57842;}
S_57843:;
if ((*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+36))))||is_error_pending()){
if(qbevent){evnt(25769,16402,"ide_methods.bas");if(r)goto S_57843;}
do{
*_FUNC_IDETERMINALBOX_LONG_FOCUSOFFSET=*_FUNC_IDETERMINALBOX_LONG_FOCUS-*_FUNC_IDETERMINALBOX_LONG_F;
if(!qbevent)break;evnt(25769,16403,"ide_methods.bas");}while(r);
do{
SUB_IDEOBJUPDATE((void*)( ((char*)(_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])) + (((array_check((*_FUNC_IDETERMINALBOX_LONG_I)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+0)) ),_FUNC_IDETERMINALBOX_LONG_FOCUS,_FUNC_IDETERMINALBOX_LONG_F,_FUNC_IDETERMINALBOX_LONG_FOCUSOFFSET,__STRING_K,_FUNC_IDETERMINALBOX_STRING_ALTLETTER,__LONG_MB,_FUNC_IDETERMINALBOX_LONG_MOUSEDOWN,_FUNC_IDETERMINALBOX_LONG_MOUSEUP,__LONG_MX,__LONG_MY,_FUNC_IDETERMINALBOX_LONG_INFO,__LONG_MWHEEL);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,16404,"ide_methods.bas");}while(r);
}
fornext_continue_6621:;
}
fornext_exit_6621:;
S_57848:;
if ((qbs_cleanup(qbs_tmp_base,(qbs_equal(__STRING_K,func_chr( 27 )))|(((-(*_FUNC_IDETERMINALBOX_LONG_FOCUS==*_FUNC_IDETERMINALBOX_LONG_CABUT))&(-(*_FUNC_IDETERMINALBOX_LONG_INFO!= 0 ))))))||is_error_pending()){
if(qbevent){evnt(25769,16411,"ide_methods.bas");if(r)goto S_57848;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(25769,16411,"ide_methods.bas");}while(r);
}
S_57851:;
if ((qbs_cleanup(qbs_tmp_base,(qbs_equal(__STRING_K,func_chr( 13 )))|(((-(*_FUNC_IDETERMINALBOX_LONG_FOCUS==*_FUNC_IDETERMINALBOX_LONG_OKBUT))&(-(*_FUNC_IDETERMINALBOX_LONG_INFO!= 0 ))))))||is_error_pending()){
if(qbevent){evnt(25769,16412,"ide_methods.bas");if(r)goto S_57851;}
S_57852:;
if ((*_FUNC_IDETERMINALBOX_LONG_INVDATA)||is_error_pending()){
if(qbevent){evnt(25769,16414,"ide_methods.bas");if(r)goto S_57852;}
do{
*_FUNC_IDETERMINALBOX_LONG_RETVAL=FUNC_IDEMESSAGEBOX(qbs_new_txt_len("Warning",7),qbs_new_txt_len("Confirmation has been blocked due to invalid settings.\\nPlease check your inputs, look for highlighted boxes.",109),qbs_new_txt_len("#OK",3));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,16415,"ide_methods.bas");}while(r);
do{
sub_pcopy( 2 , 1 );
if(!qbevent)break;evnt(25769,16416,"ide_methods.bas");}while(r);
do{
goto dl_continue_6615;
if(!qbevent)break;evnt(25769,16416,"ide_methods.bas");}while(r);
}
do{
*_FUNC_IDETERMINALBOX_INTEGER_OPTCHG= 0ll ;
if(!qbevent)break;evnt(25769,16419,"ide_methods.bas");}while(r);
do{
qbs_set(_FUNC_IDETERMINALBOX_STRING_V,((qbs*)(((uint64*)(__ARRAY_STRING_IDETXT[0]))[array_check((*(int32*)(((char*)_FUNC_IDETERMINALBOX_ARRAY_UDT_O[0])+(((array_check((*_FUNC_IDETERMINALBOX_LONG_DTTBOX)-_FUNC_IDETERMINALBOX_ARRAY_UDT_O[4],_FUNC_IDETERMINALBOX_ARRAY_UDT_O[5]))*101+44))))-__ARRAY_STRING_IDETXT[4],__ARRAY_STRING_IDETXT[5])])));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,16422,"ide_methods.bas");}while(r);
S_57859:;
if ((qbs_cleanup(qbs_tmp_base,qbs_notequal(__STRING_DEFAULTTERMINAL,_FUNC_IDETERMINALBOX_STRING_V)))||is_error_pending()){
if(qbevent){evnt(25769,16423,"ide_methods.bas");if(r)goto S_57859;}
do{
qbs_set(__STRING_DEFAULTTERMINAL,_FUNC_IDETERMINALBOX_STRING_V);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,16423,"ide_methods.bas");}while(r);
do{
*_FUNC_IDETERMINALBOX_INTEGER_OPTCHG= -1ll ;
if(!qbevent)break;evnt(25769,16423,"ide_methods.bas");}while(r);
}
S_57863:;
if ((*_FUNC_IDETERMINALBOX_INTEGER_OPTCHG)||is_error_pending()){
if(qbevent){evnt(25769,16425,"ide_methods.bas");if(r)goto S_57863;}
do{
SUB_WRITECONFIGSETTING(__STRING_GENERALSETTINGSSECTION,qbs_new_txt_len("DefaultTerminal",15),__STRING_DEFAULTTERMINAL);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,16427,"ide_methods.bas");}while(r);
do{
*_FUNC_IDETERMINALBOX_LONG_IDETERMINALBOX= 1 ;
if(!qbevent)break;evnt(25769,16429,"ide_methods.bas");}while(r);
}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(25769,16431,"ide_methods.bas");}while(r);
}
do{
*_FUNC_IDETERMINALBOX_LONG_MOUSEDOWN= 0 ;
if(!qbevent)break;evnt(25769,16435,"ide_methods.bas");}while(r);
do{
*_FUNC_IDETERMINALBOX_LONG_MOUSEUP= 0 ;
if(!qbevent)break;evnt(25769,16436,"ide_methods.bas");}while(r);
dl_continue_6615:;
}while(1);
dl_exit_6615:;
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free335.txt"
if ((tmp_mem_static_pointer>=mem_static)&&(tmp_mem_static_pointer<=mem_static_limit)) mem_static_pointer=tmp_mem_static_pointer; else mem_static_pointer=mem_static;
cmem_sp=tmp_cmem_sp;
return *_FUNC_IDETERMINALBOX_LONG_IDETERMINALBOX;
}
