Due to enormous amounts of spam, the forum has been set to read-only mode.



Reply to topic  [ 5 posts ] 
Brilliant features 
Author Message
User avatar

Joined: Sat Nov 22, 2003 7:47 pm
Posts: 2547
Location: Denmark
Post Brilliant features

After having explored the new features of the dataserver, I'm impressed.

The Explore has made my own Explorer module almost redundant. (I can have 2 explorer windows open in my player).
I was expecting the Explore to use a separate window from CATraxx itself, so it wouldn't interfere with the present content of the CATraxx explorer. But having tried it for a while, I don't think it matters.

The EditWindow is also great.
As it turned out, you can still not have two edit windows open for the same table.
That would be convienient, when checking/copying content from/to an "identical" artist/person.
Also, if you have 2 edit windows open, you only have access to the last one. You will have to close that window before you cann access the first one.

Could you please explain the possible use of CloseEditWindow, EditWindowOpen and the returned handle of the window.

_________________
Kind regards
Thomas Hamstrup

HAP Software (http://www.hamstrup.dk)

Using Windows 8 PRO 64-bit and CATraxx 9.44


Thu Aug 27, 2009 8:47 am
Profile WWW
Site Admin
User avatar

Joined: Fri Nov 22, 2002 3:52 pm
Posts: 13748
Post Re: Brilliant features

hamsen wrote:
After having explored the new features of the dataserver, I'm impressed.

The Explore has made my own Explorer module almost redundant. (I can have 2 explorer windows open in my player).
I was expecting the Explore to use a separate window from CATraxx itself, so it wouldn't interfere with the present content of the CATraxx explorer. But having tried it for a while, I don't think it matters.

The EditWindow is also great.
As it turned out, you can still not have two edit windows open for the same table.

That should work fine (note that, unless you move the first edit window, the second window will cover the first window). Do you get an error?

Quote:
That would be convienient, when checking/copying content from/to an "identical" artist/person.
Also, if you have 2 edit windows open, you only have access to the last one. You will have to close that window before you cann access the first one.

No, you should be able to switch between them.

Quote:
Could you please explain the possible use of CloseEditWindow, EditWindowOpen and the returned handle of the window.

You can use the window handle to, for example, bring the window to the front with SetForegroundWindow. The Audio Player will do this if you click Edit when a data entry window is already open (EditWindowOpen returns True). You can also change the window position with SetWindowPlacement.

You should close all open data entry windows by calling CloseEditWindow when you close the database.

_________________
Fredrik Nordbakke
www.fnprg.com


Thu Aug 27, 2009 3:09 pm
Profile WWW
User avatar

Joined: Sat Nov 22, 2003 7:47 pm
Posts: 2547
Location: Denmark
Post Re: Brilliant features

FredrikN wrote:
That should work fine (note that, unless you move the first edit window, the second window will cover the first window). Do you get an error?


Attachment:
Capture.JPG


FredrikN wrote:
No, you should be able to switch between them.


At first they are covering each other.
Then I move one window.
Now I try to get focus on the first called, but that is not possible.
Only after closing the last called, I get focus on the first one.


You do not have the required permissions to view the files attached to this post.

_________________
Kind regards
Thomas Hamstrup

HAP Software (http://www.hamstrup.dk)

Using Windows 8 PRO 64-bit and CATraxx 9.44


Thu Aug 27, 2009 4:06 pm
Profile WWW
Site Admin
User avatar

Joined: Fri Nov 22, 2002 3:52 pm
Posts: 13748
Post Re: Brilliant features

hamsen wrote:
FredrikN wrote:
That should work fine (note that, unless you move the first edit window, the second window will cover the first window). Do you get an error?


Attachment:
Capture.JPG


FredrikN wrote:
No, you should be able to switch between them.


At first they are covering each other.
Then I move one window.
Now I try to get focus on the first called, but that is not possible.
Only after closing the last called, I get focus on the first one.

Are you opening both windows via the data server interface, or did you open the first one in CATraxx?

_________________
Fredrik Nordbakke
www.fnprg.com


Thu Aug 27, 2009 8:40 pm
Profile WWW
User avatar

Joined: Sat Nov 22, 2003 7:47 pm
Posts: 2547
Location: Denmark
Post Re: Brilliant features

hamsen wrote:
Both are via the data server.

Are you opening the data entry windows from the explorer? This will not work as the windows are opened as modal windows.

However, this should be no problem with EditRecord. This should work fine (also shows how to change the window position):
Code:
var
  h: hWnd;
  wp: TWINDOWPLACEMENT;
begin
  h := DataServer.EditRecord('ArtistPerson', 1);
  SetForegroundWindow(h);
  h := DataServer.EditRecord('ArtistPerson', 2);
  GetWindowPlacement(h, @wp);
  wp.rcNormalPosition := Rect(wp.rcNormalPosition.Left + 50, wp.rcNormalPosition.Top + 50,
      wp.rcNormalPosition.Right + 50, wp.rcNormalPosition.Bottom + 50);
  SetWindowPlacement(h, @wp);
  SetForegroundWindow(h);
end;

_________________
Kind regards
Thomas Hamstrup

HAP Software (http://www.hamstrup.dk)

Using Windows 8 PRO 64-bit and CATraxx 9.44


Thu Aug 27, 2009 9:18 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.