LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Check out our User Interface Code Repository Files or visit the LabVIEW Wiki User Interface Portal


Tags
MDI    
 
Reply to this topic Start new topic
> Using sub-panels to create child windows.
Rating 5 V
Michael_Aivaliot...
post Jun 30 2003, 01:36 AM
Post #1


Confucius say: Crowded elevator always smell different to midget
Group Icon
*****

Admin
Posts: 2363
Joined: 13-October 02
From: Planet Earth
Member No.: 2
Using LabVIEW Since:1994
LV:8.5 ,8.2.1 ,7.1.1
Greece Canada United States My Blog My Gallery


With all this talk lately of subpanels and how they compare to "true" child windows, I decided to see if i could create this same effect with the new sub-panels in LV7.

In the LabVIEW examples, there is a VI that shows how you can dynamically register events and click+drag a front panel object. Using this same approach, I tried to do the same with subpanels. The only drawback is that when you register the subpanel event, you lose the ability to click on the subpaneled VI.

I thought it would be nicer if you were limited to dragging the titlebar (just like child windows). I then proceeded to edit the subpanel frame and make it "look" like it had a titlebar. Oops, editing the sub-panel frame is forbidden! I then decided to embed the subpanel in a cluster along with a boolean. the boolean would simulate the titlebar. This approach seems to work well. The only thing left to do is track when the mouse is on the edge of the cluster and perform resizing (like child windows).

Too bad resizing subpanels and dragging isn't automatic. :roll:


Attached File(s)
Attached File  parent_child.llb ( 65.3K ) Number of downloads: 914
 

--------------------


Tags
MDI    
Go to the top of the page
+Quote Post
Ad
post Jun 30 2003, 01:36 AM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
B Chavez
post Apr 6 2005, 10:56 PM
Post #2


More Active
**

Member
Posts: 42
Joined: 13-February 05
Member No.: 1591
Using LabVIEW Since:2001
LV:8.2.1 ,7.0 ,8.5
United States us_california Nothing Selected


I have recently encountered a similar problem with events on a top level that also contains a subpanel. I am losing the ability to click in a subpaneled VI after an event has occurred in the top level.

I have tried my code in LabView 7.1 and the problem still exists; is this possibly fixed in LabView 7.1.1? If not, has anyone found a work around? For me, Subpanels really lose their usefullness if suddenly you can no longer interact with the SubVI running in it.

I appreciate any feedback.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 22nd November 2008 - 03:35 AM