Search found 878 matches

by Peter
Mon Jul 10, 2023 9:08 am
Forum: Coding Questions
Topic: DateGadget abnormality
Replies: 1
Views: 4236

Re: DateGadget abnormality

Mask$ (optional): The format in which the date can be entered. See FormatDate() for the format of this mask. Only %yyyy, %mm and %dd tags are supported. No extra text characters can be set in the date format. If you don't specify the mask or specify an empty string, a default mask will be chosen. T...
by Peter
Thu Jul 06, 2023 1:39 pm
Forum: Coding Questions
Topic: How validate with the enter key?
Replies: 2
Views: 3872

Re: How validate with the enter key?

use AddKeyboardShortcut() in combination with GetActiveGadget(): Enumeration #Window #StringGadget #PB_Shortcut_Return_Event EndEnumeration Procedure MenuEvents() If EventMenu() = #PB_Shortcut_Return_Event If GetActiveGadget() = #StringGadget Debug "Gotcha!" EndIf EndIf EndProcedure OpenWi...
by Peter
Thu Jul 06, 2023 8:22 am
Forum: General Discussion
Topic: Purchase questions
Replies: 2
Views: 3302

Re: Purchase questions

I don't know how often Fred (the author of SpiderBasic) reads this forum. Maybe you can write him directly by email: fred@spiderbasic.com
by Peter
Tue Jul 04, 2023 2:49 pm
Forum: Showcase
Topic: pollinations.ai Image generator
Replies: 3
Views: 10322

pollinations.ai Image generator

A little gimmick to generate images with pollinations.ai. ;) (Sometimes the image generation takes a little while. So have a little patience.) EnableExplicit Enumeration #Window #lblPrompt #lblWait #txtPrompt #cmdExecutePrompt #ImageGadget EndEnumeration Procedure InProgress(Flag) DisableGadget(#txt...
by Peter
Wed Jun 21, 2023 8:29 pm
Forum: Coding Questions
Topic: Fullscreen without Click
Replies: 3
Views: 4326

Re: Fullscreen without Click

No, you can't. There must always be an user interaction.
by Peter
Mon Jun 19, 2023 8:14 pm
Forum: Coding Questions
Topic: Link or Close
Replies: 9
Views: 2539

Re: Link or Close

I don't own an iPad, so I'm out.
by Peter
Mon Jun 19, 2023 2:00 pm
Forum: Coding Questions
Topic: Link or Close
Replies: 9
Views: 2539

Re: Link or Close

Procedure ButtonEvent() If MessageRequester("Really?", #PB_MessageRequester_YesNo) = #PB_MessageRequester_Yes ! window.close(); EndIf EndProcedure OpenWindow(0, 0, 0, 300, 200, "Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) ButtonGadget(0, 10, 10, 280, 180, "Clo...
by Peter
Fri Jun 16, 2023 12:38 pm
Forum: Coding Questions
Topic: Dialog margins
Replies: 2
Views: 783

Re: Dialog margins

Looks like this is a feature not yet implemented, because the same code (slightly adapted) works in PureBasic.
by Peter
Fri Jun 02, 2023 8:01 pm
Forum: Coding Questions
Topic: Multiple Instances Question
Replies: 2
Views: 904

Re: Multiple Instances Question

no 'crash' here DeclareModule Currency ; procedures Declare create(x, y) EndDeclareModule Module Currency ; canvas to draw on Global gadget ; create the currency Procedure create(x, y) gadget = TextGadget(#PB_Any, x, y, 100, 100, "Stars: 0") EndProcedure EndModule OpenWindow(0, 0, 0, 300, ...
by Peter
Fri Jun 02, 2023 1:58 pm
Forum: Coding Questions
Topic: GetGadgetText / AddGadgetItem not working with EditorGadget?
Replies: 3
Views: 863

Re: GetGadgetText / AddGadgetItem not working with EditorGadget?

Here is a workaround for the missing AddGadgetItem(): Procedure EditorGadgetAddGadgetItem(EditorGadget, Position, Text.s) If GadgetType(EditorGadget) <> #PB_GadgetType_Editor : ProcedureReturn : EndIf Protected GID = GadgetID(EditorGadget) ! var val = []; ! if ($(v_gid.gadget.textbox).val()) val = $...