Page 1 of 1
How to bind an object to a xBrowser?
Posted: Tue Nov 27, 2007 12:10 am
by Otto
How can I display the selected value during scrolling up and down a xBrowser with the Up and down keys?
Browser
Posted: Tue Nov 27, 2007 12:26 am
by TimStone
Otto,
I have many screens where I have a list on the bottom half of the dialog and the edit boxes on the top. As the browser moves up and down through the database, the data changes in the edit controls.
The process is simple ( if this is what you are asking ). Simply mark all the controls UPDATE and do a ON CHANGE oDlg:update() on the browser control.
I have it even simpler because I use data objects ( James tData is a class derived from, and supplementing, tDatabase ). Speed is quite nice. I like it much better then the windows method of using a popup to display an edit dialog.
I hope this was the question you were asking.
Tim
Posted: Tue Nov 27, 2007 5:50 am
by Otto
Hello Tim,
Thank you for your answer. I can’t find bChange in the data declaration of xbrowse nor in the 'new method' or a
ON CHANGE clause in the ch-files for xbrowse and the manual.
Therefore I thought oBrow:bChange could not work.
Have you seen my little tool to browse through the Fivewin demos? I would like exactly this behavior you describe:
>I have many screens where I have a list on the bottom half of the dialog and the edit boxes on the top. As the browser moves up and down through the database, the data changes in the edit controls.
Regards,
Otto
Posted: Tue Nov 27, 2007 9:05 am
by Antonio Linares
Otto,
You can use oXBrowse:bChange = { || ... }
Posted: Tue Nov 27, 2007 11:38 am
by Otto
Thank you.
Regards,
Otto
Posted: Tue Nov 27, 2007 4:33 pm
by James Bott
Otto,
>I can’t find bChange in the data declaration of xbrowse nor in the 'new method' or a ON CHANGE clause in the ch-files for xbrowse and the manual.
Don't forget that classes may inherit from another class. TXbrowse inherits from TControl and TControl inherits from TWindow, so you need to check all three classes when you are looking for a var or method.
Did you ever get the TData lib compiled?
James
Posted: Tue Nov 27, 2007 7:25 pm
by Otto
Hello James,
I am finishing converting my clipper/fivewin main application to Harbour/Fivewin.
That is more work than I thought. So much “litter” in all those years inside my program.
We have to make so many changes under time pressure.
But I am very happy with the new FHW – WINHOTEL program.
Therefore I didn’t start changing to your class yet.
I have it and as soon as I have some time I start changing.
Regards,
Otto
Posted: Wed Nov 28, 2007 4:33 am
by James Bott
Otto,
>I am finishing converting my clipper/fivewin main application to Harbour/Fivewin.
...
>Therefore I didn’t start changing to your class yet.
It sounds like the best way to do it.
James