Jump to content

Farid2010

Members
  • Posts

    41
  • Joined

  • Last visited

Posts posted by Farid2010

  1. Hi

    I need your help. I created a sub panel in the front panel and wrote the code to open another Vi inside this sub panel. It works,but the problem is the Vi that I want to open here has several subvi's dependencies which do not open inside the sub panel.

    What happens now is that the Vi opens in my sub panel but when I click in a button inside that vi ( which is linked to another sub Vi) ,the linked sub vi Opens in a full page( in a seperate window), not inside the sub panel ! How can I modify it in a way that all subsequent Vis also open inside the sub panel?

    Can you help me in this regard?

    my code image is attached.

    Thanks

    post-18013-0-63152200-1299529988_thumb.p

  2. OK Thanks Ben

    Same here when it comes to ActiveX.

    I would start dropping and wiring invoke nodes and property nodes and wiring them to the ActiveX wire and look for something that looks good or you could try the help for those properties to get a clue.

    A very long time ago it was possible to get the VBA version of the help for MS stuff by doing an advanced install of the MS stuff and make sure that "Help for VBA" is checked. It will not give you LV code but it will give you VBA examples that can be used as inspiration in LV.

    Ben

  3. Hi

    I want to open a video and after finishing that video which is 10 second, a dialog box (another sub vi) comes up and asks for other steps.I used sequence frame (both timed and flat) but the two events still execute simultaneously. I don't know how to use sequence frames in a way that the subvi runs just after the video playing time is done. Can anybody help?

    Here is my video opening codes

    Thanks

    post-18013-0-31920900-1297369436_thumb.p

  4. Thanks Ben.

    I have another question. I put the activeX container in front panel and inserted windows media player into the container. The problem is when the program loads the video, the windows medai player expands to a bigger window which goes out of my container!! How can I fix it? I want it play inside the container.

    Tnx again

    Farid

  5. Francois! I am out of town now and just saw your comments, Thank you so much for youre guides. I 'll try them when i am back to work. You helped me a lot so far. Thanks

    I was thinking of corrupted files when I sent you the test VI. But it's so rare...

    Concerning your questions, it surely is possible to use the events to do what you want. You need to activate/deactivate the events based on the last action performed. Wiring a constant to the references deactivates them, and wiring the correct reference activates them. Establish a list of the sequences you need to achieve what you want and code them accordingly as shown in the VI I posted.

    (1) What's the detailed list of user interactions for this? That's what you need to code. Ex: When left-click is detected, show the scroll down pictures and activate two choices: a) if mouse leaves, close the drop down menu or b) if user left clicks again, select it. In the example I showed, I used the Mouse Up event, but if you replace those by Mouse Down, it might work without further modifications. Try it, and if you don't succeed, upload your modified code to show what you tried.

    (2) You could add to the code to check for a condition when the user selects a picture that should have a second drop down menu to show this second picture array (make it visible) and position it where the user had clicked. Configure the events to react exactly the same way has for the first array of pictures (select or hide) depending on the mouse down/leave events.

    (3) You'll notice, in the Event cases, that there is an inside terminal with a list of things like buttons, coords, ctl ref, etc. The button terminal lists which button is activated. I'm not sure how you can scroll your list with the scroll button of the mouse, but it might be doable. Never tried that.(I don't think there is a "Mouse Scroll?" event)

  6. Froncois,thank you so much. it just worked!! i think there were 2 corrupted images among that directory files which made it not functioning. thanks. I have 3 questions :

    1- now when i click and hold the mouse left button, it shows the pictures and select the picture when i hold the mouse on the picture and then release the left button. Is it possible to make it like normal drop down which by first click it pulls down and shows the pictures and then selecting the picture just by clicking on that?

    2- is it possible to make the combination drop down menu ( see the image) by using picture array?

    3-Is there any way to scrolling pictures by scrolling the middle button of mouse?(i need this function for another user interface)

    Again, Thank you a lot and appreciate your patience and kind effort.

    I think the pictures are there...

    What is the size of your images???

    Resize the picture frame in the array to show more if needed, but if they're huge, use an image editor to reduce the pixels to what you need to display in the array. I used a 32x32 picture, but enlarge it to what you want. It doesn't have to be square. However, the array elements are not resizing automatically to your picture size.

    post-18013-036787700 1285977592_thumb.jp

  7. Froncois!Thank you so much for your kind effort. I did exatly what you showed in video. Now it shows this error message after selecting "current folder". I don't know what is wrong!!!!

    Browse to the folder that contains a list of your images (the usual double-clicks to open the folder). When you see the png files listed, select "Current Folder" at the bottom right.

    <object id="scPlayer" class="embeddedObject" width="634" height="478" type="application/x-shockwave-flash" data="http://content.screencast.com/users/normandinf/folders/Jing/media/41ae1109-54db-438b-b200-e462ec7e9383/jingh264player.swf" >

    <param name="movie" value="http://content.screencast.com/users/normandinf/folders/Jing/media/41ae1109-54db-438b-b200-e462ec7e9383/jingh264player.swf" />

    <param name="quality" value="high" />

    <param name="bgcolor" value="#FFFFFF" />

    <param name="flashVars" value="thumb=http://content.screencast.com/users/normandinf/folders/Jing/media/41ae1109-54db-438b-b200-e462ec7e9383/FirstFrame.jpg&containerwidth=634&containerheight=478&content=http://content.screencast.com/users/normandinf/folders/Jing/media/41ae1109-54db-438b-b200-e462ec7e9383/2010-10-01_0941.mp4&blurover=false" />

    <param name="allowFullScreen" value="true" />

    <param name="scale" value="showall" />

    <param name="allowScriptAccess" value="always" />

    <param name="base" value="http://content.screencast.com/users/normandinf/folders/Jing/media/41ae1109-54db-438b-b200-e462ec7e9383/" />

    <video width="634" height="478" controls="controls"><br />

    <source src="http://content.screencast.com/users/normandinf/folders/Jing/media/41ae1109-54db-438b-b200-e462ec7e9383/2010-10-01_0941.mp4" type="video/mp4;" /><br />

    <b>Your browser cannot play this video. <a href="http://www.screencast.com/handlers/redirect.ashx?target=viewingembededhelp">Learn how to fix this</a>.</b>

    </video>

    </object>

    post-18013-022072900 1285941095_thumb.pn

  8. Yes I have png files. I tried the new file you just sent. again the same problem. As you see in the image, when i select the folder which contains png files nothing is selected in "file name" section. it doesn't select neither by selecting and hiting open button nor by double click or etc.!!!

    Did you have any PNG files in the directory? You can change it in the code if you use other formats. Also, I've limited it to the four first file in the folder for the demo, but you can change that in the code.

    I've changed the code to ask for the folder on startup.

    <a href="http://content.screencast.com/users/normandinf/folders/Jing/media/6fa447b3-276b-484f-a496-3d3f10261a04/2010-10-01_0905.png"><img'>http://content.screencast.com/users/normandinf/folders/Jing/media/6fa447b3-276b-484f-a496-3d3f10261a04/2010-10-01_0905.png"><img class="embeddedObject" src="http://content.screencast.com/users/normandinf/folders/Jing/media/6fa447b3-276b-484f-a496-3d3f10261a04/2010-10-01_0905.png" width="306" height="284" border="0" /></a>

    PictRing.vi

    post-18013-038442600 1285939484_thumb.pn

  9. Thank you guys. as michael said i have not that much experience but i m trying to either make my project and also learn labview. it's hard but i ma really interested . I have to read more about xcontol and picture controls.

    The problem is we are pretty much stuck with the controls we are given. As we don't have access to the control canvas and the "OnRedraw" event, we cannot change the control (with the exception of a few cosmetics). Everything we do to get around it is really a kludge and not for the faint of heart.

    You are probably better off finding an Active X or .NET control tat supports images and using that.

  10. Sorry Francois I should have written the version next to it.

    Farid,

    when you upload code that is not in the same version as the one you show in your profile, please add a note for the version the VI is saved in.

    I don't have LV2010 installed, so I can't help you. But I wouldn't have tried if there was a note next to your uploaded file. ;)

    Worst case, if the file is corrupted and the code inside is very complex and hard to duplicate, perhaps NI can help?

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.