Search found 25 matches

by Alberto
Thu Sep 30, 2004 7:24 am
Forum: Coding Questions
Topic: Can't open a windowedscreen in a maximized window?
Replies: 2
Views: 1334

Happyness and joy to you, Roger!!!
Your code show me the way.
In your code you use Autostretch=1 inside the OpenWindowedScreen, but this is not a problem.
This is the solution to my problem:

Global Larghezza.l
Global Altezza.l
Larghezza = 500
Altezza = 500

Procedure linea()
StartDrawing ...
by Alberto
Wed Sep 29, 2004 9:14 am
Forum: Coding Questions
Topic: Can't open a windowedscreen in a maximized window?
Replies: 2
Views: 1334

Can't open a windowedscreen in a maximized window?

Run this code and try to maximize the window


Global Larghezza.l
Global Altezza.l
Larghezza = 500
Altezza = 500

Procedure linea()
StartDrawing(ScreenOutput())
Line(0,0,Larghezza,altezza,RGB(255,0,0))
StopDrawing()
FlipBuffers()
EndProcedure

punt = OpenWindow(1, 100, 100, Larghezza ...
by Alberto
Thu Sep 09, 2004 7:18 am
Forum: Tricks 'n' Tips
Topic: Speed Tetris (from Erix14 on french forum)
Replies: 18
Views: 8402

Good job

I don't like to play tetris but this game is great.
I take a look deeper inside the code.

Maybe I can learn something... :?
by Alberto
Mon Aug 30, 2004 7:15 am
Forum: Tricks 'n' Tips
Topic: An alternative to FastFile...
Replies: 5
Views: 3112

To see the speed comparing it's sufficient to execute the code that I've posted. The last lines in my code show the different times of execution in the debug window. It's very easy.

If you want it's easy to produce a MessageRequester instead of my debug commands.

Ciao
Alberto
by Alberto
Wed Aug 25, 2004 3:57 pm
Forum: Tricks 'n' Tips
Topic: An alternative to FastFile...
Replies: 5
Views: 3112

An alternative to FastFile...

Code updated For 5.20+

Below is an example of useful functions to use in alternative of FastFile library made by Rings.

The FastFile library made by Rings is amazing and surely better than my poor code but consider that:
- With this code you don't depend from any libraries because it's all made ...
by Alberto
Fri Jul 30, 2004 2:34 pm
Forum: Coding Questions
Topic: How to get background color of a window?
Replies: 5
Views: 1610

Thank you to PB and srod. :D

I will use GetSysColor_(#COLOR_3DFACE) that is good.

@srod:
I have Win XP professional and PeekL(@A$+4) give me the number 538976288 that is wrong.
by Alberto
Fri Jul 30, 2004 11:11 am
Forum: Coding Questions
Topic: How to get background color of a window?
Replies: 5
Views: 1610

How to get background color of a window?

Hi,

when I use GetSystemColor I don't get the background color of a window

GetSysColor_(#COLOR_WINDOW)

give me the number 16777215 that is not the background color of the window.

16777215 it's the color with
RED = 255
GREEN = 255
BLUE = 255

There is another way to get the background color of ...
by Alberto
Fri Jul 23, 2004 5:02 pm
Forum: Announcement
Topic: Office Style Menus, Toolbars Coolbars and XP style/skinnable
Replies: 23
Views: 7358

I'm not a commercial developer.

I'm very sorry gmatthews.

I'm not a a skilled programmer like you and my house is not full of women.

I'm very sorry gmatthews.

And I don't understand business like you (http://forums.purebasic.com/english/viewtopic.php?t=11740&highlight=gmatthews).

Shame on me ...
by Alberto
Fri Jun 25, 2004 9:02 am
Forum: Coding Questions
Topic: Printer's resolution
Replies: 1
Views: 1715

Very late answer...

The answering is very late, but I hope this can help you:

viewtopic.php?t=11411

Ciao
Alberto
by Alberto
Fri Jun 25, 2004 8:54 am
Forum: Tricks 'n' Tips
Topic: PrinterPageHorDPI() e PrinterPageVerDPI()
Replies: 1
Views: 2139

PrinterPageHorDPI() e PrinterPageVerDPI()

Code updated for 5.20+

Hallo,

this is a very simple code with which is possible to create the important functions PrinterPageHorDPI() e PrinterPageVerDPI() to know the DPI resolution of a printer.




If PrintRequester()
printer_DC.l = StartDrawing(PrinterOutput())
If printer_DC
Debug ...
by Alberto
Tue May 11, 2004 1:37 pm
Forum: General Discussion
Topic: Can PHP and pureBasic communicate through port 80?
Replies: 3
Views: 1705

Thank you for your answer GedB.

It's always a beautiful surprise for me to find people like you that help
their pureBasicbrother. :D

Your solution is very good.

I also think that the fsockopen is the right function to use in PHP but I can't understand what put in the "url.or.ip" parameter.

I'm ...
by Alberto
Tue May 11, 2004 10:40 am
Forum: General Discussion
Topic: Can PHP and pureBasic communicate through port 80?
Replies: 3
Views: 1705

Can PHP and pureBasic communicate through port 80?

I explain better my question.

My company wants to make available through internet to his distributors the disponibility, the prices and other few things of our database.

The normal way is to make a web server but I don't like this way because a Windows web server is very dangerous to administrate ...
by Alberto
Wed Apr 21, 2004 7:35 am
Forum: Feature Requests and Wishlists
Topic: [Implemented] Commas in 'select' statement?
Replies: 8
Views: 2276

Me too...

I need lthis feature.
It's not indispensable but it's frustrating to fill the code with
if...
if...
if...
if...
:oops:

A solution maybe the use of commas (is the best solution) or the use of a 'break' instruction like in the C language.

Ciao
Alberto
by Alberto
Wed Apr 14, 2004 10:20 am
Forum: Windows
Topic: What happened to _lclose_()?
Replies: 2
Views: 2056

Eureka!!

CloseHandle works well.

Many thanks

Alberto :D
by Alberto
Wed Apr 14, 2004 8:32 am
Forum: Windows
Topic: What happened to _lclose_()?
Replies: 2
Views: 2056

What happened to _lclose_()?

I dont know if this is a bug but try to execute the code of this topic
http://forums.purebasic.com/english/viewtopic.php?t=5270&highlight=lclose

The code works good on PureBasic 3.70 but on the next releases till 3.90 it doesn't function. The PureBasic tells me:

_lclose_() is not a function, an ...