Colapse all stamp groups...

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Colapse all stamp groups...

Post by lidds »

Is there a way that I can colapse all stamp groups when the stamp palette is shown?

I was trying something like this, but it is not working as the list.GroupsCount is zero?

Code: Select all

        Dim nID As Integer = Me.docPreview.Inst.Str2ID("stampsView")
        Dim view As PDFXEdit.IPXV_View = Me.docPreview.Frame.View.Panes.Active(nID)
        If view IsNot Nothing Then
            Dim outPtr As IntPtr
            view.Obj.QueryImpl(GetType(PDFXEdit.IUIX_List).GUID, Nothing, outPtr)
            Dim list As PDFXEdit.IUIX_List = CType(System.Runtime.InteropServices.Marshal.GetObjectForIUnknown(outPtr), PDFXEdit.IUIX_List)
            If list IsNot Nothing Then
                For i As Integer = 0 To list.GroupsCount
                    list.ExpandGroup(i, False)
                Next                
            End If
        End If
Thanks

Simon
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Colapse all stamp groups...

Post by Sasha - Tracker Dev Team »

Hello Simon,

The stamps palette loads in the different thread, thus there are no groups from the start. Check out this topic for a sollution:
viewtopic.php?f=66&t=28060&p=109631&hil ... et#p109611

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply