I don't know if I'm able to reply to you, but I think, in first view, that you should prefer use an EditorGadget instead of a TextGadget. EditorGadget will give you scrolling possibilities.
I hope it can help.
Search found 29 matches
- Sat Jan 17, 2026 5:42 am
- Forum: Coding Questions
- Topic: large text
- Replies: 1
- Views: 5226
- Tue Jan 13, 2026 7:13 pm
- Forum: Coding Questions
- Topic: Downloading file with different name?
- Replies: 9
- Views: 8611
Re: Downloading file with different name?
Thank you a lot. I will try it. But your little code is working fine.
- Mon Jan 12, 2026 7:26 pm
- Forum: Coding Questions
- Topic: Downloading file with different name?
- Replies: 9
- Views: 8611
Re: Downloading file with different name?
Thank you very much. I will test it. It seems more simple that mine.
- Sat Jan 10, 2026 3:55 am
- Forum: Coding Questions
- Topic: Downloading file with different name?
- Replies: 9
- Views: 8611
[Solved] Re: Downloading file with different name?
I have solved the problem to rename a file. Here is the code below:
Enumeration
#File1
#File2
EndEnumeration
Global *Buffer
Global Length.q
Procedure ReadCallback( Status, Filename$, File, SizeRead )
Select Status
Case #PB_Status_Loaded
*Buffer = ExportFileMemory(#File1)
Length = Lof ...
Enumeration
#File1
#File2
EndEnumeration
Global *Buffer
Global Length.q
Procedure ReadCallback( Status, Filename$, File, SizeRead )
Select Status
Case #PB_Status_Loaded
*Buffer = ExportFileMemory(#File1)
Length = Lof ...
- Thu Jan 08, 2026 9:39 am
- Forum: Coding Questions
- Topic: Downloading file with different name?
- Replies: 9
- Views: 8611
Re: Downloading file with different name?
Thank you. I'm going to do that.
- Wed Jan 07, 2026 6:26 am
- Forum: Coding Questions
- Topic: Downloading file with different name?
- Replies: 9
- Views: 8611
Re: Downloading file with different name?
I have found how to download a file, but I don't know how to rename it. I do that (based on example):
Procedure CreateFileCallback(Status, Filename$, File, SizeRead)
Select Status
Case #PB_Status_Saved
Case #PB_Status_Error
EndSelect
EndProcedure
Procedure ReadFileCallback(Status ...
Procedure CreateFileCallback(Status, Filename$, File, SizeRead)
Select Status
Case #PB_Status_Saved
Case #PB_Status_Error
EndSelect
EndProcedure
Procedure ReadFileCallback(Status ...
- Mon Jan 05, 2026 11:46 am
- Forum: Coding Questions
- Topic: Downloading file with different name?
- Replies: 9
- Views: 8611
Downloading file with different name?
Hello,
I would like to download a file and save it to the user with a different name than the one on the server. I'm doing this:
Procedure OnLeftClick_OK()
If( GetGadgetState( #Checkbox_0 ) = #PB_Checkbox_Checked )
;procedure to download moustique
Debug "Downloading book."
If( ReadFile(0 ...
I would like to download a file and save it to the user with a different name than the one on the server. I'm doing this:
Procedure OnLeftClick_OK()
If( GetGadgetState( #Checkbox_0 ) = #PB_Checkbox_Checked )
;procedure to download moustique
Debug "Downloading book."
If( ReadFile(0 ...
- Sun Apr 14, 2024 6:03 pm
- Forum: Coding Questions
- Topic: Debug output failing?
- Replies: 4
- Views: 5169
Re: Debug output failing?
Thank you munfraid. It gives me an idea. But this is incredible to write such many lines of code for a single timer... In PB it is more simple.
- Fri Apr 12, 2024 2:47 am
- Forum: Coding Questions
- Topic: Debug output failing?
- Replies: 4
- Views: 5169
Re: Debug output failing?
Okay, but in this case, how to make a Timer that only executes once to have the equivalent of Wait(1000) for example? There is RemoveWindowTimer(#Window, Timer), but how to be sure that the next Timer will not be executed before the first one is terminated.Thanks.
- Thu Apr 11, 2024 3:41 pm
- Forum: Coding Questions
- Topic: Debug output failing?
- Replies: 4
- Views: 5169
Debug output failing?
In the small piece of code below, the Debug is only displayed at the end of the execution whereas it should be displayed every second. Does anyone know why?
Thanks in advance.
Procedure Wait(milliseconds)
Start = ElapsedMilliseconds()
Repeat
delay = (ElapsedMilliseconds()-Start)
Until (delay ...
Thanks in advance.
Procedure Wait(milliseconds)
Start = ElapsedMilliseconds()
Repeat
delay = (ElapsedMilliseconds()-Start)
Until (delay ...