🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

creating and updating dialog within script

Started by
2 comments, last by WitchLord 19 years, 8 months ago
Hi I am trying to create a modeless dialog and update it on fly.But dialog is stuck , cannot update itself until script execution finish. Any method to solve this or is this possible?.Angelscript version is 1.9.2a . ( OpenWatchWindow()= creates modeless dialog ) //test.as //script file content bool result = InitBus(); if( result ) { int i = 0 ; int value = 0 ; OpenWatchWindow(); for( i = 0 ; i < 10 ; i ++ ) { value = ReadByte( SCON_CSYNC_INV + i ); SendMessage(SCON_CSYNC_INV + i,value); UpdateWatchWindow(); } CloseWatchWindow(); } best regards BilgeKaan
Advertisement
I think that you do not have any pump message function called from AS.

You can do it like this :
UpdateWatchWindow(){// ... Your code to update window's datas ...	HWND hwnd = GetSafeHwnd(); //YOUR WAY TO GET THE HWND OF THE WINDOW TO BE UPDATED	MSG msg;	ZeroMemory(&msg, sizeof(msg));	while(::PeekMessage(&msg, hwnd, 0, 0, PM_REMOVE)) {		::TranslateMessage(&msg);		::DispatchMessage(&msg);	}}
abrken
thanx for your answers.

This is a double post. I'm closing this thread. Please continue the discussion here:

http://www.gamedev.net/community/forums/topic.asp?topic_id=277605.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement