Page 1 of 4

Known Limits in PB 3.94 Mac

Posted: Sat Dec 24, 2005 9:28 am
by SEO
Known Limits PB 3.94 Mac
Is there any 'Known Limits' in PB 3.94 Mac? An Public list or something?
It is some frustating for an 'newbie' trying to write some code that not works. It is an 'limit' in PB or what is wrong in my code?

Yesterday I try to use and change fonts, but I get it not to works. Is this an 'limit' in PB Mac? I also try to use 'RunProgram() ...

If you know any 'limits' please log it here.....

Regards,
SEO

Posted: Sat Dec 24, 2005 11:41 am
by cologneskater
I think there is no summary of differences for the os x version. But look at this thread, there are some informations during the beta test:

viewtopic.php?t=15832

Posted: Sat Dec 24, 2005 12:09 pm
by Fred
You're right, it should have a list for such limitations. For what i recall, here are some (i will update this list each time a new issue is found):

- Printer, Help, Systray, Joystick, Palette libraries not supported
- WndowOutput(), SetGadgetFont() doesn't work
- All 3D Engine commands

Posted: Sat Dec 24, 2005 12:16 pm
by SEO
Ok.. Thanks!!
Now just working and testing more than one Window and menus...
//SEO

Posted: Sat Dec 24, 2005 1:46 pm
by Trond
In the manual at the bottom of each page the supported systems should be listed.

Posted: Sat Dec 24, 2005 10:49 pm
by SEO
Yes I see, the Help itm PureBasic-Font says it valid to Mac OS X... but I can't get it to work... LoadFont

Lucida14 = LoadFont(#PB_Any, "Verdana",14,#PB_Font_Bold)
This always return -1 And some others fonts I try to load..

//SEO

Posted: Sat Dec 24, 2005 11:47 pm
by Trond
SEO wrote:Yes I see, the Help itm PureBasic-Font says it valid to Mac OS X... but I can't get it to work... LoadFont

Lucida14 = LoadFont(#PB_Any, "Verdana",14,#PB_Font_Bold)
This always return -1 And some others fonts I try to load..

//SEO
If you HAVE Verdana bold then it should work if not there's a bug report forum.

Posted: Sat Dec 24, 2005 11:57 pm
by SEO
Fonts...On OS X
Yes, the problem is that an 'newbie' working with an 3.x.x release not think on bugs, only what have I doing wrong... So it is easy to be confused when the Help says it should be supported...

(Verdana is standard on OS X)
Regards,
SEO

Posted: Sun Dec 25, 2005 12:30 pm
by Fred
I will take a look as well, keep on going !

Posted: Sun Dec 25, 2005 12:40 pm
by SEO
Yes, I test, test and then I test ....
//SEO

Posted: Sun Dec 25, 2005 6:06 pm
by SEO
Text Encoding IDE PB 3.94 Mac

This code is NOT Working in the IDE

Code: Select all

a$ = "Hello! PB 3.94 Mac"
b$ = "Nils Åkesson"
c$ = "Nils Östensson"
d$ = "Östen Persson"

Debug a$
Debug b$
Debug c$
Debug d$
File.pb Example

Code: Select all

If CreateFile(0, "./PBTest.pb")
  WriteStringN("Per Östensson")
  WriteString("Now it's on ")
  WriteString("the same line.")
Result: NOT correct display in the MessageRequester!
But the test file is Saved in Text Encoding MacRoman...
The program files Myapp.pb is also Saved in MacRoman Encoding So it looks like the Debugger and the MessageRequester NOT handle MacRoman and want some other Encodings..

//Regards,
SEO

Posted: Sun Dec 25, 2005 8:18 pm
by SEO
IDE BUG

This pictures shown some minor bugs in the ide.
This bugs is created when I resize an window.
Perhaps it could be fixed using 'Live Resize' and the window set to 'Composite'.

http://www.xhtmlsoft.com/pb/images/idebug1.png
http://www.xhtmlsoft.com/pb/images/idebug2.png

//SEO

PS. I think Mac OS X have more posts than Amiga OS :!:

Posted: Mon Dec 26, 2005 12:10 am
by michel51
I confirm the encoding problem with german special characters like "ä, ö, ü, ß".
I've tested the snippets and I could see, what happened :(

A list with non supported functions on MAC is great. So programming would be less nerveracking :wink:

michel51

Posted: Mon Dec 26, 2005 1:12 am
by SEO
Menu Problem
I have done an new example on the menu problems. One main window and one Tool window with the same menu created. This example shows better that the menu is not changed when I open the Tool window. BUT when I close the Tool Window, then the Tool Windows menu is used!! And then the Menu not work, because the menu not exists...

http://www.xhtmlsoft.com/pb/downloads/MenuTest.zip

//SEO

Posted: Mon Dec 26, 2005 10:02 am
by SEO
Acivate Window Event
It looks that the Activate Event NOT fire ....
I can only activate my main window one time, when i open the second window then I can't get the Activate Window event to fire in the windows...

I also have some confusing behaivor, when I have the two windows opened and click on the 'Close Widget' in the main window, the second window is closed!!

Is there some more experienced PB developer that could check the code, and perhaps give some tip, how to get it to work??

Code: Select all

Case #PB_Event_ActivateWindow 
      Debug "Main Window Activate"
http://www.xhtmlsoft.com/pb/downloads/ActivateEvent.zip

//SEO