FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Can I use TXBrowse class from Resource?
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM

Can I use TXBrowse class from Resource?

Posted: Tue Feb 19, 2008 04:03 AM
Dear nageswaragunupudi,
Actually you can use the same command for resources also like this:
Code:

@ 0,0 XBROWSE FIELDS <fileds> HEADERS <headers,...> PIXEL OF oDllg ALIAS <alias>

< your other code for other xbrowse set up if any >

oBrw:CreateFromResource( <ID> ) // instead of oBrw:CreateFromCode()
// do not use oDlg:oClient := oBrw

ACTIVATE DIALOG oDlg CETNERED


When you use oBrw:CreateFromResource( <ID> ) the @ <row>,<col> are ignored. You have to use CreateFromResource( <ID> ) after all your other code speicifications for your xbrowse.


It has strange behavier as
- GoDown() after bottom line will show the data from the line before bottom line but it's ok when put bChange := {|| oBrw:Refresh() }
- ON DBLCLIK is not working but it's ok when use oBrw:bLDblClick := {||..}

Regards,
Dutch
Regards,

Dutch



FWH 2304 / 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)
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Can I use TXBrowse class from Resource?

Posted: Tue Feb 19, 2008 04:28 AM

Mr Dutch

>
GoDown() after bottom line will show the data from the line before bottom line but it's ok when put bChange := {|| oBrw:Refresh() }
>

I too have noticed some painting problems when we press down arrow key continuously when we reach the end of the table. Seems this is an issue to be resolved. I would like to look into the behavior in greater detail and report here seeking a solution. I am not sure but I noticed this problem only when I use txbrowse from resource but not when I create from code. May I know your experience? As I said already, I am not very sure. I have to narrow down the problem which happens to me occasionally.

>
ON DBLCLIK is not working
>

This is not implemented in the command translate as of now.

Hope these two issues will be resolved soon by FWH

Regards



G. N. Rao.

Hyderabad, India
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM

Can I use TXBrowse class from Resource?

Posted: Tue Feb 19, 2008 10:19 AM

Thanks nageswaragunupudi
Regards,
Dutch

Regards,

Dutch



FWH 2304 / 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)

Continue the discussion