Inactive xBrowse on Main Windows

Inactive xBrowse on Main Windows

Postby dutch » Fri Jul 31, 2009 11:57 am

Dear All,

I create Main Windows and xBrowse. The problem is xBrowse on Main Windows is not active. It cannot click, scroll and any action but refresh() is still working.

Why I put xBrowse to main windows, because it is interface program. It is waiting for the record and automatic action some routine by loop (timer()).

What do I make mistake?

Regards,
Dutch
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: Inactive xBrowse on Main Windows

Postby nageswaragunupudi » Fri Jul 31, 2009 12:16 pm

Main Windows and xBrowse

Do you mean XBrowse on MDI Main window ?
To my knowledge no controls work on MDI main window.
If there is a way I am also very much interested to know.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10625
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Inactive xBrowse on Main Windows

Postby ukoenig » Fri Jul 31, 2009 1:40 pm

I agree with Rao,

it works only with a little help from a Dialog :

Image

I wanted to calculate the Browse-Width and Hight with using
oDlg0:nHeight and oDlg0:nWidth,
but it didn't work and I had to find out the Bottom (-133) - and Right-Border (-12) for the Browser,
for Dialog-Adjustment. Maybe it is possible with a Calculation ?
Code: Select all  Expand view

DEFINE WINDOW  oWnd  TITLE "xBROWSE - Colorselection"  MDI   MENU TMenu():New()

ACTIVATE WINDOW oWnd MAXIMIZED ;
ON INIT xBRW(oWnd)

// ------------------------------

FUNCTION xBRW(oWnd)
LOCAL oDlg0, oBrw

nMainStyle = nOR( WS_OVERLAPPED | WS_VISIBLE )

DEFINE DIALOG oDlg0  FROM 50, 50 TO 280, 200 OF oWnd STYLE nMainStyle PIXEL

oBrw  := TXBrowse():new( oDlg0 )

WITH OBJECT oBrw

      :nTop      := 0
      :nLeft     := 0
      :nBottom   := oDlg0:nHeight - 133
      :nRight    := oDlg0:nWidth - 12
      :SetArray( aBRCOLOR, .f. )

END

SetBrwStyle( oBrw )
oBrw:CreateFromCode()

ACTIVATE DIALOG oDlg0 NOWAIT ;
ON INIT oDlg0:Move( 50, 50, 280, 200, .f. )

RETURN NIL

 


Best Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Inactive xBrowse on Main Windows

Postby nageswaragunupudi » Fri Jul 31, 2009 4:33 pm

Mr Uwe

Thanks for the lead.
But this solution has problem. Child windows get created behind the dialog.
We need the xbrowse on the frame like the background, but functional
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10625
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Inactive xBrowse on Main Windows

Postby James Bott » Fri Jul 31, 2009 7:08 pm

>Child windows get created behind the dialog.

I believe this is a limitation of MDI. Personally, I do not like MDI.

Consider a SDI design with splitter on a main window and put the main browse on one side and the others on the other side. This way the user doesn't have to move windows around.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Inactive xBrowse on Main Windows

Postby mmercado » Fri Jul 31, 2009 8:05 pm

Hello Dutch:

dutch wrote:I create Main Windows and xBrowse. The problem is xBrowse on Main Windows is not active. It cannot click, scroll and any action but refresh() is still working.


Try by creating the control over oWnd:oWndClient ( not over "oWnd").

Best regards.

Manuel Mercado.
manuelmercado at prodigy dot net dot mx
User avatar
mmercado
 
Posts: 782
Joined: Wed Dec 19, 2007 7:50 am
Location: Salamanca, Gto., México

Re: Inactive xBrowse on Main Windows

Postby nageswaragunupudi » Fri Jul 31, 2009 11:12 pm

Mr Mercado's suggestion works.
But even this has a few side effects in that the MDI childs do not get painted properly at times and when maximized we cant see the close, resize and minimize buttons, etc.
Basically we should keep in mind that we are trying to do something not intended.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10625
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Inactive xBrowse on Main Windows

Postby dutch » Sat Aug 01, 2009 5:36 am

Dear All,

Thanks for all help&idea, It is true as Rao said but Manuel idea is work well for my solution. Because this screen is work for viewing the interface record.
Image
mmercado wrote:Hello Dutch:

dutch wrote:I create Main Windows and xBrowse. The problem is xBrowse on Main Windows is not active. It cannot click, scroll and any action but refresh() is still working.


Try by creating the control over oWnd:oWndClient ( not over "oWnd").

Best regards.

Manuel Mercado.

Thanks&regards,
Dutch
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 63 guests