UI Interest Group Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

Demo of dynamic tabs (reorder, detach…) as in modern web browser

[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.

Olivier JOURDAN

Wovalab | Certified LabVIEW Architect |
Comments
Active Participant LabBEAN
Active Participant

Looks good; can you provide the source code to do this (e.g. drag and drop tabs with preview of tab contents)?


Certified LabVIEW Architect
TestScript: Free Python/LabVIEW Connector

One global to rule them all,
One double-click to find them,
One interface to bring them all
and in the panel bind them.
Member WG-
Member

Can't call it very memory efficient... The process takes nearly 65 MB ram... when no picture is loaded.

Active Participant Olivier-JOURDAN Active Participant
Active Participant

@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…

Olivier JOURDAN

Wovalab | Certified LabVIEW Architect |
Active Participant Thoric Active Participant
Active Participant

This is an awesome display of XControls. Thank you for pushing the boundaries of LabVIEW that little bit further, and demonstrating just how powerful it can be!

Thoric (CLA, CLED, CTD and LabVIEW Champion)


Active Participant Olivier-JOURDAN Active Participant
Active Participant

@Thoric : IMO, XControls are great to implement Ui and in very elegant way. They have some limitation, but can be really useful and powerful.

Olivier JOURDAN

Wovalab | Certified LabVIEW Architect |
Member brijesh
Member

I congratulate for your effort.

It is really nice.

Keep it up.

Kudos.

CLAD
Labiew programmer
Active Participant FraggerFox Active Participant
Active Participant

Looks nice! Did you use any Win32 dll calls in this application?

-FraggerFox!
Certified LabVIEW Architect, Certified TestStand Developer
"What you think today is what you live tomorrow"
Active Participant Olivier-JOURDAN Active Participant
Active Participant

This a full LabVIEW development.

Olivier JOURDAN

Wovalab | Certified LabVIEW Architect |
Active Participant FraggerFox Active Participant
Active Participant

Cool! I would like to know how you activate the "preview pane" which appears when we drag the tabs to other position.

-FraggerFox!
Certified LabVIEW Architect, Certified TestStand Developer
"What you think today is what you live tomorrow"
Active Participant Olivier-JOURDAN Active Participant
Active Participant

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.

Olivier JOURDAN

Wovalab | Certified LabVIEW Architect |
Member Pandiyan
Member

hi dude

Really nice work...

Raj
Active Participant viScience
Active Participant

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

Member catkin
Member

very cool,thanks

Active Participant Olivier-JOURDAN Active Participant
Active Participant

Free toolkit including this XControl is now available here --> https://decibel.ni.com/content/docs/DOC-21668

Olivier JOURDAN

Wovalab | Certified LabVIEW Architect |
Contributors