NetTalk Central

Author Topic: Custom button under browse  (Read 4749 times)

Ubaidullah

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Custom button under browse
« on: October 25, 2020, 10:56:34 PM »
Hi Bruce,

Is there a way to use one of the buttons under the browse (e.g. the copy button) as a custom button?

I have seen the recommendation to use a Memory Form to add custom buttons. But I want to add a button that is aligned with the "Insert" button.
i.e. "Insert" "Insert All"

Regards,
Ubaidullah Nubar.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Custom button under browse
« Reply #1 on: October 26, 2020, 10:26:39 PM »
>> Is there a way to use one of the buttons under the browse (e.g. the copy button) as a custom button?

no.

>> I have seen the recommendation to use a Memory Form to add custom buttons.

yes

>> But I want to add a button that is aligned with the "Insert" button. i.e. "Insert" "Insert All"

The problem is that the code for the button is complex. You need the form to make the button so that you get all the code to make the button work. Injecting the button next to insert is likely possible using some clever CSS, but I've not tried that...
Although I suppose the easiest is to have the form make the Insert, and InsertAll buttons. and not have an Insert button on the browse.

Cheers
Bruce

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: Custom button under browse
« Reply #2 on: October 27, 2020, 01:58:40 AM »
Why not just use jQuery to move things around?
I'm using that with great success.

Regards Niels

Ubaidullah

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: Custom button under browse
« Reply #3 on: October 27, 2020, 06:01:11 AM »
Thanks for the reply, Bruce.

Although I suppose the easiest is to have the form make the Insert, and InsertAll buttons. and not have an Insert button on the browse.

My InsertAll button is a call to a source procedure, so that is easy.
But how do I make the Insert button for the browse on the memory form ?

Regards,
Ubaidullah Nubar.

Ubaidullah

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: Custom button under browse
« Reply #4 on: October 27, 2020, 06:02:33 AM »
Why not just use jQuery to move things around?
I'm using that with great success.

Regards Niels

Hi Niels,

That's an interesting suggestion.

I will appreciate it if you have any pointers on how to go about doing that.

Regards,
Ubaidullah Nubar.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Custom button under browse
« Reply #5 on: October 28, 2020, 02:52:54 AM »
>> But how do I make the Insert button for the browse on the memory form ?

It's just an "other" button , added to the form, doing whatever you need it to do...

cheers
Bruce