We will contact you about MdiChild.

We will contact you about MdiChild.

Postby kkwan » Tue May 08, 2018 12:13 pm

Define WinDow :: SubWin1 title "test" mdichild of oWnd sTyle;
                                    nOr (WS_CLIPCHILDREN, WS_VISIBLE, 0,0,0,0,0,0,0,0)

            If you run this window multiple times
             Window's window event does not work.
             BResize, bPainted, etc.


           Define WinDow :: SubWin1 title "test" mdichild of oxwnd NOSYSMENU
           This window works normally.

           Both older and older versions worked
            Is it changed or is it a bug?
kkwan
 
Posts: 10
Joined: Tue Apr 17, 2018 11:39 am

Re: We will contact you about MdiChild.

Postby kkwan » Wed May 09, 2018 8:02 am

https://www.youtube.com/watch?v=QOxsP0J ... e=youtu.be


It is a program we are making now
This is how we want to make it.
In the mdichild window, the child dialog window moves around
The control in the dialog window is automatically resized when the window changes.
kkwan
 
Posts: 10
Joined: Tue Apr 17, 2018 11:39 am

Re: We will contact you about MdiChild.

Postby Antonio Linares » Mon May 14, 2018 7:02 pm

kkwan,

This example seems to work fine. Please modify it to use it as an example:

Code: Select all  Expand view  RUN
#include "FiveWin.ch"

function Main()

   local oWnd, oBar

   DEFINE WINDOW oWnd MDI
   
   DEFINE BUTTONBAR oBar OF oWnd 2010 SIZE 70, 70
   
   DEFINE BUTTON OF oBar PROMPT "New" ACTION NewChild( oWnd )

   ACTIVATE WINDOW oWnd

return nil

function NewChild( oWnd )

   local oWndChild

   DEFINE WINDOW oWndChild MDICHILD OF oWnd STYLE nOr( WS_CAPTION, WS_BORDER, WS_CLIPCHILDREN, WS_VISIBLE )
   
   // oWndChild:Show()
   
return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: We will contact you about MdiChild.

Postby kkwan » Tue May 15, 2018 6:26 am

Thank you for your reply.
The point of the question is
When setting a window box to no style
If the dialog with child is resized, there is no glitter.

However, if you use NOSYSMENU or STYLE nOr (WS_CAPTION, WS_BORDER, WS_CLIPCHILDREN, WS_VISIBLE)
The first time the window box is loaded and resized, the screen flickers.

So I killed and solved all styles.

But when you open the window from another menu
The event is not working.

I will adapt to the new environment according to your advice.
thank you.
kkwan
 
Posts: 10
Joined: Tue Apr 17, 2018 11:39 am


Return to Bugs report & fixes / Informe de errores y arreglos

Who is online

Users browsing this forum: No registered users and 12 guests