Search found 54 matches

by Leonhard
Mon Aug 24, 2009 9:38 am
Forum: Feature Requests and Wishlists
Topic: Modul Pritner: need more functions
Replies: 1
Views: 957

Modul Pritner: need more functions

Sorry, my english is terrible.


I use a written Application in Purebasic in our Company to print several things.

So I want now to set a Default-Printer for the Programm. I would not change the Windows-Default Printer.

So I need functions to use a Printer with a ID or Name / Get a System-List of ...
by Leonhard
Wed Aug 19, 2009 2:23 pm
Forum: Feature Requests and Wishlists
Topic: [PB 4.40 Beta 2 x86 / WinXP] OffsetOf and Syntax-Error
Replies: 1
Views: 794

[PB 4.40 Beta 2 x86 / WinXP] OffsetOf and Syntax-Error

I become a syntax-error, when I start this scrip.

Why?

Without the []-chars it is possible to run the command.

This I found should be fixed.

Code: Select all

Structure test
	arr.i[2]
EndStructure

Debug OffsetOf(test\arr[0])
by Leonhard
Wed Dec 24, 2008 11:54 am
Forum: Feature Requests and Wishlists
Topic: Language from OS
Replies: 1
Views: 1261

Language from OS

I installed PureBasic new and the first thing I must change is the Language (from the IDE).

Why do the IDE not ask the OS what the Langauge is when there is no config-file available?

This is only a small change but for the first view I thing the Language-Chage-Function is not easy to find for a ...
by Leonhard
Tue Nov 04, 2008 6:40 pm
Forum: Feature Requests and Wishlists
Topic: Graphic Engine
Replies: 1
Views: 977

Graphic Engine

Wouldn't It be nice to implement the Cairo Graphic Engine?
by Leonhard
Thu Sep 18, 2008 5:43 pm
Forum: Feature Requests and Wishlists
Topic: Type-Converting
Replies: 3
Views: 1196

Type-Converting

Wouldn't it be nice to convert types in a line with .type (.i, .c, .q, ...)?

Example:
Declare var1.i
Declare var2.i

Declare result.i

result = ( (var1).f / (var2).f ).i

; --------------------------------------

Declare str1.s{12} = "Hallo, Welt!"
Declare char.c

char = (str1).c + SizeOf ...
by Leonhard
Sun Jun 22, 2008 8:52 pm
Forum: Feature Requests and Wishlists
Topic: FileGlobal Variables?
Replies: 12
Views: 5175

I found namespace's more useful then only prefix-adding for variables.

When you like to add prefixes, you can make a preparser.

But namespace's would be better and very nice.
by Leonhard
Mon Apr 28, 2008 2:55 pm
Forum: Feature Requests and Wishlists
Topic: Structure in Prorotype (Structure not found)
Replies: 1
Views: 1210

Structure in Prorotype (Structure not found)

Code: Select all

Prototype proto(*pram.str1, *pram.str2)

Structure str1
  *s.str2
  
EndStructure

Structure str2
  l.l
EndStructure
Is the Error in the first line really nessesary?
When I comment this line is the code OK (although I use str2 in the str1 - Structure).
by Leonhard
Mon Apr 21, 2008 2:11 pm
Forum: Feature Requests and Wishlists
Topic: PrototypeFromInterface
Replies: 3
Views: 1264

A little bit big as my way but ok.
by Leonhard
Mon Apr 21, 2008 1:09 pm
Forum: Feature Requests and Wishlists
Topic: PrototypeFromInterface
Replies: 3
Views: 1264

PrototypeFromInterface

I look for a compiler-function to get a property from a interface.

Example:
Interface IADsPropertyList
QueryInterface(a, b)
AddRef()
Release()
GetTypeInfoCount(a)
GetTypeInfo(a, b, c)
GetIDsOfNames(a, b, c, d, e)
Invoke(a, b, c, d, e, f, g, h)
get_PropertyCount(a)
Next(a)
Skip(a)
Reset ...
by Leonhard
Mon Mar 31, 2008 4:19 pm
Forum: Announcement
Topic: PureBasic 4.20 Beta 2 (Windows)
Replies: 94
Views: 40907

Thanks.

I didn't thought that this is so easy.
by Leonhard
Mon Mar 31, 2008 3:24 pm
Forum: Announcement
Topic: PureBasic 4.20 Beta 2 (Windows)
Replies: 94
Views: 40907

Re: PureBasic 4.20 Beta 2 (Windows)

Fred wrote:

Code: Select all

- Added hex and binary support for Val() and ValQ()
...
How can I use that stuff?
I don't found help somewhere.
by Leonhard
Tue Oct 09, 2007 6:54 am
Forum: Feature Requests and Wishlists
Topic: [Implemented] settings saving option
Replies: 6
Views: 1757

Write this in the Header of the File.

Example:
;/
;/ File: <your file-name>
;/ PB-Version: 4.10 B3 (or other)
;/

;[...] The Code of the file
by Leonhard
Thu Oct 04, 2007 1:15 pm
Forum: Feature Requests and Wishlists
Topic: Prototype with LinkedList
Replies: 9
Views: 3380

other ideas?
by Leonhard
Wed Oct 03, 2007 3:40 pm
Forum: Feature Requests and Wishlists
Topic: Prototype with LinkedList
Replies: 9
Views: 3380

Prototype with LinkedList

Why can I not use LinkedList with prototypes?

I have build a example:
Prototype.l Callback(nValue.l)
Global NewList e_Event_Call.Callback()

Procedure Event1(nValue.l)
Debug "CALL-1: "+Str(nValue)
EndProcedure
Procedure Event2(nValue.l)
Debug "CALL-2: "+Str(nValue)
EndProcedure
Procedure Event3 ...
by Leonhard
Wed Oct 03, 2007 3:29 pm
Forum: Tricks 'n' Tips
Topic: Office-style menus
Replies: 57
Views: 26114

There lot of Bugs with using keyborad:
- Painting
- the MenuBar must be ignore

Try to use the Menu with the Keybord (ALT and arrow keys).