Page 1 of 1

Path separator issue

Posted: Tue Jan 17, 2012 1:02 am
by PrietoM
I just started playing with Purebasic and I encounter my first noobie issue;
I have a text gadget that displays the path of the selected file/directory in a tree explorer gadget
Everything works great except the path displayed looks weird because the path separator looks like a W with a line across it.
here is a screenshot.
http://www.flickr.com/photos/74574276@N08/6711201417/

Any help will be appreciated.

Windows 7 32-bit.

Re: Path separator issue

Posted: Tue Jan 17, 2012 1:15 am
by skywalk
Can you post your code between "" marks?

Re: Path separator issue

Posted: Tue Jan 17, 2012 1:43 am
by Tenaja
I used the example in the Help file, and it will properly display in the TitleBar:

Code: Select all

InitialPath$ = "C:\"   ; set initial path to display (could also be blank)
Path$ = PathRequester("Please choose your path", InitialPath$)  
If Path$
	MessageRequester("Information on " +Path$, "You have selected following path:"+Chr(10)+Path$, 0)
Else    
	MessageRequester("Information", "The requester was canceled.", 0) 
EndIf
I, too, am on w7-32, so as suggested, maybe you should post your code.

Re: Path separator issue

Posted: Tue Jan 17, 2012 2:04 am
by charvista
Welcome aboard!

It looks like you are using a Chinese or Japanese font... Change the font to a standard one like Arial, and see if the problem persists. What is the name of the font you are using there?

Re: Path separator issue

Posted: Wed Jan 18, 2012 2:07 am
by PrietoM
Yes, it was the font!!!
I had the following:

Code: Select all

LoadFont(0,"Batang",12,#PB_Font_Bold)
I changed it to Arial and it works!!

Thanks guys.