1. Tomáš Podzimek
  2. PowerBuilder
  3. Wednesday, 2 October 2024 12:37 PM UTC

Hi,

I would like to implement a a reordering of tabpages in a tab control using the mouse (drag&drop) - like the browsers can do.

I think it would require some Win API calls to make it done.

I believe John Fauss might have some interesting ideas on how to do this (based on previous great examples). Am I right? :-)

 

Regards

Tomáš

 

 

Accepted Answer
John Fauss Accepted Answer Pending Moderation
  1. Wednesday, 2 October 2024 19:07 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi, Tomáš -

Although it is not graphically as slick as what you are accustomed to seeing/using in a browser application, there is a way to do this.

Because the Q&A Editor has been reluctant lately to include any zip file that I attach, I've proactively uploaded the zip file that contains the (hopefully attached) TabDragDrop sample app to my Google Drive:

    https://drive.google.com/file/d/1tsI3dTl4fJGcW2jNJEVTVJPvyInM7DE6/view?usp=sharing

Since PB already supports DragDrop functionality in the Tab control, implementing this was not too difficult and it did not require much coding. The u_base_tab user object contains the code and behavior.

I hope this meets your needs.

Best regards, John

Attachments (1)
Comment
  1. Tomáš Podzimek
  2. Thursday, 3 October 2024 06:13 AM UTC
Hi, John,

Thanks a lot, great job as usual!

It will definitely help to achieve our goal.



Best regards,

Tomáš
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.