Search found 17 matches

by calypso
Thu Jul 10, 2025 7:44 am
Forum: Bugs - Linux
Topic: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
Replies: 2
Views: 110

gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

Ubuntu 24.04 Server no desktop
Purebasic 6.21 on launch from terminal session get error message in terminal.

purebasic:983707): Gtk-CRITICAL **: 11:25:34.840: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar


What did I miss on install ? I think i had this with older version ...
by calypso
Fri May 30, 2025 12:07 pm
Forum: Coding Questions
Topic: Where is the documentation on using SFTP
Replies: 3
Views: 299

Re: Where is the documentation on using SFTP

Got it ! Thank you !! :)
by calypso
Thu May 29, 2025 9:27 am
Forum: Coding Questions
Topic: Where is the documentation on using SFTP
Replies: 3
Views: 299

Where is the documentation on using SFTP

I'm sure I saw something on SFTP usage in PureBasic but cannot find anything on it in the help or doc pdf. Is there an updated help or doc ?
can someone let me know where i can find usage details and maybe a couple of examples?
Thank you in advance.
~sv
by calypso
Fri Apr 14, 2023 3:23 am
Forum: Coding Questions
Topic: Window Menu Grief
Replies: 2
Views: 381

Re: Window Menu Grief

@mk-soft

Thank you, I'll check it out this later evening (it's only 7:22pm here right now)
by calypso
Fri Apr 14, 2023 1:27 am
Forum: Coding Questions
Topic: Window Menu Grief
Replies: 2
Views: 381

Window Menu Grief

I am at wits end - if that means anything to those from the late 70s to early 80's.
I have been trying to find how to only close a 2nd window (about) by left click on the X but it always exits the program for the various ways I have tried.

I have a program with a menu, the menu has "File" which ...
by calypso
Sat Apr 08, 2023 12:46 pm
Forum: Coding Questions
Topic: Coding Question - Purevision Text Gadget
Replies: 2
Views: 370

Re: Coding Question - Purevision Text Gadget

Sigh, I'm coding for Linux.
I gave up and used a button gadget.
thank you for pointing out that option for Windows.
~sv
by calypso
Sat Apr 08, 2023 12:38 pm
Forum: Coding Questions
Topic: Coding Question - Use of variables in Purevision Gadget name
Replies: 4
Views: 532

Re: Coding Question - Use of variables in Purevision Gadget name

After reviewing all of the replies and trying different methods, my old brain decided on this which I am sharing.
It might not be the correct method but I find it is the simplest for me to understand and maintain.

Form is created by PureVision.
I have 7 columns on each of 14 rows, each has a button ...
by calypso
Sat Apr 08, 2023 12:00 pm
Forum: Coding Questions
Topic: Is there a way to get gadget num from gadgetid?
Replies: 10
Views: 866

Re: Is there a way to get gadget num from gadgetid?

I'm fairly new to PB but in a running program If I need to get a gadget number and put it into an array I simply

Array_Buttons(Row,Col) = #Gadget_Form1_Button_Row14_Col4

or into a variable

x.i = #Gadget_Launch_VNC_Form1_Button_Row14_Col4
by calypso
Tue Apr 04, 2023 9:57 am
Forum: Coding Questions
Topic: Coding Question - Use of variables in Purevision Gadget name
Replies: 4
Views: 532

Coding Question - Use of variables in Purevision Gadget name

I have 84 Button Gadgets on a form. I need to hide / unhide some of them based on a value of a variable in an array.

Here is a snippet of the code I have that works. The button gadget caption is first assigned a text string that resides (or not) in an array.

SetGadgetText(#Gadget_Launch_VNC_Form1 ...
by calypso
Tue Apr 04, 2023 9:29 am
Forum: Coding Questions
Topic: Coding Question - Purevision Text Gadget
Replies: 2
Views: 370

Coding Question - Purevision Text Gadget

It's me again, my son told me yesterday I wasn't 72 as I had stated in my first post. He said I was 73. My bad math.
I'm new to PB and using Purevision to create a GUI.
My question is about the Purevision Text gadget. I was wondering if someone here might be able to answer or if I should go to ...
by calypso
Mon Mar 27, 2023 11:13 am
Forum: Coding Questions
Topic: RunProgram - using variables
Replies: 19
Views: 1901

Re: RunProgram - using variables

@mk-soft

Re: Whether I still want to learn a new prog language at 72, I don't know.
Will support you in any case ;)
How did you start programming?

Thanks to all who tried to help.

In answer to mk-soft question I started programming in 1977-78ish using CP/M and Digital Research macro assembler at ...
by calypso
Mon Mar 27, 2023 10:15 am
Forum: Coding Questions
Topic: RunProgram - using variables
Replies: 19
Views: 1901

Re: RunProgram - using variables

when I place r1 = RunProgram.......... the one that works returns 1 and the one that does not returns 0 meaning it did not launch.
None of that matters anymore, I found the cause of the problem I was having.
It was @Luis reply about encoding that made me check the Notepad encoding when the txt file ...
by calypso
Mon Mar 27, 2023 9:57 am
Forum: Coding Questions
Topic: RunProgram - using variables
Replies: 19
Views: 1901

Re: RunProgram - using variables

@RASHAD
for your example using pointers did you try it? I tried and it did not work.
I'm still trying to figure out why.
by calypso
Mon Mar 27, 2023 2:05 am
Forum: Coding Questions
Topic: RunProgram - using variables
Replies: 19
Views: 1901

Re: RunProgram - using variables

@ Jeromyal
I had no open file handles. Even tried to run the exe. no change.
It is strange.
-stephen
by calypso
Mon Mar 27, 2023 1:59 am
Forum: Coding Questions
Topic: RunProgram - using variables
Replies: 19
Views: 1901

Re: RunProgram - using variables

@Luis,
This second one that you tried and said it works does not work on my PC, I do not know why.
I need to use variables in the RunProgram line I don't have a choice as the users name in the path will vary depending on whose PC it is being run on.

Another issue I have with my PureBasic and I don ...