Página 1 de 3

Make DialogEx as Child window and make it NOT Modal

Publicado: 24 Ene 2020 11:04
por sendai
Hello everyone i know this topic is already discuss it before.. But want to make it a followup since its already 2020, if someone already make the solution to make the DialogEx a child window and make it NOT Modal, it mean even if you ope a dialogex or more dialogex you can still manipulate the main page as functional.. there is an example i see long before 2018 it works dialogex is not modal using winapi but if the dialogeX is open you can even manipulate the main page.. all the function left are not functioning unless dialogex is close..


Thank you everyone..

Re: Make DialogEx as Child window and make it NOT Modal

Publicado: 24 Ene 2020 23:42
por usamakey
personally I don't know solutions .....
activex objects should be investigated.

you can open several dialogs with

MultiThread (Pabloko or Ulrich)
WinApi


in the main window, in both cases, objects that do not have HWND (label, input, button ....) stop updating their status
and using page.redraw can help.

not in the case of an intermediate dialogex .... even using them dialogex.setredraw will not help


I'll take a look as soon as I have time

Re: Make DialogEx as Child window and make it NOT Modal

Publicado: 25 Ene 2020 02:11
por dripro
sendai escribió:
24 Ene 2020 11:04
Hello everyone i know this topic is already discuss it before.. But want to make it a followup since its already 2020, if someone already make the solution to make the DialogEx a child window and make it NOT Modal, it mean even if you ope a dialogex or more dialogex you can still manipulate the main page as functional.. there is an example i see long before 2018 it works dialogex is not modal using winapi but if the dialogeX is open you can even manipulate the main page.. all the function left are not functioning unless dialogex is close..


Thank you everyone..
Hello friend I have an example using winapi does not serve you?

Re: Make DialogEx as Child window and make it NOT Modal

Publicado: 25 Ene 2020 03:36
por sendai
dripro escribió:
25 Ene 2020 02:11
sendai escribió:
24 Ene 2020 11:04
Hello everyone i know this topic is already discuss it before.. But want to make it a followup since its already 2020, if someone already make the solution to make the DialogEx a child window and make it NOT Modal, it mean even if you ope a dialogex or more dialogex you can still manipulate the main page as functional.. there is an example i see long before 2018 it works dialogex is not modal using winapi but if the dialogeX is open you can even manipulate the main page.. all the function left are not functioning unless dialogex is close..


Thank you everyone..
Hello friend I have an example using winapi does not serve you?
Hi dripo.. i found some attempt using winapi i dont know if that is your example but when i try it, it open even multiple dialog but while dialogeX are open all command or function in the main page are not working.

Re: Make DialogEx as Child window and make it NOT Modal

Publicado: 25 Ene 2020 03:57
por Dow Sher

Re: Make DialogEx as Child window and make it NOT Modal

Publicado: 25 Ene 2020 05:10
por sendai
Dow Sher escribió:
25 Ene 2020 03:57
MultiThread
http://amsspecialist.com/viewtopic.php?f=15&t=957
Hi dowsher thanks, but i tried it already but seems not really make all the functions in first page as normal functional.. example if have a command in page timer, when opening dialogEx using multithread timer wont work correctly and after few seconds application shutdown.

Re: Make DialogEx as Child window and make it NOT Modal

Publicado: 25 Ene 2020 05:22
por sendai
also even for loop, will not work if the dialogex is open.

Re: Make DialogEx as Child window and make it NOT Modal

Publicado: 25 Ene 2020 05:42
por sendai
usamakey escribió:
24 Ene 2020 23:42
personally I don't know solutions .....
activex objects should be investigated.

you can open several dialogs with

MultiThread (Pabloko or Ulrich)
WinApi


in the main window, in both cases, objects that do not have HWND (label, input, button ....) stop updating their status
and using page.redraw can help.

not in the case of an intermediate dialogex .... even using them dialogex.setredraw will not help


I'll take a look as soon as I have time
Thanks usamakey,, yeah i already have the example using MultiThread and WinApi but the page are not really working as normal if dialogex is open especially (for loops and page timer)

Re: Make DialogEx as Child window and make it NOT Modal

Publicado: 25 Ene 2020 07:59
por Dow Sher
Tiene usted razón, AMS crashea al usar las Threads pero crashea de una forma linda, solo se cierra sin dar ningún aviso ni log de error, quizá tenga que ver con problemas de compatibilidad con Windows 10, solo Pabloko sabrá de ello.

Re: Make DialogEx as Child window and make it NOT Modal

Publicado: 25 Ene 2020 08:43
por sendai
yes i understand.. hope pabloko make some update on it..
i already replied to his thread for MultiThread.

Re: Make DialogEx as Child window and make it NOT Modal

Publicado: 25 Ene 2020 10:29
por usamakey
sendai escribió:
24 Ene 2020 11:04
i found some attempt using winapi i dont know if that is your example but when i try it, it open even multiple dialog but while dialogeX are open all command or function in the main page are not working.


this is not correct, using winapi with timer setting and page.redraw the loop works correctly


i tried using LUA Lanes but we get the same result .... open multidialogs but main window result not usable


regards

Re: Make DialogEx as Child window and make it NOT Modal

Publicado: 25 Ene 2020 12:55
por sendai
usamakey escribió:
25 Ene 2020 10:29
sendai escribió:
24 Ene 2020 11:04
i found some attempt using winapi i dont know if that is your example but when i try it, it open even multiple dialog but while dialogeX are open all command or function in the main page are not working.


this is not correct, using winapi with timer setting and page.redraw the loop works correctly


i tried using LUA Lanes but we get the same result .... open multidialogs but main window result not usable


regards
i agree some are working but the using page.redraw in the loops, make it not works as expected most of time application will freeze.

Re: Make DialogEx as Child window and make it NOT Modal

Publicado: 25 Ene 2020 13:49
por usamakey






Test


Re: Make DialogEx as Child window and make it NOT Modal

Publicado: 25 Ene 2020 14:32
por sendai
usamakey escribió:
25 Ene 2020 13:49






Test

where is the dialogex?

Re: Make DialogEx as Child window and make it NOT Modal

Publicado: 25 Ene 2020 14:42
por usamakey
:) :) :) :) :) :) :) :)

what do you think the yellow window and the blue window are?
after this the thread is closed for me

Re: Make DialogEx as Child window and make it NOT Modal

Publicado: 25 Ene 2020 14:44
por sendai
usamakey escribió:
25 Ene 2020 14:42
:) :) :) :) :) :) :) :)

what do you think the yellow window and the blue window are?
after this the thread is closed for me
Really cool.. can you share it for me? want to see if that is works with my project.. thanks..

Re: Make DialogEx as Child window and make it NOT Modal

Publicado: 25 Ene 2020 16:13
por dripro
Example
HIDE: ON
Hidebb Message Hidden Description


Imagem
Imagen

Re: Make DialogEx as Child window and make it NOT Modal

Publicado: 25 Ene 2020 16:17
por usamakey






just to dispel doubts


[quote=dripro]
Example
HIDE: ON
Hidebb Message Hidden Description


Imagem
Imagen
[/quote]


tnks my friend :yes: :yes:



Re: Make DialogEx as Child window and make it NOT Modal

Publicado: 25 Ene 2020 18:30
por dripro
Example
HIDE: ON
Hidebb Message Hidden Description


Imagem
Imagen

Re: Make DialogEx as Child window and make it NOT Modal

Publicado: 26 Ene 2020 00:23
por sendai
Thank you Dripo.. i actually made like this and it works my concerns for this all multiple exe are running. i just want to achieve one exe running but when dialogex is open main page is free for any command and not use of application redraw.