How to close a window from a smart browser?

Rabbit

Member
I have develope an smart browser with an Exit button on it. If I place it into a smart window, how can I use this Exit button to close the smart window. Please advice, thank you!

Rabbit;p
 

MSilva

New Member
Hi

Try using a publish statement coded in the button .

Your button :

publish "closemywindow".

Your Window (main block):

subscribe "closemywindow" anywhere.

AND

Procedure closemywindow:

/*here you close your app*/
end.
 

Rabbit

Member
Cannot compile?

Originally posted by MSilva
Hi

Try using a publish statement coded in the button .

Your button :

publish "closemywindow".

Your Window (main block):

subscribe "closemywindow" anywhere.

AND

Procedure closemywindow:

/*here you close your app*/
end.

Thanks for your help, I have try the statment subscribe, but Progress just said "Unable to understand" the statement. Is anything I make wrong? This is my main block statement :

SUBSCRIBE "PROCEDURE closemywindows" ANYWHERE.

/* Include custom Main Block code for SmartWindows. */
{src/adm/template/windowmn.i}

I am using Progress V8.3. Thank you!

Rabbit
 

MSilva

New Member
Re: Cannot compile?

Originally posted by Rabbit


Thanks for your help, I have try the statment subscribe, but Progress just said "Unable to understand" the statement. Is anything I make wrong? This is my main block statement :

SUBSCRIBE "PROCEDURE closemywindows" ANYWHERE.

---> SUBSCRIBE "closemywindows" ANYWHERE. /*dont write procedure*/

/* Include custom Main Block code for SmartWindows. */
{src/adm/template/windowmn.i}

I am using Progress V8.3. Thank you!

Rabbit

Don't forget creating a new procedure called "Closemywindows"...

Good luck.
 

m1_ru

New Member
Try to use next code in trigger on choose of button Exit
in browser:
<code>
run notify in this-procedure (input 'exit,container-source':u ) .
</code>
 

Rabbit

Member
Thank you!

Originally posted by m1_ru
Try to use next code in trigger on choose of button Exit
in browser:
<code>
run notify in this-procedure (input 'exit,container-source':u ) .
</code>

Thank you very much, the 'run notify' statement is work!!:clown:
 
Top