Path separator issue

Just starting out? Need help? Post your questions and find answers here.
PrietoM
New User
New User
Posts: 9
Joined: Sun Oct 04, 2009 10:58 pm
Location: Trying to jump the border into USA

Path separator issue

Post 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.
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Path separator issue

Post by skywalk »

Can you post your code between "" marks?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Path separator issue

Post 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.
User avatar
charvista
Addict
Addict
Posts: 949
Joined: Tue Sep 23, 2008 11:38 pm
Location: Belgium

Re: Path separator issue

Post 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?
- Windows 11 Home 64-bit
- PureBasic 6.10 LTS (x64)
- 64 Gb RAM
- 13th Gen Intel(R) Core(TM) i9-13900K 3.00 GHz
- 5K monitor with DPI @ 200%
PrietoM
New User
New User
Posts: 9
Joined: Sun Oct 04, 2009 10:58 pm
Location: Trying to jump the border into USA

Re: Path separator issue

Post 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.
Post Reply