Search found 97 matches

by square1
Jan 03, 2013 9:40
Forum: Windows
Topic: How do you create a DPI-aware program?
Replies: 10
Views: 2217

Re: How do you create a DPI-aware program?

Well, the mainfest file didn't cause any problems, but didn't make any noticeable difference either. My solution was expanding the gui layout a bit and setting a true type font, that's good enough for me.

Thanks for your help and happy New Year
by square1
Dec 29, 2012 12:06
Forum: Windows
Topic: How do you create a DPI-aware program?
Replies: 10
Views: 2217

Re: How do you create a DPI-aware program?

Thanks for the replies, I'll give Zippy's suggestion a shot tomorrow and see how that goes. I don't really want to learn how to make a truly dpi aware program, but rather to declare it as such so that Windows 7 stops messing up the layout. As a longer term solution, using GTK+ looks interesting, but...
by square1
Dec 28, 2012 8:09
Forum: Windows
Topic: How do you create a DPI-aware program?
Replies: 10
Views: 2217

Re: How do you create a DPI-aware program?

Thanks for your comments. My situation is that I have got a simple gui where a number of settings can be adjusted in comboboxes, listboxes and trackbars. The users this is aimed at aren't particularly IT literate - I wouldn't expect them to find their way around the control panel or use the right mo...
by square1
Dec 27, 2012 23:45
Forum: Windows
Topic: How do you create a DPI-aware program?
Replies: 10
Views: 2217

How do you create a DPI-aware program?

Hi, have you had the problem of guis being displayed differently across various versions of Windows and what did you do about it? I have been looking at http://msdn.microsoft.com/en-us/library/windows/desktop/dd464660%28v=vs.85%29.aspx#setprocessdpiaware_function It seems that the setprocessdpiaware...
by square1
Mar 26, 2012 23:48
Forum: General
Topic: simple graph function - please help me find the bug (solved)
Replies: 4
Views: 222

Re: simple graph function - please help me find the bug

Thanks for that, looks obvious now that someone pointed it out :) - still funny that the first code worked while the second one didn't
by square1
Mar 26, 2012 6:52
Forum: General
Topic: simple graph function - please help me find the bug (solved)
Replies: 4
Views: 222

simple graph function - please help me find the bug (solved)

Hi folks, I have made a simple graph function, which works quite fine (tested on XP): #include once "fbgfx.bi" ScreenRes 900,400,8 Declare Function graph (d() As Double,_ wide As Integer, _ high As Integer, _ bcol As Integer, _ fcol As Integer, _ gridcol As Integer, _ linewidth As Integer,...
by square1
Jun 30, 2011 14:43
Forum: Tips and Tricks
Topic: single and double mouse click
Replies: 4
Views: 1242

This also picks up slow single clicks screenres 640,480,32 Dim As Integer mx,my,btn Dim As Integer clicknum Dim As Integer clickflag,clickevent Dim As Double dblclick_interval=0.2,clicktime,t Do GetMouse mx,my,,btn If btn=1 And clickflag=0 Then'Button press detected clickflag=1 'set flag clicktime=T...
by square1
Jun 11, 2011 4:02
Forum: Beginners
Topic: Help on input
Replies: 4
Views: 738

by square1
Jun 10, 2011 22:42
Forum: Beginners
Topic: User Defined TYPE & END TYPE
Replies: 8
Views: 1060

You can make the info more accessible if you first create a type containing all the data you need for each variation of shed. Then put an array of this into another type with all the information about a shed class. Const varnum = 1000'number of possible variations as a constant so it can be easily c...
by square1
Jun 01, 2011 13:31
Forum: Windows
Topic: Windows Explorer current path
Replies: 11
Views: 2593

This will do it (tested on XP), just open one or more explorer windows and run the code #include once "windows.bi" #include "win\shellapi.bi" #define UNICODE #include once "disphelper/disphelper.bi" Dim As Zstring Ptr location Dim As HWND handle,whandle,foregroundhandle...
by square1
May 22, 2011 11:08
Forum: Projects
Topic: Internet-Explorer "wrapper"
Replies: 7
Views: 2011

For what it's worth, I've also made a disphelper IE wrapper: 'IEHelper #Define UNICODE #include Once "disphelper/disphelper.bi" Dim Shared As IDispatch Ptr objIEapp Sub IE_visible dhPutValue( objIEapp, "Visible = %b", TRUE ) End Sub Sub IE_invisible dhPutValue( objIEa...
by square1
Apr 05, 2011 10:29
Forum: General
Topic: Writing to the Skype C API
Replies: 3
Views: 2007

Got it working with Disphelper: #Define UNICODE #include "disphelper/disphelper.bi" Dim As bool clientrunning Dim As String smsMessage="Hello",smsNumber="+0012345678"'Number needs to be in international format with + followed by country code and phone No. without leadin...
by square1
Mar 29, 2011 4:15
Forum: Libraries
Topic: AutoItX3
Replies: 14
Views: 8529

I sent you an email with it, enjoy.
by square1
Mar 18, 2011 0:14
Forum: Tips and Tricks
Topic: Easy Windows API Tutorial
Replies: 24
Views: 19126

Great post. I am wondering whether there is a way of forcing the text within the edit box to wrap? Tried to look at MSDN, but just got more confused. edit: ...just found it on MSDN [slapforehead] If you do not specify ES_AUTOHSCROLL, the control automatically wraps words to the beginning of the next...

Go to advanced search