Page 1 of 1
LOGFONT
Posted: Wed Aug 13, 2008 4:01 pm
by Chirantha
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.

Posted: Thu Aug 14, 2008 7:37 am
by gnozal
Code: Select all
lfHeight = Round(- PointSize * 72 / GetDeviceCaps_(hDC, #LOGPIXELSY), 1)
Where hDC identifies the device context, like hDC = GetDC_(WindowID(#MyWindow)) or hDC = GetDC_(GadgetID(#MyGadget)).
Posted: Thu Aug 14, 2008 8:36 am
by Fluid Byte
You don't get it gonzal, do you? Why the heck you think no one answered this? Because he's being very suspicious and it seems he's also usung two accounts. In fact I already posted the answer yesterday but removed it again since I don't feel like to make a script kiddie happy anymore. So don't just serve him everything he wants on a silver tablet.
Posted: Thu Aug 14, 2008 9:09 am
by gnozal
Fluid Byte wrote:You don't get it gonzal, do you? Why the heck you think no one answered this?
It's gnozal ...
I didn't read the all other posts ; why so aggressive ?
Anyway :
- judging by the questions he posted, I don't think he will ever become a dangereous hacker ...
- the code I posted (font size !) isn't that dangerous, is it ?
- as for the silver tablet, the code just by itself does nothing
Posted: Thu Aug 14, 2008 10:54 am
by Rook Zimbabwe
I say we ban both his aliases and BLOCK his webhost from connection.
Posted: Thu Aug 14, 2008 1:53 pm
by Sparkie
suspicious <> guilty
rumors <> facts
Posted: Thu Aug 14, 2008 2:26 pm
by Rings
Guys, don't wonder,
as my part as a shadow mod of this board,
i have the right to delete some post.
that is what i have done with some of those from Fluid Byte,KaeruGaman.
in this topic. I don't moved them, i deleted em.
We don't like those words like F*ck here. Its a coder's place, remember.
Normaly i don't like to censore (heck i'm no chinese) ,
but some ppl post me 'rude language' via pm here.
Posted: Thu Aug 14, 2008 2:30 pm
by Rings
Rook Zimbabwe wrote:I say we ban both his aliases and BLOCK his webhost from connection.
no, we have no 'Department of Homeland Security' here

and not all ppl are terrorist . (i haven 't seen any since years)
Posted: Thu Aug 14, 2008 3:16 pm
by Thalius
i haven 't seen any since years
Sileeence! I keel yoo !

Posted: Thu Aug 14, 2008 4:43 pm
by Derek
Hasn't anyone noticed that Chirantha joined in Jul 2005, so even though he hasn't posted as much as some it doesn't mean that he is just starting with PB and wants to code something nasty.
Posted: Thu Aug 14, 2008 5:13 pm
by Kaeru Gaman
since Rings deleted my posting, I repeat once in a more civilized tone:
- the suspicion Chirantha uses two accounts is unfounded, it was a misunderstanding in another thread
- additionally, it is absolutely legal to use two accounts, this is a discussion forum, no browsergame
what is the reason to suspect him writing some malware?
if anyone would write a clock, may it be talking to the blind or just displaying the time for the sighted,
he may want not to show the app in the taskbar.
the windows clock, the volume control, my antivirus software - they all don't show up in the taskbar, only in the systray.
and IF you are writing software for the blind, what is so funny about wanting
to implement an emergency feature that could send a ShortMessage via Internet?
and if you want to send an SM via Internet, why don't ask how to dial a connection
for the case a not-always-connected computer is used?
you see I checked a bunch of Chirantha's posts and of the suspicions carried out agains him before posting this.
...
oh, and for a chance...
You don't get it gonzal, do you? Why the heck you think no one answered this? Because he's being very suspicious and it seems he's also usung two accounts. In fact I already posted the answer yesterday but removed it again since I don't feel like to make a script kiddie happy anymore. So don't just serve him everything he wants on a silver tablet.
this is not the fine way, so when being here to delete the following posts,
Rings, you should at least have mocked Fluid for this post.
Posted: Thu Aug 14, 2008 5:30 pm
by Fluid Byte
My post is pefectly legal because I have a point and don't swear like you did. No need to cry for Rings because you think you have been treaded unfair.
And now enuff' of this nonsense!

Posted: Thu Aug 14, 2008 5:39 pm
by Kaeru Gaman
your post is an impudence, that's what emberassed me,
and made me tell you that in an unpolite but very depictive language.
when you suspect (seemingly innocent) people in such a language you did,
it's in my eyes perfectly legal to tell you to shut the heck up.
and I don't "cry for Rings", I tell him, when the heck he deleted posts,
he could have made a complete job and told you not to write such crap.
and you should recognize that until now I still like you,
and that this is one reason why it embarassed me that much:
I don't like when people I like make themselves idiots.
Posted: Fri Aug 15, 2008 12:39 am
by pdwyer
Fluid Byte wrote:... No need to cry for Rings because you think you have been treaded unfair.
I'm surprised he could remember the emergency number!

Posted: Fri Aug 15, 2008 8:16 am
by Fluid Byte
Ah yes, 0118 999 881 999 119 725 3, already forgot that one.
Reminds to watch both "The IT-Crowd" seasons again. Btw, do they plan a third season or did it already aired?