Jump to content


Photo

Custom draw in NxEdit


  • Please log in to reply
34 replies to this topic

#21 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 16 September 2016 - 04:44 PM

For example:

procedure TForm3.Edit1KeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
  ShowMessage(Edit1.Text);
end;
This also won't work. Continuing...
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#22 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 19 September 2016 - 07:51 AM

No problem.  What exactly is it that you're trying to achieve?



#23 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 19 September 2016 - 04:33 PM

Hi,

Check gif bellow to see what I have in working version. I would like to refine it yet, before bigger audience start using it.

What's my idea:

- OnValidate event. Always trigger.
- ValidateTriggers: When validation will trigger. You can also call Validate() method anytime.
- Latest: small Validator control (currently only 1 as you will see in video), but they can be attached to Validator property. It can even be a simple class, but only need to implement INxValidator interface.

https://dl.dropboxus...f/validator.gif

if Gif won't work, here is a video:
https://dl.dropboxus...f/validator.mp4
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#24 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 19 September 2016 - 10:05 PM

Hi,

Check gif bellow to see what I have in working version. I would like to refine it yet, before bigger audience start using it.

What's my idea:

- OnValidate event. Always trigger.
- ValidateTriggers: When validation will trigger. You can also call Validate() method anytime.
- Latest: small Validator control (currently only 1 as you will see in video), but they can be attached to Validator property. It can even be a simple class, but only need to implement INxValidator interface.

https://dl.dropboxus...f/validator.gif

if Gif won't work, here is a video:
https://dl.dropboxus...f/validator.mp4

 

That looks great. It's way more flexible than what I was imaging, can't wait to give it a try.



#25 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 19 September 2016 - 10:24 PM

Tomorrow I will publish new update.

Maybe you will have some suggestion to add since it's in early stage.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#26 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 20 September 2016 - 11:59 AM

Hi,

I have upload changes.

Maybe you can try them. It's still may require some tests and suggestions are welcome.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#27 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 20 September 2016 - 05:12 PM

Hi,

I have upload changes.

Maybe you can try them. It's still may require some tests and suggestions are welcome.

Great.  If I have time today, I will give it a try.

 

Thank you!



#28 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 20 September 2016 - 09:44 PM

Hi,

I have upload changes.

Maybe you can try them. It's still may require some tests and suggestions are welcome.

 

This is with Delphi 7.

 

I'm having the same problems I experienced when drawing the shape within the control. If I try to focus the control by clicking it does nothing. The only way I can enter the control is using tab but nothing is shown when I type. I can see things are typed when I highlight the text, but it's never visible.

 

See the attached video. I when I click it draws the circles where I click.

 

https://1drv.ms/v/s!...gHmCkhZBugo0AIh



#29 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 20 September 2016 - 09:59 PM

Hi,

I didn't made tests yet in Delphi 7. Now will try to see what happens. Stay tuned.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#30 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 20 September 2016 - 10:04 PM

Hi,

It seems to also work in D7. Can you send me short demo. It will help for sure.

Do you try to draw something additionally inside?
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#31 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 20 September 2016 - 11:13 PM

Hi,

It seems to also work in D7. Can you send me short demo. It will help for sure.

Do you try to draw something additionally inside?

No. I erased all of the files and only used the ones from the zip. I'll put together a test.

 

Edit: I removed everything again to make sure it didn't leave some remnant from before.  After doing that it fixed the problem.



#32 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 20 September 2016 - 11:31 PM

I'd also like the same on NxMaskedEdit and NxMemo if possible.



#33 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 20 September 2016 - 11:32 PM

Sure, reliefs that it worked. It's a start.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#34 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 29 September 2016 - 06:54 PM

Validator, NxLenghtRange

 

Maybe should be NxLengthRange?



#35 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 30 September 2016 - 12:58 AM

Correct, I always misspell length word.

I have changed it.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users