Search found 54 matches

by Chirantha
Sat Aug 16, 2008 10:19 pm
Forum: Coding Questions
Topic: tmOverhang GetTextMetrics()
Replies: 8
Views: 1613

I don't see any difference :S.. Part of the D is missing plus.. that value is returning 0 :(
by Chirantha
Sat Aug 16, 2008 9:20 pm
Forum: Coding Questions
Topic: tmOverhang GetTextMetrics()
Replies: 8
Views: 1613

But for some reason tmOverhang is returning 0 :( how do I fix this? :(
by Chirantha
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 ...
by Chirantha
Thu Aug 14, 2008 2:33 am
Forum: Coding Questions
Topic: Getting Program Exe directory?
Replies: 12
Views: 2410

superadnim wrote:what? did you use 2 accounts to post and then reply?. I sense that your "voice engine" doesn't really need to know all those things you asked on the previous posts ... are you writing malware?.
Ofcourse not :twisted: Quit making me want to make one lol :twisted:
by Chirantha
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 :(
by Chirantha
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. :(
by Chirantha
Wed Aug 13, 2008 2:52 pm
Forum: Coding Questions
Topic: Font Requester with Default Font Style set!
Replies: 4
Views: 1204

Yes, but how do I get the name of the font.. its complex :(
by Chirantha
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 :(
by Chirantha
Wed Aug 13, 2008 12:13 pm
Forum: Coding Questions
Topic: Dailing and disconnecting internet connection
Replies: 6
Views: 1159

Its for my Talking Clock for the blind software. It has a emergency feature where the care taker of the blind will be sms's via the internet but since some people don't have boardband for 24X7 internet it would required the dial the connection send the message and close it. :)
by Chirantha
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?
by Chirantha
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? :(
by Chirantha
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? :(
by Chirantha
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?
by Chirantha
Fri Aug 08, 2008 10:21 pm
Forum: Coding Questions
Topic: Megabtyes
Replies: 16
Views: 3827

8 bits = 1 Byte
1024 Bytes = 1 Kilo-Byte
1024 Kilo-Bytes = 1 Mega-Byte
1024 Mega-Bytes = 1 Giga-Byte
1024 Giga-Bytes = 1 Triga-Byte
1024 Triga-Bytes = 1 Pica-Byte
1024 Pica-Bytes = 1 Yota-Byte
1024 Yota-Bytes = 1 Zita-Byte

*Names can be incorrect :oops:

Using a 8 byte number you can calculate the ...
by Chirantha
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 ...