Search found 172 matches

by michel51
Tue Jul 09, 2013 9:14 pm
Forum: Mac OSX
Topic: Open web in Mac default brawser
Replies: 2
Views: 1724

Re: Open web in Mac default brawser

mag wrote:Hi,
In Mac, How do I code to open a website in user default web browser?

Thanks
Hope this works.

Code: Select all

RunProgram("open", "http://www.purebasic.com","")
by michel51
Sat Mar 30, 2013 5:00 pm
Forum: Mac OSX
Topic: I have a problem with Purebasic Mac version (image not init)
Replies: 8
Views: 3143

Re: I have a problem with Purebasic Mac version (image not i

Mindphazer wrote:I have the same problem.
The result of CreateImage is not null, so this means the creation has succeed.
But I still have the "The specified #image is not initialized" when compiling.
Same here like specified above.
by michel51
Wed Mar 13, 2013 10:06 pm
Forum: Announcement
Topic: PureBasic 5.11 beta 3 is out
Replies: 12
Views: 7475

Re: PureBasic 5.11 beta 3 is out

1+ :!:
by michel51
Mon Mar 04, 2013 11:30 pm
Forum: Announcement
Topic: CLC Multifile Converter
Replies: 10
Views: 6663

Re: CLC Multifile Converter

Would be nice if we had some responses from anyone who has used it to find out if it worked for them...
I'm interested in the idea of using Google Translate like this, but CLC doesn't look like it will suit my requirements. I've implemented multi-language support using code based on freak's An ...
by michel51
Fri Feb 22, 2013 12:08 pm
Forum: Tricks 'n' Tips
Topic: GetFolderSize()
Replies: 7
Views: 2529

Re: GetFolderSize()

Good job, rescator. Thanks for sharing.

I've changed your code a little bit, so it runs on Mac too. LINUX not tested, but it should run in the same way.
CompilerIf #PB_Compiler_OS = #PB_OS_Windows
#Delim$ = "\"
CompilerElse ; Mac Os und Linux
#Delim$ = "/"
CompilerEndIf

Procedure.q ...
by michel51
Wed Jan 30, 2013 11:43 pm
Forum: Mac OSX
Topic: [5.10b5] Text shifted in Gadgets
Replies: 2
Views: 1409

Re: [5.10b5] Text shifted in Gadgets

I agree - with the font "Arial Unicode MS".
Try the font "Arial" and the text will be written perfectly.

I think, it's a bug, maybe with unicode ??
by michel51
Wed Sep 12, 2012 11:26 am
Forum: The PureBasic Form Designer
Topic: Form Designer 5.10
Replies: 665
Views: 228945

Re: Form Designer 5.00 beta 2.3

Well the FD window position and size are already saved - need to add the same for the drawing area ;)
Hmm...it seems not. On my Mac FD always starts with the same (default) size (compiled application).

Another question: where I have to store the translated german catalog file? If I run the PB ...
by michel51
Tue Sep 11, 2012 6:11 pm
Forum: The PureBasic Form Designer
Topic: Form Designer 5.10
Replies: 665
Views: 228945

Re: Form Designer 5.00 beta 2.3

Thanks all!
I wont add preferences for the source viewer but I can change the font on windows to courier new :)
If you are changing the preferences, please add the following:
Save the position, width and hight of the Form Designer window before closing.
The designer now will be opened with the ...
by michel51
Wed Sep 05, 2012 6:49 pm
Forum: Mac OSX
Topic: #PB_Button_Default not set
Replies: 2
Views: 1869

#PB_Button_Default not set

If I use the flag "#PB_Button_Default" with ButtonGadget(), the button is NOT set to default.
by michel51
Sat Jun 23, 2012 8:37 am
Forum: Announcement
Topic: Convert any comments in source code to another language
Replies: 11
Views: 9052

Re: Convert any comments in source code to another language

Yes Possibly i have mac and linux too just dont use them much :shock: i`ll hook the mac up later today tomoz and recompile for mac and linux and post them

Zebuddi :D
I'll wait.... :)
The app would be more perfectly, if it is able to translate the quoted strings too (see example)
Message ...
by michel51
Fri Jun 22, 2012 1:43 pm
Forum: Announcement
Topic: Convert any comments in source code to another language
Replies: 11
Views: 9052

Re: Convert any comments in source code to another language

Good job! Thanks for sharing.
I tested the app on Mac with an emulator (virtual Box + Windows XP) and it runs fine.
Is it possible to port this to Mac, so it's running native with OS X?
by michel51
Wed Jun 06, 2012 1:07 pm
Forum: Mac OSX
Topic: runprogram - need help
Replies: 10
Views: 5003

Re: runprogram - need help

It is not a bug!

The constants #PB_Editor_CompileCount, #PB_Editor_BuildCount, #PB_Editor_CreateExecutable are special EDITOR constants , which only work, when compiling from the editor! Have a look at the PureBasic documentation:

==> http://www.purebasic.com/documentation/reference/ide_compiler ...
by michel51
Wed Jun 06, 2012 1:00 pm
Forum: Mac OSX
Topic: runprogram - need help
Replies: 10
Views: 5003

Re: runprogram - need help

J. Baker wrote: Don't copy and paste from Safari. It doesn't work. Use Firefox. ;)

If that's indeed what you did or not.
I know that. I use another way for "copy and paste" from Safari.
by michel51
Tue Jun 05, 2012 10:08 pm
Forum: Mac OSX
Topic: runprogram - need help
Replies: 10
Views: 5003

Re: runprogram - need help

I think, I got it :!:

The code really works as expected.
In the code I used for testing I have used the compiler constant "#PB_Editor_CreateExecutable". This constant is useful for testing if I compiled a source to an application from IDE or if I run the code in IDE (compile/run).
But in this case ...
by michel51
Tue Jun 05, 2012 9:23 pm
Forum: Mac OSX
Topic: runprogram - need help
Replies: 10
Views: 5003

Re: runprogram - need help

Works just fine. Try it with Chr(34). ;)

sFile.s = OpenFileRequester("", "", ".pb", 0)
appFile.s = ReplaceString(sFile, ".pb", ".app")
RunProgram(#PB_Compiler_Home + "compilers/pbcompiler", Chr(34) + sFile + Chr(34) + " -e " + Chr(34) + appFile + Chr(34), GetPathPart(sFile), #PB_Program_Wait ...