Can I use TXBrowse class from Resource?

Postby dutch » Tue Feb 19, 2008 4: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
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Postby nageswaragunupudi » Tue Feb 19, 2008 4: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
User avatar
nageswaragunupudi
 
Posts: 10624
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby dutch » Tue Feb 19, 2008 10:19 am

Thanks nageswaragunupudi
Regards,
Dutch
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 72 guests