Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,485 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
file_dialog filter not working as expected #330344
06/27/10 03:05
06/27/10 03:05
Joined: Jul 2008
Posts: 223
Pittsburgh
The_Clyde Offline OP
Member
The_Clyde  Offline OP
Member

Joined: Jul 2008
Posts: 223
Pittsburgh
The filter parameter for file_dialog doesn't seem to do anything...

no matter what I put as the filter parameter- all files are visible in the dialog frown

Re: file_dialog filter not working as expected [Re: The_Clyde] #330347
06/27/10 04:53
06/27/10 04:53
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Show us what you're putting in, and how...


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: file_dialog filter not working as expected [Re: EvilSOB] #330348
06/27/10 04:56
06/27/10 04:56
Joined: Jul 2008
Posts: 223
Pittsburgh
The_Clyde Offline OP
Member
The_Clyde  Offline OP
Member

Joined: Jul 2008
Posts: 223
Pittsburgh
Code:
STRING* level = file_dialog("Load level...","*.WMB");
	
	if(!level)
	{
		sys_exit("");
	}
	
	level_load(level);



The dialog that shows up shows all of the files instead of only .WMB's
and when "cancel" is clicked the program freezes instead of quitting.

Re: file_dialog filter not working as expected [Re: The_Clyde] #330350
06/27/10 05:42
06/27/10 05:42
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
hmmm ... OK ...
Where has the "file_dialog" function come from.
I cant find any record of it...

A custom function from somewhere, or maybe a beta fature...


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: file_dialog filter not working as expected [Re: EvilSOB] #330351
06/27/10 06:01
06/27/10 06:01
Joined: Jul 2008
Posts: 223
Pittsburgh
The_Clyde Offline OP
Member
The_Clyde  Offline OP
Member

Joined: Jul 2008
Posts: 223
Pittsburgh
It's in strio.c, in the includes folder
all of its functions are in the manual, but only documented under one page with the header "strio.c"

Last edited by The_Clyde; 06/27/10 06:01.
Re: file_dialog filter not working as expected [Re: The_Clyde] #330352
06/27/10 07:32
06/27/10 07:32
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
What the hell?

I never even knew that existed...
THANKS for pointing it out for me, I feel kinda dumb now.

Time for me to start exploring the .c and .h files again...

FYI, doesnt work for me either. A7.85.4 commercial.
I suggest logging this fault in the "Bugs" section...

[EDIT] Check THIS THREAD out...




Last edited by EvilSOB; 06/27/10 08:11.

"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: file_dialog filter not working as expected [Re: EvilSOB] #330359
06/27/10 08:34
06/27/10 08:34
Joined: Jul 2008
Posts: 223
Pittsburgh
The_Clyde Offline OP
Member
The_Clyde  Offline OP
Member

Joined: Jul 2008
Posts: 223
Pittsburgh
Dude you're like some kind of superhero-
I made it static like you had pointed out and it works!
Thanks- grin

Re: file_dialog filter not working as expected [Re: The_Clyde] #330372
06/27/10 10:31
06/27/10 10:31
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
no problem dude...


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1