
Search found 54 matches
- Sat Aug 16, 2008 10:19 pm
- Forum: Coding Questions
- Topic: tmOverhang GetTextMetrics()
- Replies: 8
- Views: 1613
- Sat Aug 16, 2008 9:20 pm
- Forum: Coding Questions
- Topic: tmOverhang GetTextMetrics()
- Replies: 8
- Views: 1613
- Sat Aug 16, 2008 8:25 pm
- Forum: Coding Questions
- Topic: tmOverhang GetTextMetrics()
- Replies: 8
- Views: 1613
tmOverhang GetTextMetrics()
Hi,
I'm creating a window that fits my text which is drawn using 2D functions. but when the text is italic the text width is incorrect.
Here is the code:
OpenWindow(0,10,10,100,100,"Test")
LoadFont(1,"Lucida Handwriting",25,#PB_Font_Bold|#PB_Font_Italic)
StartDrawing(WindowOutput(0))
DrawingFont ...
I'm creating a window that fits my text which is drawn using 2D functions. but when the text is italic the text width is incorrect.
Here is the code:
OpenWindow(0,10,10,100,100,"Test")
LoadFont(1,"Lucida Handwriting",25,#PB_Font_Bold|#PB_Font_Italic)
StartDrawing(WindowOutput(0))
DrawingFont ...
- Thu Aug 14, 2008 2:33 am
- Forum: Coding Questions
- Topic: Getting Program Exe directory?
- Replies: 12
- Views: 2410
- Thu Aug 14, 2008 2:23 am
- Forum: Coding Questions
- Topic: InternetGetConnectedState_
- Replies: 11
- Views: 1768
InternetGetConnectedState_
Its returning 0 even when I'm connected to the internet
why is this 


- Wed Aug 13, 2008 4:01 pm
- Forum: General Discussion
- Topic: LOGFONT
- Replies: 14
- Views: 3545
LOGFONT
In http://msdn.microsoft.com/en-us/library ... S.85).aspx
There is
lfHeight = -MulDiv(PointSize, GetDeviceCaps(hDC, LOGPIXELSY), 72);
How do I make it work with Purebasic? I want to get the font size.
There is
lfHeight = -MulDiv(PointSize, GetDeviceCaps(hDC, LOGPIXELSY), 72);
How do I make it work with Purebasic? I want to get the font size.

- Wed Aug 13, 2008 2:52 pm
- Forum: Coding Questions
- Topic: Font Requester with Default Font Style set!
- Replies: 4
- Views: 1204
- Wed Aug 13, 2008 2:06 pm
- Forum: Coding Questions
- Topic: Font Requester with Default Font Style set!
- Replies: 4
- Views: 1204
Font Requester with Default Font Style set!
How do I how a Font Requester with the font style set? PB's current function only supports getting the style 

- Wed Aug 13, 2008 12:13 pm
- Forum: Coding Questions
- Topic: Dailing and disconnecting internet connection
- Replies: 6
- Views: 1159
- Wed Aug 13, 2008 11:50 am
- Forum: Coding Questions
- Topic: Dailing and disconnecting internet connection
- Replies: 6
- Views: 1159
Dailing and disconnecting internet connection
How do I dail the users default connection and disconnect it?
- Wed Aug 13, 2008 9:42 am
- Forum: Coding Questions
- Topic: Getting Program Exe directory?
- Replies: 12
- Views: 2410
Getting Program Exe directory?
How do I get the path to the program's exe and its directory? 

- Mon Aug 11, 2008 8:11 pm
- Forum: Coding Questions
- Topic: Is net connected?
- Replies: 1
- Views: 686
Is net connected?
How do I check if the client computer is connected to the internet? 

- Mon Aug 11, 2008 1:56 am
- Forum: Coding Questions
- Topic: Adding files into the exe and extracting them
- Replies: 9
- Views: 2089
Adding files into the exe and extracting them
How do I add some zip files, dll's, images to the exe file and extract them when the program starts?
- Fri Aug 08, 2008 10:21 pm
- Forum: Coding Questions
- Topic: Megabtyes
- Replies: 16
- Views: 3827
- Fri Aug 08, 2008 5:55 pm
- Forum: Coding Questions
- Topic: Setting up program Global values from DLL
- Replies: 2
- Views: 605
Setting up program Global values from DLL
Hi,
I need to define some global values from the DLL. But its not working
The code in program
dllh=OpenLibrary(#PB_Any,"firstdll.dll")
Debug dllh
Debug CallFunction(dllh,"SetGlobalval")
MessageRequester("Test",DLLreturn$)
End
The code in DLL
ProcedureDLL SetGlobalval()
Global DLLreturn ...
I need to define some global values from the DLL. But its not working
The code in program
dllh=OpenLibrary(#PB_Any,"firstdll.dll")
Debug dllh
Debug CallFunction(dllh,"SetGlobalval")
MessageRequester("Test",DLLreturn$)
End
The code in DLL
ProcedureDLL SetGlobalval()
Global DLLreturn ...