... combine ScreenToClient() and ClientToScreen() ? Based on the (right) used hWnd, you may get the correct coordinates. > 3. Count with oWndParent:aWnd if there are MDICHILD's open (Can we add the window manually to oWndParent:oWndClient:aWnd?) > Yes, you can manually add to :aWnd > PS. I'm ...
... OK with 'SetParent()' ) 2. Save MDICHILD's position together with its Height and Width ( This is what does not work ) 3. Count with oWndParent:aWnd if there are MDICHILD's open ( Can we add the window manually to oWndParent:oWndClient:aWnd? ) Patrick PS. I'm thinking.. Would it not be more ...
... it is a Windows built-in class, and it manages the menu automatically > It looks like SetParent() also does not add the oWndParent:oWndClient:aWnd. Or do I need to add it manually to it? > yes, add it manually Ok, so only option is to enhance working with SetParent() correct? After SetParent(), ...
... it is a Windows built-in class, and it manages the menu automatically > It looks like SetParent() also does not add the oWndParent:oWndClient:aWnd. Or do I need to add it manually to it? > yes, add it manually
... ) Maybe it's simpler to modify MDIChild.prg class to accept menu? It looks like SetParent() also does not add the oWndParent:oWndClient:aWnd. Or do I need to add it manually to it? Patrick.
... tengo que dar de alta un registro, y actualizar un browse en otra ventana. Ahora lo hago recorriendo el array de la ventana principal oWnd:oClient:aWnd, para detectar si la ventana a actualizar esta abierta, y luego recorro el array de controles de la ventana, y detecto el control a acutalizar ...
... ha funcionado aunque el usuario sea un palurdo. Utiliza la variable cargo que tienen los objetos Ventanas. Ejemplo if ASCAN( oWndMain:oWndClient:aWnd, {|x| x:cargo == "VENTAS"} ) == 0 // comparas si ya existe x:cargo devuelve cero // si es cero significa que x:cargo está vacio y por eso entra ...
Utiliza la variable cargo que tienen los objetos Ventanas. Ejemplo if ASCAN( oWndMain:oWndClient:aWnd, {|x| x:cargo == "VENTAS"} ) == 0 // comparas si ya existe x:cargo devuelve cero // si es cero significa que x:cargo está vacio y por eso entra en esta rama /* Aqui viene ...
Utiliza la variable cargo que tienen los objetos Ventanas. Ejemplo if ASCAN( oWndMain:oWndClient:aWnd, {|x| x:cargo == "VENTAS"} ) == 0 // comparas si ya existe x:cargo devuelve cero // si es cero significa que x:cargo está vacio y por eso entra en esta rama /* Aqui viene ...
... - is it me? Is that correct way? Hi, I use tis code to check if window with the same title is already opened: for i := 1 to len(oWnd:oWndclient:aWnd) if 'MDICHILD'$oWnd:oWndclient:aWnd[i]:classname() jcaption:=alltrim(oWnd:oWndclient:aWnd[i]:cCaption) if jcaption==alltrim(newcaption) //Alreadyhave ...
... I want to bring that window 'to the front'. I need a oWnd:Maximize() function like the oWnd:Restore() to do this? (I tried: wndMain():oWndClient:aWnd[1]:setFocus() as suggested by James Bott on this forum - but this only brings the window to the front, not maximise it if it is restored.) 3. The ...
Hola Gente Cuando una ventana x tiene el foco, como puedo saber numericamente, de que ventana se trata?. Lo puedo hacer recorriendo aWnd y preguntando por el nombre de la que tiene el foco; no obstante existe alguna otra manera, mas directa?