Search found 947 matches

by chi
Wed Jul 19, 2023 3:41 am
Forum: Coding Questions
Topic: Replace Text in IDE as IDE Tool
Replies: 12
Views: 638

Re: Replace Text in IDE as IDE Tool

With LazyCoder I use...

Code: Select all

SendMessage_(IDE_HwndScintilla, #SCI_SETSELECTIONSTART, SCI_StartPos, 0)
SendMessage_(IDE_HwndScintilla, #SCI_SETSELECTIONEND, SCI_EndPos, 0)
SendMessage_(IDE_HwndScintilla, #EM_REPLACESEL, 0, utf8Buffer)
by chi
Tue Jul 18, 2023 11:26 pm
Forum: Coding Questions
Topic: port PB GUI app to Android as .apk SaveFileRequester()
Replies: 27
Views: 2080

Re: SaveFileRequester()

Ha, how you like that? EnableExplicit Enumeration Window #Window_0 EndEnumeration Enumeration #MainMenu EndEnumeration Define iEvent.i Enumeration Gadgets #Panel_1 #CanvCont_1 #CanvCont_2 EndEnumeration ;- Declare Declare Open_Window_0(X = 0, Y = 0, Width = 800, Height = 600) Procedure Open_Window_0...
by chi
Wed Jun 28, 2023 11:33 am
Forum: Coding Questions
Topic: I'm trying to create a client network dll in purebasic for c++, but I get an error sending messages to the server.
Replies: 8
Views: 566

Re: I'm trying to create a client network dll in purebasic for c++, but I get an error sending messages to the server.

on x86 it works fine... but when I compile using Pb64 and switch to platform x64 in visual studio c++, using the same code as you did, the above error still occurs... screenshot > https://prnt.sc/IOLTr7KqFHw1 is something missing from windows or dependencies? Maybe something is messed up in the pro...
by chi
Tue Jun 27, 2023 11:08 am
Forum: Coding Questions
Topic: I'm trying to create a client network dll in purebasic for c++, but I get an error sending messages to the server.
Replies: 8
Views: 566

Re: I'm trying to create a client network dll in purebasic for c++, but I get an error sending messages to the server.

Seems to work fine here with following changes: pbdll.pb ProcedureCDLL Connect( server.i, port.i ) ProcedureReturn OpenNetworkConnection(PeekS(server,-1,#PB_Ascii),port) EndProcedure ProcedureCDLL SendMsgString( id.i, msg.i ) MessageRequester("dll", "Send Message?") SendNetworkSt...
by chi
Thu Jun 22, 2023 3:36 pm
Forum: Coding Questions
Topic: entry point not found in dynamic link library in VC++
Replies: 5
Views: 293

Re: entry point not found in dynamic link library in VC++

Then I don't know, works here... Had to change to PokeS(*Ptr, String, Size, #PB_Unicode) tho ;)
by chi
Thu Jun 22, 2023 8:31 am
Forum: Coding Questions
Topic: entry point not found in dynamic link library in VC++
Replies: 5
Views: 293

Re: entry point not found in dynamic link library in VC++

Hi, you probably forgot to include the import lib when compiling in VC++. Copy MgmCore.lib to the .dll and add a reference to Project/... Properties/Linker/Input/Additional Dependencies...
by chi
Sat Jun 17, 2023 7:00 am
Forum: The PureBasic Editor
Topic: [No Bug]PB6.03b1 Statusbar Function-Param-Highlight not working
Replies: 11
Views: 1217

Re: PB6.03b1 Statusbar Function-Param-Highlight not working

It's not clear to me, do I have to fix something or it was on your side ? I guess it was on my side, since i dared to switch the system font in my theme :wink:. Anyway, some people might have the same problem... I spent a few minutes trying to find a solution, but unless you want to test each font ...
by chi
Thu Jun 15, 2023 11:24 am
Forum: The PureBasic Editor
Topic: [No Bug]PB6.03b1 Statusbar Function-Param-Highlight not working
Replies: 11
Views: 1217

Re: PB6.03b1 Statusbar Function-Param-Highlight not working

It's the commit fixing DPI scale, may be you can find something wrong here: https://github.com/fantaisie-software/purebasic/commit/68431e6ced989eacbea718ba9e9296aaa5b10def Thank you, that was indeed the problem. I'm using a custom dark theme and the msgbox font is Segoe UI Semibold; 8; ClearType. T...
by chi
Thu Jun 15, 2023 7:19 am
Forum: The PureBasic Editor
Topic: [No Bug]PB6.03b1 Statusbar Function-Param-Highlight not working
Replies: 11
Views: 1217

Re: PB6.03b1 Statusbar Function-Param-Highlight not working

I cannot confirm this. For me, the current parameter (the one where the cursor is currently positioned) is still displayed in bold. Actually as always. Lucky you ;) Does it still refuse to show up if your window is maximized? I think I find it that it doesn't show itself unless the window is maximi...
by chi
Wed Jun 14, 2023 2:03 pm
Forum: The PureBasic Editor
Topic: [No Bug]PB6.03b1 Statusbar Function-Param-Highlight not working
Replies: 11
Views: 1217

[No Bug]PB6.03b1 Statusbar Function-Param-Highlight not working

I don't know what it's called, but the thingy in the IDE's status bar that highlights the active index of a function's parameter no longer works...
by chi
Wed Apr 19, 2023 8:22 pm
Forum: Applications - Feedback and Discussion
Topic: [IDE Tool] RuntimeSwitcher (Windows only, Experimental!)
Replies: 9
Views: 1058

Re: [IDE Tool] RuntimeSwitcher (Windows only, Experimental!)

Thank you for your hard work and sharing the results with everyone. You're welcome, happy coding! :) Thanks chi Is it really that simple to replace the crt. Should be able to so same with mingw. I think it should be that simple for MinGW as well. But who knows for sure without trying... ;) Let me k...
by chi
Tue Apr 18, 2023 3:51 pm
Forum: Coding Questions
Topic: Beta 6.02 extranje bug
Replies: 3
Views: 185

Re: Beta 6.02 extranje bug

Try it like this...

Code: Select all

CompilerIf #PB_Compiler_Thread = 0
  CompilerError "Use Compiler-Option ThreadSafe!"
CompilerEndIf
by chi
Sun Apr 16, 2023 1:43 pm
Forum: Coding Questions
Topic: MessageBox is repeating itself!
Replies: 6
Views: 399

Re: MessageBox is repeating itself!

rozbud wrote: Sat Apr 15, 2023 10:29 pm Any explanation?
When using SetClassLongPtr_() on a Button, you are modifying the whole "button" class (incl. ButtonGadget, CheckboxGadget, OptionGadget, ...). That's why you also see the hand cursor over the button in a messagebox.
by chi
Sat Apr 15, 2023 10:32 am
Forum: Coding Questions
Topic: MessageBox is repeating itself!
Replies: 6
Views: 399

Re: MessageBox is repeating itself!

EnableExplicit ; use EnableExplicit to avoid typo bugs Enumeration Window #WIN_MAIN EndEnumeration Enumeration Gadget #BUTTON_CLOSE #IMAGE_VIEW EndEnumeration Enumeration Image #IMG_SETTINGS EndEnumeration If OpenWindow(#WIN_MAIN, 0, 0, 200, 80, "Repeated Message Issue!", #PB_Window_Syste...
by chi
Sat Apr 08, 2023 1:52 pm
Forum: Bugs - Windows
Topic: Clipboard 32bit Images
Replies: 3
Views: 1819

Re: Clipboard 32bit Images

Save the clp_00.png file from the Source image (in the 1st post) and open it in Gimp. You will see a rounded edge without artifacts. Now run the above code with clp_00.png and copy the clipboard into Gimp. The rounded edge has a darker line on it (like the XnView image 1st post). To fix this problem...