Products > Test Equipment

Free HP3478A multimeter control program.

<< < (15/18) > >>

lmester:
Miti,

My program was written using a fixed size window. This was done because I'm not an expert Windows GUI programmer. I don't want to write and debug all of the extra code that's needed for a resizable window.

It's sized to fit on an 800x600 desktop. It may be time to bump that up to a bigger size. Possibly 1024x768. That will be about 28% larger.

I have two 1280x1024 monitors on my PC. These monitors are over 10 years old. Current monitors are wide screen format with much higher resolution.

The important question is: How many people are still using 800x600 as their desktop resolution?



coromonadalix:
unless you are using an old lappy or pc ??     I think  1024x768  would be nicer ?

Better on my 32"  monitors  loll

Miti:

--- Quote from: lmester on December 27, 2022, 04:29:36 am ---The important question is: How many people are still using 800x600 as their desktop resolution?

--- End quote ---

Not many I would assume. If you do some pcb design you definitely need full hd and eventually two monitors. I recently changed my lab pc from a NUC with a 1680x1050 monitor to an old Lenovo laptop with full 1080 display plus the old monitor as secondary. You don’t need to put any extra effort into this program for me, I just didn’t know where the issue was.

Miti:

--- Quote from: J-R on December 25, 2022, 06:53:20 am ---Try the disable display scaling check box.  Sample photo attached.

--- End quote ---

That doesn’t work for me.

lmester:


I have added a new version of the program with a larger main window size. It's now sized for a 1024x768 or larger desktop. To do this I had to add an adjustable scale for the GUI object locations and for adjustable font sizes.

Miti

This won't directly fix the windows 7 scaling problem but will allow you to correct it.

Look in the source code at line 156. This is where screen scaling and font size is set. Try decreasing the three font sizes until the text displays properly. You'll need to re-compile the code after adjusting these settings.


--- Code: ---'   Screen Scaling:
'   1.0 is 750x550,  1.25 will set screen to 960x687


    xs=1.25              'X axis scale multiplier
    ys=1.25              'Y axis scale multiplier   
    FontMeter$="64"      'meter display font size 48-64
    FontMain$="14"       'Main window text font size 10-14
    FontTerminal$="12"   'Instrument status font size 10-12


    nomainwin
   
 
    WindowWidth = 750*xs ' 960 '750
    WindowHeight = 550*ys '687  '550
    UpperLeftX=int((DisplayWidth-WindowWidth)/2)
    UpperLeftY=int((DisplayHeight-WindowHeight)/2)
 
 
 
 
 
 


    '-----Begin menu code


    menu #main, "&File  ",_
                "Log file"     , LogFile,_
                "Load settings", [LoadSet],_
                "Save settings", [SaveSet],|,_
                "Exit"         , [quit.main]
    menu #main, "Settings"     ,_
                "Default settings", [LoadDef],_
                "Read/Write calibration", [CalWin],_
                "Edit calibration", [CalEdWin]
    '-----End menu code

    '-----Begin GUI objects code
    TexteditorColor$ = "white"
    TextboxColor$ = "white"
    texteditor #main.Terminal,                                                               480*xs, 275*ys, 255*xs, 215*ys
    groupbox #main.GBTrigger, "Trigger",                                                     485*xs,  92*ys,  95*xs, 145*ys
    groupbox #main.GBAutoZ, "Auto zero",                                                     340*xs, 247*ys, 125*xs,  75*ys
    groupbox #main.GBRange, "Range",                                                         10*xs, 147*ys, 300*xs, 175*ys
    groupbox #main.GBFunction, "Function",                                                   10*xs,  92*ys, 455*xs,  50*ys
    groupbox #main.GBLog, "Log file",                                                        10*xs, 327*ys, 170*xs,  90*ys


--- End code ---

The source code is included in the zip file. Also, the compiler is freeware.  you can download it from here:http://www.bbcbasic.co.uk/lbb/

Navigation

[0] Message Index

[#] Next page

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod