Home
  • Products
  • Solutions
  • Support
  • Company
  • Products
  • Solutions
  • Support
  • Company
Community Custom IC SKILL Adding an image to a form, and other form questions

Stats

  • Replies 7
  • Subscribers 144
  • Views 908
  • Members are here 0

Adding an image to a form, and other form questions

blankman
blankman 2 months ago

Hi all, I’m trying to create a form using “hiCreateAppForm”, and trying to place an image in the form - I couldn't locate the relevant field function in the documentation. I believe this is possible as I’ve seen it done elsewhere. Is there a field function alongside the other field functions such as hiCreateButton etc, that allows for this to be done? Or is there another method that is typically used?

 

Also wondering,

  • using the “?maxSize” function, is it possible to constrain the form only to the X dimension, but allow the Y to be varied?
  • is it possible to keep the form on top of other Virtuoso windows?
  • and is it possible to open the form directly under the mouse?

 

Thanks in advance,

Kind rgds,

Brian.

  • Reply
  • Cancel
  • Cancel
  • AurelBuche
    AurelBuche 2 months ago

    Hi, 

    To place images in your form you should use hiCreateLabel and hiCreate.., hypertext/HTML fields

    Then you can insert an image using HTMl syntax (it’s quite simple)

    about ?maxSize I am almost certain that it’s not possible to restrain the size in only one direction (maybe try with -1 or 0 but I don’t believe it will work)

    For the form on top of other windows and the startup position, this will mostly depend on your windows manager (windows, xfce, gnome etc.)

    Hope this helps

    cheers

    Aurelien

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • AaronSymko
    AaronSymko 2 months ago in reply to AurelBuche

    Also, for opening a form directly under the last mouse click, you can supply a second argument to hiDisplayForm as -1:-1.  For example:

    hiDisplayForm(formId -1:-1)
    
    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • blankman
    blankman 2 months ago in reply to AaronSymko

    Thanks Folks, very helpful

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • AurelBuche
    AurelBuche 2 months ago in reply to AaronSymko

    I did not know that -1:-1 would place it under the cursor. That's a really good info. Thanks !

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • AurelBuche
    AurelBuche 2 months ago in reply to blankman

    Also for your ?maxSize issue, to restrain only in one direction you could simply use a huge value for the other one (bigger than the screen width/height) 

    ?maxSize 500:10000 should do the job

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • Andrew Beckett
    Andrew Beckett 2 months ago in reply to AurelBuche
    AurelBuche said:
    I did not know that -1:-1 would place it under the cursor. That's a really good info.

    Nor did I! It's always good to learn something new (good to see that it's documented behaviour, but I've not had any reason to look at the documentation about hiDisplayForm for a very long time)

    Andrew

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • blankman
    blankman 2 months ago in reply to Andrew Beckett

    Thanks AurelBuche, also another way I'm now realizing:

    ?minSize 901:80
    ?maxSize 901:632

    Brian.

    • Cancel
    • Up +1 Down
    • Reply
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2023 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information