Search found 1987 matches

by srvaldez
Jul 15, 2019 22:09
Forum: Windows
Topic: InputBox() in console program
Replies: 34
Views: 1452

Re: InputBox() in console program

@Josep Roca thanks, there are no warnings when using your latest version :-)
by srvaldez
Jul 15, 2019 21:21
Forum: Windows
Topic: InputBox() in console program
Replies: 34
Views: 1452

Re: InputBox() in console program

thank you UEZ
look forward to the unicode version :-)
by srvaldez
Jul 15, 2019 21:20
Forum: Windows
Topic: InputBox() in console program
Replies: 34
Views: 1452

Re: InputBox() in console program

@deltarho[1859]
if you want fix the suspicious pointer warnings in AfxWin.inc, just change LPWSTR = RT_RCDATA to LPWSTR = Cptr(LPWSTR, RT_RCDATA) in functions AfxExtractResourceToFile and AfxExtractResource
by srvaldez
Jul 15, 2019 20:53
Forum: Windows
Topic: InputBox() in console program
Replies: 34
Views: 1452

Re: InputBox() in console program

@UEZ thank you
but your input box as it is, lacks the functionality of returning user input, other than the yes or no
but I like the fading effect :-)
by srvaldez
Jul 15, 2019 20:44
Forum: Windows
Topic: InputBox() in console program
Replies: 34
Views: 1452

Re: InputBox() in console program

@deltarho[1859] thank you :-)
I had no Idea that Josep Roca had already made a perfect input box, I also noticed the suspicious pointer warning, but have no idea how to fix it, but as long as it works I am happy.
by srvaldez
Jul 15, 2019 18:50
Forum: Windows
Topic: InputBox() in console program
Replies: 34
Views: 1452

Re: InputBox() in console program

hi dodicat
that's very good, I really like the simplicity and brevity of your code, thank you :-)
by srvaldez
Jul 15, 2019 15:48
Forum: Windows
Topic: InputBox() in console program
Replies: 34
Views: 1452

Re: InputBox() in console program

@marpon I am using FBC Version 1.07.0 (06-06-2019), with gcc 9.1.0 when compiling to 64-bit was getting a warning on the line DialogBoxParam(hIn1 , Cast(ZString Ptr , IDD_DLG1) , 0 , @DlgProc , 0) msgbox.bas(64) warning 3(1): Passing different pointer types, at parameter 4 of DIALOGBOXPARAM() changi...
by srvaldez
Jul 15, 2019 15:22
Forum: Windows
Topic: InputBox() in console program
Replies: 34
Views: 1452

Re: InputBox() in console program

@marpon
for some reason the printf statements are not agreeable to the C compiler, replacing them with Print solves the problem :-)
by srvaldez
Jul 15, 2019 14:39
Forum: Windows
Topic: InputBox() in console program
Replies: 34
Views: 1452

Re: InputBox() in console program

@all
thanks for your valuable code and suggestions
@marpon
your code is exactly what I am after, it compiles and runs ok when using gas but it fails to compile when using gen gcc, would you be so kind and look into it?
by srvaldez
Jul 15, 2019 9:00
Forum: Windows
Topic: InputBox() in console program
Replies: 34
Views: 1452

InputBox() in console program

in the spirit of my previous thread https://www.freebasic.net/forum/viewtopic.php?f=6&t=27723 I would like a simple input box using Windows API this could probably be achieved by using a library like IUP or GTK, but I would rather not use external libraries, I am convinced that it can be done by...
by srvaldez
Jul 12, 2019 21:59
Forum: Libraries
Topic: Accessing GIF Frames and Displaying GIF Images/Animations
Replies: 13
Views: 2095

Re: Accessing GIF Frames and Displaying GIF Images/Animations

@UEZ works as advertised :-) just an observation, when compiling with -w pedantic there are a number of warnings due to missing byval or byref in your function declarations, it's easy enough to see that they should be byval, except for arrays another thing, a normal exit is usually 0. I hope that yo...
by srvaldez
Jul 12, 2019 21:24
Forum: Windows
Topic: file requester for console program
Replies: 30
Views: 1103

Re: file requester for console program

ahh, shows you how much I know :-)
this Windows API stuff is brand new territory for me
by srvaldez
Jul 12, 2019 21:13
Forum: Windows
Topic: file requester for console program
Replies: 30
Views: 1103

Re: file requester for console program

@all
if I change the filter to @!"Text Files\0*.bas\0\0" it will show folders and basic files, even though the list only shows Text Files
so it seems work ok
by srvaldez
Jul 12, 2019 21:08
Forum: Windows
Topic: file requester for console program
Replies: 30
Views: 1103

Re: file requester for console program

@D.J.Peters that makes sense, however it made no difference
@Josep Roca yes, the caption works but not the filter

@deltarho[1859] yes, that works :-)
by srvaldez
Jul 12, 2019 20:23
Forum: Windows
Topic: file requester for console program
Replies: 30
Views: 1103

Re: file requester for console program

thanks deltarho[1859] and Josep Roca the following works OK when using the geany IDE with UTF8 encoding, but it fails when using Paul's WinFBE -- the filter does not work and the caption looks Chinese #Include Once "windows.bi" #Include Once "win\commdlg.bi" #define unicode Funct...

Go to advanced search