The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Machine-dependent DB look?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

dlw21

USA
18 Posts

Posted - 03/18/2003 :  3:30:58 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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


rlewis

Canada
253 Posts

Posted - 03/18/2003 :  5:28:49 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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 ...
Go to Top of Page

hajo_old

Germany
141 Posts

Posted - 03/19/2003 :  06:07:33 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

dlw21

USA
18 Posts

Posted - 03/19/2003 :  10:15:21 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000