[Module] StringEx (all OS)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
Cyllceaux
Enthusiast
Enthusiast
Posts: 345
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: [Module] StringEx (all OS)

Post by Cyllceaux »

Error on Line 134: ModuleEx::#EventType_LostFocus not found
User avatar
Thorsten1867
Addict
Addict
Posts: 1265
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] StringEx (all OS)

Post by Thorsten1867 »

Fixed: "Exception error in brain memory" :wink:
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]
Cyllceaux
Enthusiast
Enthusiast
Posts: 345
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: [Module] StringEx (all OS)

Post by Cyllceaux »

Line 72: ModuleEx ;-) File not found
User avatar
Thorsten1867
Addict
Addict
Posts: 1265
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] StringEx (all OS)

Post by Thorsten1867 »

Fixed (see above)
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]
Cyllceaux
Enthusiast
Enthusiast
Posts: 345
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: [Module] StringEx (all OS)

Post by Cyllceaux »

#EventType_Change not triggered, when I clear the Text
User avatar
Thorsten1867
Addict
Addict
Posts: 1265
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] StringEx (all OS)

Post by Thorsten1867 »

Fixed

I hope I've caught all the events.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]
Cyllceaux
Enthusiast
Enthusiast
Posts: 345
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: [Module] StringEx (all OS)

Post by Cyllceaux »

yes... worked great :)


How can I disable the gadget? If I use "DisableGadget" it still looks clickable.
User avatar
Thorsten1867
Addict
Addict
Posts: 1265
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] StringEx (all OS)

Post by Thorsten1867 »

Update: StringEx::Disable()
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]
Cyllceaux
Enthusiast
Enthusiast
Posts: 345
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: [Module] StringEx (all OS)

Post by Cyllceaux »

8)

Code: Select all

Define spnAufgabeProzent=StringEx::Gadget(#PB_Any,10,10,75,20,"0",StringEx::#Numeric|StringEx::#Center,windowMain)
StringEx::SetAttribute(spnAufgabeProzent,StringEx::#MaximumLength,3)
When I doubleclick into the field, it marks the text in the left, but write in the center
User avatar
Thorsten1867
Addict
Addict
Posts: 1265
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] StringEx (all OS)

Post by Thorsten1867 »

Fixed
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]
User avatar
Thorsten1867
Addict
Addict
Posts: 1265
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] StringEx (all OS)

Post by Thorsten1867 »

Update: StringEx::SetInputMask()

Examples:
  • Date: "____/__/__/" or "__.__.____"
  • Time: "__:__:__"
  • License number: "___-___-___"
  • Money: "*.__$"
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]
Cyllceaux
Enthusiast
Enthusiast
Posts: 345
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: [Module] StringEx (all OS)

Post by Cyllceaux »

Really nice :)

but...

Code: Select all

strBuchungBetrag=StringEx::Gadget(#PB_Any,x,y,100,#BUTTON_HEIGHT,"",StringEx::#Numeric|StringEx::#Right,windowMain)
StringEx::SetInputMask(strBuchungBetrag,"*,__ €")
If I use #Right, it does not work anymore.
User avatar
Thorsten1867
Addict
Addict
Posts: 1265
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] StringEx (all OS)

Post by Thorsten1867 »

Bugfix: Cursor position (#Center/#Right)
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]
davido
Addict
Addict
Posts: 1847
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: [Module] StringEx (all OS)

Post by davido »

@Thorsten1867,
Is it possible for an empty StringEx to have a dimmed text prompt?
Many applications seem to have this facility; a typical example is the search string-box in Wikipedia.
Last edited by davido on Sun Dec 08, 2019 12:30 pm, edited 1 time in total.
DE AA EB
ozzie
Enthusiast
Enthusiast
Posts: 396
Joined: Sun Apr 06, 2008 12:54 pm
Location: Brisbane, Qld, Australia
Contact:

Re: [Module] StringEx (all OS)

Post by ozzie »

davido wrote:@Thorsten1867,
Is it possible to for an empty StringEx to have a dimmed text prompt?
Many applications seem to have this facility; a typical example is the search string-box in Wikipedia.
+1
Post Reply