[Update] XControl available here [Update]
Web browsers have democratized the "dynamic" tab i.e create on the go, reorder, detach, merge…
Having the same behavior is not so easy in LabVIEW.
I propose one solution here, with an exe demo (see the zip file, need LVRT 2009 to run).
The behavior and the lok&feel is "inspired" by Apple's web browser, SAFARI.
The demo consist in a little app, named PictureViewer, displaying picture file (*.jpg, *.png and *.bmp).
You just have to drag&drop file from explorer window to selected tab.
You can reorder the pictures, detach them to display on second display, etc…
There are still bugs to fix or improvements to make but I hope it's not too bad.
Last thing, this is a full LabVIEW development.
Comments, ideas and so on are welcome.
Looks good; can you provide the source code to do this (e.g. drag and drop tabs with preview of tab contents)?
Can't call it very memory efficient... The process takes nearly 65 MB ram... when no picture is loaded.
@LabBEAN : I'm sorry, but I can't provide source code because is part of non-released project we are developing right now.
However, the d&d with preview is manage by a "dynamic" VI responsible of the picture display and the mouse position.
@ WouterG : I agree, it's not memory efficient at all Actually this is the result of a performance issue workaround. Indeed, width of each tab is dependent of the window width. Redrawing tab can be really cpu consuming, so, in first and quick approach, I've decided to load tab pictures into memory at the initialization to avoid redraw. There are a lot ways to improve this, work is in progress…
@Thoric : IMO, XControls are great to implement Ui and in very elegant way. They have some limitation, but can be really useful and powerful.
I congratulate for your effort.
It is really nice.
Keep it up.
Kudos.
Looks nice! Did you use any Win32 dll calls in this application?
This a full LabVIEW development.
Cool! I would like to know how you activate the "preview pane" which appears when we drag the tabs to other position.
Don't repeat it to others, but it's possible that we deliver this XControl and some others soon. It should be provided with the code of the demo and maybe full access to XControl code. If you're interested in, feel free to join our group https://decibel.ni.com/content/groups/saphir-toolkit to be warned of the release.
hi dude
Really nice work...
Very Nice work. I am working on a project to emulate the NI Distributed System Manager for DAQmx and TDMS. I gave up on the dynamic tabs but do have it working well with subpanels and drag and drop hypergraph vi's. Maybe we can work out a trade
very cool,thanks
Free toolkit including this XControl is now available here --> https://forums.ni.com/t5/SAPHIR-Toolkits-Documents/ViBox-XControls-datasheet/ta-p/3531683