Subordinate browsers

Subordinate browsers

Postby Natter » Mon Oct 21, 2024 1:09 pm

Hi,

As I work, I need to subordinate one xbrowser to another. Is it possible to do this ?
Natter
 
Posts: 1222
Joined: Mon May 14, 2007 9:49 am

Re: Subordinate browsers

Postby nageswaragunupudi » Mon Oct 21, 2024 2:45 pm

Please clarify.
You mean linked browses?
Regards

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

Re: Subordinate browsers

Postby paquitohm » Mon Oct 21, 2024 5:43 pm

Perhaps subordinate browses is a style of linked browse where browse number one shows parents and browse number two shows childs each parent
paquitohm
 
Posts: 266
Joined: Fri Jan 14, 2022 8:37 am

Re: Subordinate browsers

Postby Natter » Mon Oct 21, 2024 6:07 pm

There are 2 xBrowse - oBrw1 and oBrw2. I need to nest oBrw2 into oBrw1.
Code: Select all  Expand view  RUN
SetParent(oBrw2:hWnd, oBrw1:hWnd)

I.e. I wanted to make a tree of nested xBrowse controls
However, nothing is working out :(
Natter
 
Posts: 1222
Joined: Mon May 14, 2007 9:49 am

Re: Subordinate browsers

Postby nageswaragunupudi » Mon Oct 21, 2024 8:05 pm

Something like this?
If so it can be customized for your exact needs.

Image

code:
Code: Select all  Expand view  RUN
function ParentChildBrw

   field CODE
   local oDlg, oChild

   USE CUSTOMER NEW SHARED VIA "DBFCDX"
   SET ORDER TO TAG STATE
   USE STATES NEW SHARED VIA "DBFCDX"
   SET RELATION TO CODE INTO CUSTOMER SCOPED
   GO TOP

   oChild  := XBROWSER "CUSTOMER" COLUMNS "STATE","CITY","SALARY" NOMODAL
   XBROWSER "STATES" SETUP ( oBrw:bChange := { || oChild:Refresh() } )

return nil
Regards

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

Re: Subordinate browsers

Postby Natter » Mon Oct 21, 2024 9:11 pm

Yeah, it looks like it.
Natter
 
Posts: 1222
Joined: Mon May 14, 2007 9:49 am


Return to FiveWin for Harbour/xHarbour

Who is online

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