I think that is modal but the read istead of the form Set StateOfWindowsSelected to modal (default)/normal (In vb it can be set simply form.Show vbModal I think that will be usefull create a class form) So each developer can choice in his porting from two choice Make it a modal window not require change of prg istead give liberty to user but must update program flow If must made a choice I choice modal
-----Messaggio originale----- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di Pritpal Bedi Inviato: lunedì 16 giugno 2008 1.05 A: harbour@harbour-project.org Oggetto: [Harbour] Multi-Window GT - New Implementation Hello Viktor, all <<< hb_wSelect( [<nNewSelectedWnd>] ) -> nPrevSelectedWnd hb_wOpen( ... ) -> <wnd> hb_wClose( wnd ) hb_wDispOut( wnd, "Text" [, cnColor ] ) hb_wDispOutAt( wnd, 10, 10, "Text" [, cnColor ] ) hb_wSetColor( wnd [, cnColor ] ) -> <cnOldColor> hb_wSetPos( wnd, r, c ) hb_wRow( wnd ) -> r hb_wCol( wnd ) -> c hb_wBox( wnd, ... ) hb_wShadow( wnd[, nMode ] ) -> <nOldMode> hb_wMove( wnd, ... ) hb_wShow( wnd ) hb_wHide( wnd ) hb_wMaxRow( wnd ) hb_wMaxCol( wnd ) hb_wList() -> <aWnd> (list of all open windows) >>> <<< After such call all regular display functions will be rerouted to the selected window. Existing classes and other program parts which are supposed to keep writing to the same window (like TBrowse), should internally store the selected window at creation time, and select this whenever doing any output. >>> I am ready to provide the multi-window in above said manner. All output/input goes to window selected with hb_wSelect( [<nNewSelectedWnd>] ) -> nPrevSelectedWnd though other windows may be viewable by a click. It will need few more methods to be implemented in core GT. The skelton will be like: nWnd := hb_wCreate/Open( nTop, nLeft, nBottom, nRight ) /* NOTE: Base window will ever be 0 */ if nWnd > 0 ? SetAppWindow() // 1 SetColor( 'N/W' ) CLS @ 10,10 SAY [x]Harbour' @ 12,10 GET someVrbl READ Hb_wDestroy/Close( nWnd ) endif Now suppose base window is clicked by the user while nWnd is in READ state, how the GT should respond to it ? We may work on two angles: 1) Make it a modal window so that user is never allowed to click on base window. 2) Allow user to view the contents of base window then he is to click again on nWnd. If we agree on this I can start working on it. Basic prototype should be ready within a day or two. We can guard these method in core with a define also. Because these methods are additions and interfere nothing with thw core code, I suggest to keep these without guard. Awaiting opinions. Regards Pritpal Bedi -- View this message in context: http://www.nabble.com/Multi-Window-GT---New-Implementation-tp17855569p17855569.html Sent from the Harbour - Dev mailing list archive at Nabble.com. _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour