It is currently Tue Jul 14, 2020 12:18 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 49 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Sun Nov 17, 2019 2:35 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Jun 23, 2014 1:18 pm
Posts: 206
Error on Line 134: ModuleEx::#EventType_LostFocus not found


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Sun Nov 17, 2019 3:21 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
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]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Sun Nov 17, 2019 3:52 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Jun 23, 2014 1:18 pm
Posts: 206
Line 72: ModuleEx ;-) File not found


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Sun Nov 17, 2019 4:17 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
Fixed (see above)

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

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Sun Nov 17, 2019 5:18 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Jun 23, 2014 1:18 pm
Posts: 206
#EventType_Change not triggered, when I clear the Text


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Sun Nov 17, 2019 5:45 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
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]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Wed Nov 20, 2019 9:49 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Jun 23, 2014 1:18 pm
Posts: 206
yes... worked great :)


How can I disable the gadget? If I use "DisableGadget" it still looks clickable.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Wed Nov 20, 2019 3:22 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
Update: StringEx::Disable()

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

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Fri Nov 22, 2019 9:04 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Jun 23, 2014 1:18 pm
Posts: 206
8)

Code:
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


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Fri Nov 22, 2019 3:04 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
Fixed

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

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Sun Nov 24, 2019 1:38 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
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]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Mon Nov 25, 2019 12:58 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Jun 23, 2014 1:18 pm
Posts: 206
Really nice :)

but...
Code:
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Mon Nov 25, 2019 3:40 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
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]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Thu Dec 05, 2019 10:11 pm 
Offline
Addict
Addict

Joined: Fri Nov 09, 2012 11:04 pm
Posts: 1768
Location: Uttoxeter, UK
@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.

_________________
DE AA EB


Last edited by davido on Sun Dec 08, 2019 12:30 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Fri Dec 06, 2019 6:54 am 
Offline
Enthusiast
Enthusiast

Joined: Sun Apr 06, 2008 12:54 pm
Posts: 390
Location: Brisbane, Qld, Australia
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

_________________
Mike
www.showcuesystems.com


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 49 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye