Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Change the size of IWMemo and Frame in runtime?


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: May 15, 2016 3:54 AM Last Post By: Alexandre Machado
Eitan Arbel

Posts: 508
Registered: 2/24/13
Change the size of IWMemo and Frame in runtime?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 12, 2016 12:13 PM
hi guys,.

i need to make a kind of a message board.
in that board, every message should be in it's own Frame, and it will have some message and user info like username, date&time, icon etc.., and a memo.
the frames will be created in runtime (no problem there)
i don't want to make the frames and message memos in a fixed size.
i need the frame and memo in it, to fit the size of its content.
think of it something like this forum's messages.

any idea how to set the height to fit the message content, and the frame to fit the info region+ the memo

Thanks

Edited by: Eitan Arbel on May 15, 2016 1:10 PM
Alexandre Machado

Posts: 1,754
Registered: 8/10/13
Re: Change the size of IWMemo and Frame in runtime?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 15, 2016 3:54 AM   in response to: Eitan Arbel in response to: Eitan Arbel
Eitan Arbel wrote:
hi guys,.

i need to make a kind of a message board.
in that board, every message should be in it's own Frame, and it will have some message and user info like username, date&time, icon etc.., and a memo.
the frames will be created in runtime (no problem there)
i don't want to make the frames and message memos in a fixed size.
i need the frame and memo in it, to fit the size of its content.
think of it something like this forum's messages.

any idea how to set the height to fit the message content, and the frame to fit the info region+ the memo

Thanks

Edited by: Eitan Arbel on May 15, 2016 1:10 PM

WebApplication.FormWidth and WebApplication.FormHeigh will give you the browser client area dimensions. Is that enough information for you to calculate it?

When the form renders for the first time you can set its dimensions based on this and use anchors in your IWMemo, so it will correctly resize when the browser window also resizes.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02