F francisco cobos Member Licensed User Longtime User Oct 21, 2009 #1 Is there any way to know at runtime the resolution in a PC desktop? I would like to launch from one basic4ppc aplication (main program) other basic4 application whith several resolution that I have put in the designer.
Is there any way to know at runtime the resolution in a PC desktop? I would like to launch from one basic4ppc aplication (main program) other basic4 application whith several resolution that I have put in the designer.
agraham Expert Licensed User Longtime User Oct 21, 2009 #2 What do you mean by "resolution". Is it the logical dpi (dots per inch) that Windows is assuming for the screen or is it the physical size of the screen that you want?
What do you mean by "resolution". Is it the logical dpi (dots per inch) that Windows is assuming for the screen or is it the physical size of the screen that you want?
F francisco cobos Member Licensed User Longtime User Oct 22, 2009 #3 agraham said: What do you mean by "resolution". Is it the logical dpi (dots per inch) that Windows is assuming for the screen or is it the physical size of the screen that you want? Click to expand... I would like to know the size that Windows is assuming for the screen (I think). I have a camera application (using your webcam dll) working in my company, but some users have desktop resolution fixed at 768x1024 and others at 980x1280. :sign0085:
agraham said: What do you mean by "resolution". Is it the logical dpi (dots per inch) that Windows is assuming for the screen or is it the physical size of the screen that you want? Click to expand... I would like to know the size that Windows is assuming for the screen (I think). I have a camera application (using your webcam dll) working in my company, but some users have desktop resolution fixed at 768x1024 and others at 980x1280. :sign0085:
agraham Expert Licensed User Longtime User Oct 22, 2009 #4 Use the Display object from FormExDesktop, that will give you the display size on which a Form is displayed and can cope with multiple monitors. You don't need to be using FormEx to use the Display object.
Use the Display object from FormExDesktop, that will give you the display size on which a Form is displayed and can cope with multiple monitors. You don't need to be using FormEx to use the Display object.
F francisco cobos Member Licensed User Longtime User Oct 29, 2009 #5 agraham said: Use the Display object from FormExDesktop, that will give you the display size on which a Form is displayed and can cope with multiple monitors. You don't need to be using FormEx to use the Display object. Click to expand... Thank you very much, I have use your solution and it works well: Sub App_Start Form1.Show display.New1 Msgbox(display.Width) Msgbox(display.Height) End Sub
agraham said: Use the Display object from FormExDesktop, that will give you the display size on which a Form is displayed and can cope with multiple monitors. You don't need to be using FormEx to use the Display object. Click to expand... Thank you very much, I have use your solution and it works well: Sub App_Start Form1.Show display.New1 Msgbox(display.Width) Msgbox(display.Height) End Sub