Search found 16 matches
- Fri Feb 18, 2011 10:21 am
- Forum: Windows
- Topic: [SOLVED] SysTray Position
- Replies: 12
- Views: 3111
Re: [SOLVED] SysTray Position
But what if the taskbar is on the upper side , or left or right side?
- Wed Jan 19, 2011 11:53 am
- Forum: Windows
- Topic: Windows 7 sizing
- Replies: 18
- Views: 4554
Re: Windows 7 sizing
There's a lot to be said for both views. But in the end it is MS that dictates what we have to do, even if they caused the problem . And the dpi scaling in Vista/W7 caused a lot of problems. MS says that you have to code dpi-aware, and calls it 'best practice', the usual term they use when they ...
- Mon Jan 17, 2011 10:57 am
- Forum: Windows
- Topic: Windows 7 sizing
- Replies: 18
- Views: 4554
Re: Windows 7 sizing
For all practial purposes, your application runs as if it was running on a Windows XP box with a different screen size and a DPI of 96. Unfortunately, except for WinApi, there's no way to find out the 'adjusted' screen size, as DesktopWidth() reports the physical screen size regardless of DPI ...
- Sun Jan 16, 2011 9:09 am
- Forum: Windows
- Topic: Windows 7 sizing
- Replies: 18
- Views: 4554
Re: Windows 7 sizing
Yeah, found many, but haven't found anything that I could turn into code yet. Otherwise I wouldn't try my luck here :-)
From what you describe I assume you do not mean large fonts in the UI but the DPI-scaling.
Instead of disabling it ( overriding the user settings .. ) I simply adapt like this ...
From what you describe I assume you do not mean large fonts in the UI but the DPI-scaling.
Instead of disabling it ( overriding the user settings .. ) I simply adapt like this ...
- Sat Jan 15, 2011 10:32 am
- Forum: Windows
- Topic: Windows 7 sizing
- Replies: 18
- Views: 4554
Re: Windows 7 sizing
When switching Windows 7 to large fonts, it seems to fully upscale the whole window, all gadgets etc. In other words: under Windows XP I open a window at 10,10 with a size of 100,100. When opening the same window under Windows 7, with fonts set to large, it appears that Windows 7 (Aero?) upscales ...
- Fri Oct 08, 2010 8:47 am
- Forum: Windows
- Topic: want to do some basic things with api
- Replies: 15
- Views: 3475
Re: want to do some basic things with api
I totally agree, an automated behind-your-back bot installer ... ?Fluid Byte wrote:Now you are mentioning IRC and bot programming ...
- Wed Sep 22, 2010 7:48 am
- Forum: Windows
- Topic: MS SQL 2005 - Windows authentication
- Replies: 3
- Views: 1496
Re: MS SQL 2005 - Windows authentication
It's a 2-step thing:
First the hard part: make a user-odbc* with the help of odbc manager, and save it.
This is where you select if network login or user/pass is used to access the database.
You can validate the login here before saving.
This part I did not by coding, but manually in systemmanager ...
First the hard part: make a user-odbc* with the help of odbc manager, and save it.
This is where you select if network login or user/pass is used to access the database.
You can validate the login here before saving.
This part I did not by coding, but manually in systemmanager ...
- Tue Sep 21, 2010 8:31 am
- Forum: Windows
- Topic: MS SQL 2005 - Windows authentication
- Replies: 3
- Views: 1496
Re: MS SQL 2005 - Windows authentication
I did through odbc, that worked ok for me.
- Sun Aug 01, 2010 10:41 am
- Forum: Windows
- Topic: problem with setactivewindow in mdi gadget
- Replies: 7
- Views: 2434
Re: problem with setactivewindow in mdi gadget
Far more elegant. Tnxnetmaestro wrote:So to set a specific MDIChild to the front and focused you would:Or, optionally you could use one of the listed parameters to rearrange them all.Code: Select all
SetGadgetState(#mdigadget, #mdichild_<whichever>)
- Sat Jul 31, 2010 2:54 pm
- Forum: Windows
- Topic: problem with setactivewindow in mdi gadget
- Replies: 7
- Views: 2434
Re: problem with setactivewindow in mdi gadget
no, but tnx to your remark I tried BringWindowToTop_. That works. Rather use puer PB, but than again .. as long as it gets the job done.
so problem solved.
so problem solved.
- Sat Jul 31, 2010 2:29 pm
- Forum: Windows
- Topic: problem with setactivewindow in mdi gadget
- Replies: 7
- Views: 2434
problem with setactivewindow in mdi gadget
With a lot of open windows in a mdi gadget I want to prevent opening windows twice by bringing the allready open window to the front but it seems setactivewindow does not work within a mdi gadget? Selecting the window menu-entry works so there must be a way?
I understand that I cannot steal focus ...
I understand that I cannot steal focus ...
- Wed Jul 21, 2010 11:00 pm
- Forum: Windows
- Topic: how to not scale your interface in Vista?
- Replies: 12
- Views: 4175
Re: how to not scale your interface in Vista?
Most of my programs are simple calculation programs, i/o for PIC/DVM/RFID/smartcards etc., just for personal use. PB is just a tool to me, and quite a good one because it allows to program loosely and quick and produce results. Never expected them not working on Vista ..
- Wed Jul 21, 2010 8:36 am
- Forum: Windows
- Topic: how to not scale your interface in Vista?
- Replies: 12
- Views: 4175
Re: how to not scale your interface in Vista?
"The clipped text string is due to the fact that the TextOut function is not supported by DPI virtualization and so the text is essentially double scaled. In fact, only a portion of the Win32® APIs support DPI virtualization in Windows Vista"
So the win32 API's did not get re-written comletely in ...
So the win32 API's did not get re-written comletely in ...
- Tue Jul 20, 2010 8:46 am
- Forum: Windows
- Topic: how to not scale your interface in Vista?
- Replies: 12
- Views: 4175
Re: how to not scale your interface in Vista?
Nederlander?
Yep, uit het noorden ...
What about:
Debug 96.0 / GetDeviceCaps_(GetDC_(0), #LOGPIXELSX)
Should work as well and you don't have to use the registry. :wink:
Started with that but for some reason didn't work, so I gave up. Later I discovered I used 8 for logpixelsx instead of 88 ...
Yep, uit het noorden ...
What about:
Debug 96.0 / GetDeviceCaps_(GetDC_(0), #LOGPIXELSX)
Should work as well and you don't have to use the registry. :wink:
Started with that but for some reason didn't work, so I gave up. Later I discovered I used 8 for logpixelsx instead of 88 ...
- Sat Jul 17, 2010 12:17 pm
- Forum: Windows
- Topic: how to not scale your interface in Vista?
- Replies: 12
- Views: 4175
Re: how to not scale your interface in Vista?
didn't try hard enough :lol:
Solved it by reading 'LogPixels' from registry and scaling fonts accordingly before opening a window.
;- get the font scaling of the system
result = RegOpenKeyEx_(#HKEY_LOCAL_MACHINE,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontDPI",0,#KEY_READ,@keyhandle)
If ...
Solved it by reading 'LogPixels' from registry and scaling fonts accordingly before opening a window.
;- get the font scaling of the system
result = RegOpenKeyEx_(#HKEY_LOCAL_MACHINE,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontDPI",0,#KEY_READ,@keyhandle)
If ...