Jump to content
Nicolas Caplat

Maxscript - aide :)

Recommended Posts

Ok, je pense que j'ai trouvé en fait:

rollout gifUI "GIF UI" width:210 height:210
(
    dotNetControl dncPanel "FlowLayoutPanel" width:200 height:200 pos:[5,5]

    on gifUI open do
    (
        local pbx = dotNetObject "PictureBox"
        pbx.Width = 200
        pbx.Height = 200
        pbx.Margin = dotNetObject "Padding" 0
        pbx.Image = (dotNetClass "System.Drawing.Image").FromFile @"C:\file.gif"

        dncPanel.Controls.Add pbx
    )
)
createDialog gifUI

 

Share this post


Link to post
Share on other sites
20 hours ago, Nicolas Caplat said:

Ok, je pense que j'ai trouvé en fait:


rollout gifUI "GIF UI" width:210 height:210
(
    dotNetControl dncPanel "FlowLayoutPanel" width:200 height:200 pos:[5,5]

    on gifUI open do
    (
        local pbx = dotNetObject "PictureBox"
        pbx.Width = 200
        pbx.Height = 200
        pbx.Margin = dotNetObject "Padding" 0
        pbx.Image = (dotNetClass "System.Drawing.Image").FromFile @"C:\file.gif"

        dncPanel.Controls.Add pbx
    )
)
createDialog gifUI

 

Cool: tu taquines maintenant en code toi ?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Who's Online   0 Members, 0 Anonymous, 15 Guests (See full list)

    There are no registered users currently online

×
×
  • Create New...