Can I use TXBrowse class from Resource?

User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Post by dutch »

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
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post by nageswaragunupudi »

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
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Post by dutch »

Thanks nageswaragunupudi
Regards,
Dutch
Post Reply