Search found 7 matches

by leo1991
Fri Jun 03, 2005 6:12 pm
Forum: Announcement
Topic: PureBasic Windows 3.94 beta 1 released!
Replies: 66
Views: 19267

It crashes, if i type 2 chars!
by leo1991
Fri Apr 08, 2005 8:22 am
Forum: General Discussion
Topic: Converting a negative value to a positive
Replies: 11
Views: 2498

Rings wrote:i'm too lazy to answer


sorry only in german
:o :o :?:
by leo1991
Thu Mar 31, 2005 8:11 am
Forum: Feature Requests and Wishlists
Topic: CountGadgets(#WindowID)
Replies: 22
Views: 4921

Here it is: :lol: :lol: :lol:

;
; 31.March 2005
; CountGadgets by leo1991
;


Procedure EnumChildWindowProc(hwnd,*Result.LONG)
*Result\l + 1
ProcedureReturn 1
EndProcedure
Procedure CountGadgets(hwnd)
EnumChildWindows_(hwnd,@EnumChildWindowProc(),@count)
ProcedureReturn count
EndProcedure ...
by leo1991
Wed Mar 30, 2005 10:54 am
Forum: Tricks 'n' Tips
Topic: Macros !!!!!
Replies: 36
Views: 11267

Macros are faster :D

!macro test
!{
bla / 5 * 99
d = 70 * 100000 / (90 + 700)
l = a > c
d * 1000
!}

Procedure test()
bla / 5 * 99
d = 70 * 100000 / (90 + 700)
l = a > c
d * 1000
EndProcedure

#N = 100000000
t1 = GetTickCount_()
For I = 0 To #N
! test
Next
t1 = GetTickCount_() - t1

t2 ...
by leo1991
Tue Mar 29, 2005 11:12 am
Forum: Coding Questions
Topic: Streaming images into an editor gadget
Replies: 8
Views: 1857

Do you search somethin like this?

;
; Image in an EditorGadget
; 29.3.2005,12:11 by Leo1991
;

hwnd = OpenWindow(0,0,0,640,480,#PB_Window_ScreenCentered|#PB_Window_SystemMenu,"Hello World!")
CreateGadgetList(hwnd)
hedit = EditorGadget(0,10,10,620,460)
CreateGadgetList(hedit)
file.s ...
by leo1991
Fri Mar 25, 2005 7:02 pm
Forum: Feature Requests and Wishlists
Topic: ArrayItems()
Replies: 1
Views: 1013

I don't think, this is useful. It isn't used often, so it isn't needed to be
added to PB :D You could try it with this Procedure:


;
; 25.3.2005
; Array Items
; By leo1991 in English Forum
;

Procedure ArrayItems(*Array.LONG)
*Array - 8
Size = *Array\l - 1
*Array + 8
RetVal.l
For I = 0 To ...
by leo1991
Thu Mar 24, 2005 9:52 pm
Forum: Coding Questions
Topic: How to create this DIM with STRUCTURE?
Replies: 4
Views: 1462

Code: Select all

table(1,70,70)\Red = bla
?