I have a Class that will take a LIST,FROM(Q) and feed it sample data using a VLB. It deals with all the modifiers like colors and styles. I used it for my window previewer
On my GitHub I posted a new class (cbVlbPreview) to enhance Window Preview. I created it to fix problems with LIST controls by using a VLB, then added more.
The Designer Previewer generates a CLW and builds a running EXE. This will be 100% accurate of what you will see at runtime versus the Designer has .Net controls. A LIST can have many modifiers (colors, styles, tree, icons, tips) that the IDE generator does not always handle well or are broken.
[image]
Those ugly distracting colors are u…
!------------------------------------------------------------
! CBVlbPreviewClass (c) Carl Barnes 2021 - MIT License
! Download: https://github.com/CarlTBarnes/WindowPreview
!-----------------------------------------------------------------------------
! For the Window Preview feed the LIST from VLB to replace generated Queue
! Sets * Colors simply (Red on Pink), Styles Green on Yellow, plus Trees, Icons
! Sets sample data for Numbers to max 123,456.12, @d variety, @t @p @s
! "All Preview" class can set @n @p @k sample data to 123,456.12 with .EntryInit()
!-----------------------------------------------------------------------------
! Steps to Implement
! 1. Edit Accessory\LibSrc\Win\WindowPreview.INC (or take from my GitHub)
! 2. After SECTION('Includes') ------ add lines: --------
! INCLUDE('CbVlbPreview.INC'),ONCE
! ListPreview CbVlbAllPreviewClass
! FixListPrv BYTE
! 3. After SECTION('InAccept') ------ add lines: --------
! IF ~FixListPrv THEN !Setup Preview Data VLB
! FixListPrv=1
! ListPreview.Init() !LIST Data Preview
! ListPreview.EntryInit() !ENTRY with 1,234
This file has been truncated. show original