Fellows,
I've searched the forums and found a lot (too much, to be honest) of information on the subject DDT-dialogs, their measurements, dialog units versus pixels etc. etc.
But, unfort. I did'nt find that one-and-only simple trick to create dialogs that always fit on every screen resolution.
I understand there is a relation with de default font. So the following 'formula' should do the trick, is'nt it?:
1. Create a dummy dialog (measurements x and y to be 0)
2. Retrieve the size of the text to display in a label, on a button or whatsoever
3. Translate this size from pixel format to dialog unit format
4. Resize the dummy dialog and/or control (and re-center it, because when resizing a dialog it does not stay in its original place - odd thing!?)
5. Finally, display the dialog (DIALOG SHOW)
Can someone provide this code or give me a hint in the right direction? My dialogs are always very 'sharp' on the machine I use to create them, but on other machines the same dialogs sometimes show up with invisible text, too small buttons and that sort of things.
Desperately yours,
------------------
mailto:[email protected][email protected]</A>
www.basicguru.com/zijlema/
I've searched the forums and found a lot (too much, to be honest) of information on the subject DDT-dialogs, their measurements, dialog units versus pixels etc. etc.
But, unfort. I did'nt find that one-and-only simple trick to create dialogs that always fit on every screen resolution.
I understand there is a relation with de default font. So the following 'formula' should do the trick, is'nt it?:
1. Create a dummy dialog (measurements x and y to be 0)
2. Retrieve the size of the text to display in a label, on a button or whatsoever
3. Translate this size from pixel format to dialog unit format
4. Resize the dummy dialog and/or control (and re-center it, because when resizing a dialog it does not stay in its original place - odd thing!?)
5. Finally, display the dialog (DIALOG SHOW)
Can someone provide this code or give me a hint in the right direction? My dialogs are always very 'sharp' on the machine I use to create them, but on other machines the same dialogs sometimes show up with invisible text, too small buttons and that sort of things.
Desperately yours,
------------------
mailto:[email protected][email protected]</A>
www.basicguru.com/zijlema/
Comment