Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General Discussion » View Thread |
Messages 1 to 3 of 3 total |
More OT: One Form on Monitor A and 2nd Form on Monitor B How To? |
Sun, Feb 5 2006 1:05 AM | Permanent Link |
"GregF" | I have a client who wants to start using 2nd monitors
so he can have a graphic customer display going I have my main program displaying on the Screen A and at the same time need to have a form displaying on Screen B and as products are sold I need to update Screen A form for register operator and update Screen B with Price & Total and maybe pics at later stage can someone guide me in the right direction as I have no idea how to achieve this, I know how you can force a particular app to show on a monitor, but I have no idea how to have two forms essentially active at the same time and force second form onto monitor B. gregF |
Sun, Feb 5 2006 6:25 AM | Permanent Link |
"Roj Ash" | Just treat the two monitors as a single screen. So, if the first monitor is
1024 wide, form2.left needs to be 1024 to make it at the left edge of monitor 2 Personally I would just save and restore the form coordinates to/from ini or registry. That way he can move the form to where he wants it, and you don't need to care about the resolution of the two monitors. |
Sun, Feb 5 2006 6:48 PM | Permanent Link |
"Adam H." | Hi Greg,
Firstly - you can have as many forms viewable as you want - but the trick is not to use .Showmodal on the form that is the display only form. For instance: Let's say you create a blank application, and you have Form1 open - create a 2nd form (Form2). This will be your display form. Place a button on form1, and assign the code Form2.show to it. When you press this button, it will show the 2nd form, but still allow you to work on the first form. You will notice however, that you can switch between each form by clicking on them, and the non-active form will be moved behind the active form. This will not be an issue if you have a dual monitor with a form in each screen. However, to help you with this, look up help on the Form's DefaultMonitor property. This will allow you to assign a monitor to your form. (Alternatively, you could save the forms position in an ini file as Roj suggested, and allow the user to move them around) I use the Jedi JVCL library to do this. as for updating the information on Form2, you could have a timer on form1, set to a particular interval, which runs some script / queries, and updates labels or dataaware components on form2 everytime it's triggered. I used the same technique for a fishing comp program I wrote years ago. (Allowed the user to type in information, while on a dataprojector, it projected the live results up on a wall). In short though, as suggested above, play with either form.show, form.hide or the form.visible property, instead of form.showmodal. HTH Adam. "GregF" <footyfacts@yahoo.com> wrote in message news:41491F44-3276-4C54-B528-82AACBCB1B39@news.elevatesoft.com... > I have a client who wants to start using 2nd monitors > so he can have a graphic customer display going > > I have my main program displaying on the Screen A > and at the same time need to have a form displaying > on Screen B and as products are sold I need to > update Screen A form for register operator and > update Screen B with Price & Total and maybe pics at later stage > > can someone guide me in the right direction as I have no idea > how to achieve this, I know how you can force a particular app > to show on a monitor, but I have no idea how to have two forms > essentially active at the same time and force second form onto > monitor B. > > gregF > > |
This web page was last updated on Friday, March 29, 2024 at 03:30 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |