Print Page | Close Window

Can I?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=16243
Printed Date: 06 October 2024 at 11:22am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Can I?
Posted By: moe188
Subject: Can I?
Date Posted: 21 February 2010 at 5:31pm
can I do something similar to this window using CJ controls?
please a sample if it's possible
Thank you


-------------
Visual Baisc 6 SP6

Windows XP Pro Sp3, Windows 7
Codejock Xtreme SuitePro ActiveX 15.1.3



Replies:
Posted By: Oleg
Date Posted: 22 February 2010 at 3:21am
Hi,
 
Check Markup page of SuiteControls sample - you can make same list using markup feature.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: moe188
Date Posted: 22 February 2010 at 8:43am
Hi Oleg,
I did check Markup page, but it is not the same thing at all. On the screenshot, it seems like "CXTPRibbonSystemPopupBarPage", but they using it as listbox.
Thank you


-------------
Visual Baisc 6 SP6

Windows XP Pro Sp3, Windows 7
Codejock Xtreme SuitePro ActiveX 15.1.3


Posted By: Oleg
Date Posted: 23 February 2010 at 1:13am
Hi,
 
You can also try our CommandBars gallery - create CommandBarsFrame and add ToolBar +Gallery. search in forum, supermario attached such sample time ago.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: moe188
Date Posted: 24 February 2010 at 12:46pm
Hi,
I do have an application where I am using a Toolbar + gallery, but it's not the same. I am looking for a listbox if its' possible
thank you


-------------
Visual Baisc 6 SP6

Windows XP Pro Sp3, Windows 7
Codejock Xtreme SuitePro ActiveX 15.1.3


Posted By: JantjeKeizer
Date Posted: 24 February 2010 at 6:10pm
This is possible with markup and the listbox


Posted By: moe188
Date Posted: 25 February 2010 at 8:23am

hi,

I am missing something then, can you please post a small code?
thank you


-------------
Visual Baisc 6 SP6

Windows XP Pro Sp3, Windows 7
Codejock Xtreme SuitePro ActiveX 15.1.3


Posted By: JantjeKeizer
Date Posted: 25 February 2010 at 11:12am

[code=VB]

Private Sub Form_Load()

    Dim MarkupText As String
    Dim Icon       As String

    ListBox1.EnableMarkup = True
    ListBox1.Appearance = xtpAppearanceOffice2007

    Icon = "C:\Program Files (x86)\Codejock Software\ActiveX\Xtreme SuitePro ActiveX v13.2.1\Samples\Controls\VB\SuiteControls\Icons\CjSample.ico"

    MarkupText = " <Grid> "
    MarkupText = MarkupText & "        <Grid Margin=""45,0,0,0"" Name=""Grid1""> "
    MarkupText = MarkupText & "            <Grid.RowDefinitions> "
    MarkupText = MarkupText & "               <RowDefinition Height=""25*"" /> "
    MarkupText = MarkupText & "               <RowDefinition Height=""75*"" /> "
    MarkupText = MarkupText & "            </Grid.RowDefinitions> "
    MarkupText = MarkupText & "            <TextBlock FontWeight=""Bold"" Height=""21"" Text=""Title"" Grid.Row=""0""/> "
    MarkupText = MarkupText & "            <TextBlock Height=""50"" Text=""This is a long text and is about nothing... blablablabla boooooooooooo!"" TextWrapping=""Wrap"" Grid.Row=""1"" /> "
    MarkupText = MarkupText & "        </Grid> "
    MarkupText = MarkupText & "        <Image HorizontalAlignment=""Left"" Width =""36"" Height=""36"" Stretch=""Fill"" Width=""40"" Source=""file://" & Icon & """/> "
    MarkupText = MarkupText & "    </Grid> "

    ListBox1.AddItem MarkupText
    ListBox1.AddItem MarkupText
    ListBox1.AddItem MarkupText
    ListBox1.AddItem MarkupText
    ListBox1.AddItem MarkupText
    ListBox1.AddItem MarkupText
End Sub
[/code]

Sloppy markupcode, but it's up to you to make it nice


Posted By: moe188
Date Posted: 25 February 2010 at 11:13am
thank you very much

-------------
Visual Baisc 6 SP6

Windows XP Pro Sp3, Windows 7
Codejock Xtreme SuitePro ActiveX 15.1.3



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net