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: Sun Feb 17, 2008 06:15 PM

I'm very impress with TXBrowse but I've used TWbrowse from Resource?
How can I replace TWbrowse from resource with TXBrowse?
If it's possible, could I have an example pls.

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: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Can I use TXBrowse class from Resource?
Posted: Sun Feb 17, 2008 06:43 PM

Dutch:

Try using

oBrw:CreateFromResource( 10 ) // 10 is your browse ID

Instead

oBrw:CreateFromCode()

Regards

SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
XBrowse from resources
Posted: Mon Feb 18, 2008 01:41 AM

Hello Dutch,

I see, you are changing from TW / TC-Browse
to xBrowse.
You can have a look at the topic DB-Tools.
It is a nice sample, what you can do.
In the moment, it is a little bit to early,
to put the source in the forum, because
it is still a lot to do.
It might give you a overview of the handling.

Greetings from germany
Uwe

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.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Can I use TXBrowse class from Resource?
Posted: Mon Feb 18, 2008 09:09 AM

You should also change wbrowse to xbrowse in the resource file.

Regards



G. N. Rao.

Hyderabad, India
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Can I use TXBrowse class from Resource?
Posted: Mon Feb 18, 2008 09:35 AM

Hello NageswaraRao,

would you be so kind to post a little rc- and prg-file with a demo for
fwcodesnips.com.

Thanks in advance
Otto

Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Can I use TXBrowse class from Resource?
Posted: Mon Feb 18, 2008 09:57 AM
Hello Otto,

here is a small rc and prg sample

Test DIALOG DISCARDABLE 39, 40, 429, 272
STYLE WS_POPUP|WS_CAPTION|WS_SYSMENU
CAPTION "Test"
FONT 8, "Verdana"
BEGIN
  CONTROL "", 110, "TOutLook2003", 0x00800000, 3, 4, 111, 250
  CONTROL "Exit", 1001, "Button", WS_TABSTOP, 381, 234, 45, 20
  CONTROL "", 1000, "msctls_progress32", 0x00000000, 120, 238, 255, 16
  CONTROL "", 5000, "TXBrowse", WS_TABSTOP, 120, 6, 306, 224
END


DEFINE DIALOG oDlg RESOURCE "Test"
....
::oBrw := TXBrowse():New( oDlg )
....
::oBrw:CreateFromResource( 5000 )
kind regards

Stefan
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Can I use TXBrowse class from Resource?
Posted: Mon Feb 18, 2008 10:34 AM

Hello Stefan,

Thank you.
BTW, do you know how I could extend the VSX resource editor that I can select "TXBrowse"?
At the moment I can use copy and paste from a other project.
But it is not elegant.
Regards,
Otto

Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Can I use TXBrowse class from Resource?
Posted: Mon Feb 18, 2008 10:40 AM

Dear StefanHaupt,

Thanks, I've got it.

Dear Antonio,

In xbrowse.ch is not including REDEFINE command.
Have you done the transalator command for REDEFINE? or I have to do by ourselve.

Thanks&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: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Can I use TXBrowse class from Resource?
Posted: Mon Feb 18, 2008 11:35 AM
Otto,

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Can I use TXBrowse class from Resource?
Posted: Mon Feb 18, 2008 11:36 AM

Dutch,

> In xbrowse.ch is not including REDEFINE command.

We are going to implement it asap,

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Can I use TXBrowse class from Resource?
Posted: Mon Feb 18, 2008 12:55 PM

Thank you, Antonio,

I am surprised you can do this without adding a own control to the TOOLBOX.
Great. Are you using VSX much?
Regards,
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Can I use TXBrowse class from Resource?
Posted: Mon Feb 18, 2008 01:10 PM

Otto,

>
I am surprised you can do this without adding a own control to the TOOLBOX.
>

You can do the same using Borland resources workshop :-)

> Are you using VSX much ?

Sometimes, to learn how to use it.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Can I use TXBrowse class from Resource?
Posted: Mon Feb 18, 2008 01:12 PM
dutch wrote:Dear StefanHaupt,
In xbrowse.ch is not including REDEFINE command.
Have you done the transalator command for REDEFINE? or I have to do by ourselve.
Dutch

Actually you can use the same command for resources also like this:
@ 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.
Regards



G. N. Rao.

Hyderabad, India
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Can I use TXBrowse class from Resource?
Posted: Mon Feb 18, 2008 01:13 PM

NageswaraRao,

We should better have a REDEFINE XBROWSE ... to avoid confusions

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Can I use TXBrowse class from Resource?
Posted: Mon Feb 18, 2008 02:15 PM

Dear Antonio & nageswaragunupudi & Stefan

Thanks for your valuable help.

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)