Search found 324 matches

by morosh
Mon Oct 27, 2025 8:42 am
Forum: Coding Questions
Topic: weird error
Replies: 2
Views: 112

Re: weird error

Thank you
But the error message is misleading:
Can't use any of the following operands with float or double <<,>>, etc...
not exactly that
by morosh
Mon Oct 27, 2025 7:59 am
Forum: Coding Questions
Topic: weird error
Replies: 2
Views: 112

weird error

Hello:
what's wrong in the following:

Code: Select all

CreateImage(0, 50, 50)
If StartDrawing(ImageOutput(0))  
  DrawText(0, Int(33.5) >> 1, "", 0)
EndIf
StopDrawing()
I get error that >> can't be used with floats, although I'm passing an integer.

Best Regards
by morosh
Thu Oct 23, 2025 8:49 am
Forum: Coding Questions
Topic: weird behavioural of StringGadget
Replies: 6
Views: 299

Re: weird behavioural of StringGadget

Thank you Rashad! Awesome as always

In addition I've added a callback function to make text gadgets and others transparent.
now it looks like this (in case that interest someone):
EnableExplicit
UseJPEGImageEncoder()
UsePNGImageEncoder()
UsePNGImageDecoder()

InitSound()

Enumeration
#Form ...
by morosh
Wed Oct 22, 2025 12:33 pm
Forum: Coding Questions
Topic: weird behavioural of StringGadget
Replies: 6
Views: 299

Re: weird behavioural of StringGadget

Thank you Rashad!!
but the panel still white :(
by morosh
Wed Oct 22, 2025 11:17 am
Forum: Coding Questions
Topic: weird behavioural of StringGadget
Replies: 6
Views: 299

Re: weird behavioural of StringGadget

Thank you Axoloti

Yes, this is the problem, (but it didn't come to my mind as it runs well with v6.04).
About the "#Constant+100" coding style, I'm not sure if it's a clever idea, but I use it to minimize the search for adding a new gadget, so if I need to add a new string gadget, I search for ...
by morosh
Wed Oct 22, 2025 10:32 am
Forum: Coding Questions
Topic: weird behavioural of StringGadget
Replies: 6
Views: 299

weird behavioural of StringGadget

Hello:
in the following snippet, I can't get the focus on the String gadget #String+14, next to "Resolution" by clicking the mouse inside, I can get it using the TAB key, It works using older versions 5.73 and 6.04.

EnableExplicit
UseJPEGImageEncoder()
UsePNGImageEncoder()
UsePNGImageDecoder ...
by morosh
Wed May 21, 2025 9:06 pm
Forum: Coding Questions
Topic: Adding text and signature on down of PDF document [Resolved]
Replies: 11
Views: 798

Re: Adding text and signature on down of PDF document [Resolved]

On a side note, with LibreOffice sdraw (which is free) you can open PDF, add text, image, etc.... and export as PDF
by morosh
Mon Apr 28, 2025 9:51 am
Forum: Coding Questions
Topic: IMA in firebase example
Replies: 2
Views: 1008

Re: IMA in firebase example

Yes I'll look there, Normally it's 30 day free trial
Thanks anyway
by morosh
Sat Apr 26, 2025 8:33 pm
Forum: Coding Questions
Topic: IMA in firebase example
Replies: 2
Views: 1008

IMA in firebase example

Hello:
I've recently discovered that there's a Firebase library for Pb made by Chilkat, module here ( https://chilkatdownload.com/10.1.3/chilkatpb.zip ) and I tried the GET example, from https://www.example-code.com/purebasic/fireBase.asp
IncludeFile "CkStringBuilder.pb"
IncludeFile "CkAuthGoogle ...
by morosh
Mon Mar 24, 2025 7:17 am
Forum: Coding Questions
Topic: Serial Communication locking up.
Replies: 11
Views: 1317

Re: Serial Communication locking up.

Working here, except that WriteSerialPortString take 2-3 sec each time, so after 30sec it exits normally. (I've added debug x).
I've used a virtual serial port.
by morosh
Fri Feb 14, 2025 5:23 pm
Forum: Announcement
Topic: PureBasic 6.20 is out !
Replies: 148
Views: 91156

Re: PureBasic 6.20 is out !

Many thanks Fred and Team!!
by morosh
Sat Feb 01, 2025 7:48 am
Forum: Coding Questions
Topic: Simulate button gadget is pressed
Replies: 5
Views: 1570

Re: Simulate button gadget is pressed

PB_Gadget_SendGadgetCommand still working here:
Import ""
PB_Gadget_SendGadgetCommand(hWnd, EventType)
EndImport


Procedure SetClick()
PB_Gadget_SendGadgetCommand(GadgetID(1), #PB_EventType_LeftClick)
EndProcedure

Procedure GotClick()
Debug "gotclick"
EndProcedure


If OpenWindow(0, 0, 0 ...
by morosh
Wed Jan 22, 2025 12:20 pm
Forum: Coding Questions
Topic: Newbie Question with MySQL
Replies: 6
Views: 1359

Re: Newbie Question with MySQL

I deleted my account
by morosh
Wed Jan 22, 2025 12:07 pm
Forum: Coding Questions
Topic: Newbie Question with MySQL
Replies: 6
Views: 1359

Re: Newbie Question with MySQL

Aha Thanks for the info Normeus
by morosh
Wed Jan 22, 2025 11:03 am
Forum: Coding Questions
Topic: Newbie Question with MySQL
Replies: 6
Views: 1359

Re: Newbie Question with MySQL

I tried and got:
Connection failed: Unknown MySQL server host 'morisaab.42web.io/sql205.infinityfree.com' (11001)