Search found 35 matches

by incaroad
Fri Dec 11, 2020 3:18 pm
Forum: Coding Questions
Topic: Sync two ScrollAreaGadgets
Replies: 4
Views: 1043

Re: Sync two ScrollAreaGadgets

Wow mestnyi!
You are great. So simply, I didn't even try.
Thanks for that!
by incaroad
Fri Dec 11, 2020 9:53 am
Forum: Coding Questions
Topic: Sync two ScrollAreaGadgets
Replies: 4
Views: 1043

Re: Sync two ScrollAreaGadgets

RASHAD master!
Thank you very much! :)
by incaroad
Thu Dec 10, 2020 11:07 pm
Forum: Coding Questions
Topic: Sync two ScrollAreaGadgets
Replies: 4
Views: 1043

Sync two ScrollAreaGadgets

Hello!

How to sync two ScrollAreaGadgets horizontally?

Thanks
Best regards
Incaroad
by incaroad
Tue Apr 30, 2019 9:56 am
Forum: Coding Questions
Topic: ButtonColor
Replies: 18
Views: 3526

Re: ButtonColor

Bisonte wrote:have you changed the "gadgetnumber.l" parameter from LONG to INTEGER in your dll ?
Of course, I did everything you described.
by incaroad
Mon Apr 29, 2019 8:07 pm
Forum: Coding Questions
Topic: ButtonColor
Replies: 18
Views: 3526

Re: ButtonColor

Thank you Bisonte, but it stops with an "Invalid memory access" error message. :(
by incaroad
Mon Apr 29, 2019 6:15 pm
Forum: Coding Questions
Topic: ButtonColor
Replies: 18
Views: 3526

Re: ButtonColor

Hello Tombmyst!

Prototype ButtonGadgetColor(gad,x,y,w,h,text$="",flags=0,fgcolor=#PB_Default,bgcolor=#PB_Default,font=#PB_Default,kep=#PB_Any)

Define dll = OpenLibrary(#PB_Any, "ButtonGadgetColor.dll")

If dll
Define ButtonGadgetColor.ButtonGadgetColor = GetFunction(dll, "ButtonGadgetColor ...
by incaroad
Mon Apr 29, 2019 2:55 pm
Forum: Coding Questions
Topic: ButtonColor
Replies: 18
Views: 3526

Re: ButtonColor

One more example.

It works:
Procedure ButtonGadgetColor(gad,x,y,w,h,text$="",flags=0,fgcolor=#PB_Default,bgcolor=#PB_Default,font=#PB_Default)
If bgcolor=#PB_Default : bgcolor=GetSysColor_(#COLOR_BTNFACE) : EndIf
If fgcolor=#PB_Default : fgcolor=GetSysColor_(#COLOR_BTNFACE) : EndIf
If font=#PB ...
by incaroad
Mon Apr 29, 2019 1:34 pm
Forum: Coding Questions
Topic: ButtonColor
Replies: 18
Views: 3526

Re: ButtonColor

I'm making the dll:

ProcedureDLL SetButtonColor(GadgetNumber.l, TextColor.l, BackColor.l, TextColorPushed.l, BackColorPushed.l)
PureCOLOR_SetButtonColor(GadgetNumber.l, TextColor.l, BackColor.l, TextColorPushed.l, BackColorPushed.l)
EndProcedure

That's why I don't understand why it doesn't work ...
by incaroad
Mon Apr 29, 2019 10:16 am
Forum: Coding Questions
Topic: ButtonColor
Replies: 18
Views: 3526

Re: ButtonColor

Hello!
The problem is that the code is working, only dll does not work (but there is no error message). Why is this? I do not understand. I would have a solution for that.

Code:

OpenWindow(0, 100, 300, 310, 40, "PureCOLOR button test", #PB_Window_ScreenCentered | #PB_Window_SystemMenu ...
by incaroad
Sun Apr 28, 2019 4:17 pm
Forum: Coding Questions
Topic: ButtonColor
Replies: 18
Views: 3526

Re: ButtonColor

Hello kurzer!

Thank you for your comments!
I made a dll if I could use it in the PureBasic's new version.
But unfortunately not even with 5.00.
by incaroad
Sun Apr 28, 2019 3:18 pm
Forum: Coding Questions
Topic: ButtonColor
Replies: 18
Views: 3526

ButtonColor

Hello!

I wrote a little code but it doesn't work. Why?
(PureBasic 5.00)
PureColor is installed.
Thanks for the help!

buttoncolor.dll :
ProcedureDLL SetButtonColor(GadgetNumber.l, TextColor.l, BackColor.l, TextColorPushed.l, BackColorPushed.l)
PureCOLOR_SetButtonColor(GadgetNumber.l, TextColor.l ...
by incaroad
Sun Nov 11, 2018 4:40 pm
Forum: Coding Questions
Topic: HTML2TEXT
Replies: 10
Views: 2621

Re: HTML2TEXT

Hello!

Thank you very much Drgolf!
You are very professional.
:)
by incaroad
Sat Nov 10, 2018 2:38 pm
Forum: Coding Questions
Topic: HTML2TEXT
Replies: 10
Views: 2621

Re: HTML2TEXT

Thanks for Infratec!

Full code in the 4. comment.


I'm trying to fix it.
by incaroad
Sat Nov 10, 2018 11:47 am
Forum: Coding Questions
Topic: HTML2TEXT
Replies: 10
Views: 2621

Re: HTML2TEXT

....
ProcedureDLL.s HTML2TEXT (url.s, out.s="txt")


html.s

DeleteFile("oldal.html")

InitNetwork()

URL$=url
ReceiveHTTPFile(URL$,"oldal.html")
ReadFile(0, "oldal.html") ; if the file could be read, we continue...
While Eof(0) = 0 ; loop as long the 'end of file' isn't reached
html ...
by incaroad
Fri Nov 09, 2018 9:10 pm
Forum: Coding Questions
Topic: HTML2TEXT
Replies: 10
Views: 2621

Re: HTML2TEXT

I've created a dll file but it does not work.
Somewhere I'll wrong it. I'm a very beginner.

How do I rewrite this program to work?