Jump to content

Recommended Posts

  • Moderators
Posted (edited)

New version - 19 Jul 11

Changes:

- Now works with UDF created tab structures as well as native ones.

- Changes to internal coding to prevent ghost flashes of the insert indicator when selecting new tabs. The indicator will now only appear when the active tab is clicked.

New UDF and new examples below. :)


A recent thread asked if it was possible to rearrange the order of the tab headers - with a bit of help from martin I produced some code to do this and here it is in UDF form - GUIDragTab.au3. ;)

A few points to note: ;)

- The user has to pass an array containing a fair amount of information to the UDF - however all of this is easy to obtain as you create the tab structure in your script

- All the controls within the tab structure must be placed on individual child GUIs which are hidden/shown as required - this is because the UDF actually renames the tab headers and keeps track of which GUI to display with what tab

- At present it only works with the native GUICtrlCreateTab/TabItem functions - I am working on a version which will also cope with the GUITab UDF created versions.

First an example which uses native AutoIt tabs MessageLoop mode:

  Reveal hidden contents

And now native tabs in OnEvent mode:

  Reveal hidden contents

[New] Here are UDF created tabs in MessageLoop mode:

  Reveal hidden contents

[New] And now UDF tabs in OnEvent mode:

  Reveal hidden contents

[New] And finally the UDF itself:

  Reveal hidden contents

[New] And a zip with all 5GUITabDrag.zip files:

I hope someone finds it of use. As usual, happy to get constructive criticism or (preferably) appreciative applause! :D

M23

Edited by Melba23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

  • Moderators
Posted

New version - 19 Jul 11

Changes:

- Now works with UDF created tab structures as well as native ones.

- Changes to internal coding to prevent ghost flashes of the insert indicator when selecting new tabs. The indicator will now only appear when the active tab is clicked.

New UDF and examples in first post. :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...