T O P I C R E V I E W |
dlw21 |
Posted - 03/18/2003 : 3:30:58 PM Hello,
I've given a colleague an OPK file that contains a DLL I wrote using Dialog Builder and the corresponding supporting OGS and INI files. It's a simple dialog -- no tabs, a couple of edit boxes, some static text, a graph placeholder. It works fine for him, except for one very annoying thing.
The dialog box that pops up contains all the elements I gave it in VC++ (6.0), but some of the text labels are truncated, despite there being more than enough room on the dialog for everything to be displayed properly. The same exact code generates a dialog box on my machine that looks perfect.
We both have the same OS (WinXP Pro) and the same versions of VC++ (6.0) and OriginPro (7SR3).
Has anyone seen this sort of thing before? Any remedies?
TIA, Dave
|
3 L A T E S T R E P L I E S (Newest First) |
dlw21 |
Posted - 03/19/2003 : 10:15:21 AM All of your suggestions about the font seem to be on the mark.
I run my desktop at 1600x1200 using the large (120 dpi) font setting. The other desktop is running at a lower resolution with the default font size (96 dpi).
I switched my settings to 96 dpi, and lo and behold, the text of my dialog box gets truncated the same way!
Is this a Windows or DialogBuilder issue? My gut feeling is that it's a problem in Windows. In VC++, the font size change resulted in the text being truncated also -- I had to widen the boxes around the text in order to get it displayed. Recompiling and reinstalling the DLL restored the text. When I switched back to large fonts (which requires rebooting for some reason), everything looked a-ok.
Anyone know good techniques to ensure that this problem can be avoided? I'll try playing with the text boxes and placement of the widgets in the window to see if that helps, but I'd like to find a solution that wouldn't require trial & error debugging. I also don't want to be stuck developing GUIs in the smaller font size.
Scott, if you still think it would help, I can send the OPK file to tech support.
Dave
|
hajo_old |
Posted - 03/19/2003 : 06:07:33 AM Hi,
the screen resolution sounds really good as reason for the described effects. Another thing could be the standard font?!
Hajo
-- -- Dipl.-Ing. Hans-Joerg Koch Siemens VDO, Regensburg
SVDO_Origin1 |
rlewis |
Posted - 03/18/2003 : 5:28:49 PM I'n not sure if this is the cause of your problem but Check screen resolution of the two machines ... In my experience DialogBuilder and some other user objects often look quite differently when the screen resolution changes ... |
|
|