Jump to content


Photo

Displaying TNxButtonItem Value related to TNxMemoItem


  • Please log in to reply
7 replies to this topic

#1 justus

justus
  • Members
  • 36 posts

Posted 16 January 2009 - 11:30 AM

Hi Boki,

is it possible to display a value of a TNxButtonItem with the linefeed images according to the Memo item?
The EditOptions of the TNxButtonItem object are set to [epDisablePaste,epDisableTyping] and can only be modified by a special popup editor.

I tried to 'copy' the memo functionality but without success sad.gif

Thanks!

Best regards,
Justus

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 16 January 2009 - 05:00 PM

Hello Justus,

Can you please send me small demo to I see what is needed. Thank you.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 justus

justus
  • Members
  • 36 posts

Posted 16 January 2009 - 05:24 PM

Attached File  justus2.zip   269.16KB   2 downloads

No problem! If you select popupmenuitem 'Value with 3 lines' the value of the buttonitem should be displayed in same manner as memo value above.

TIA!

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 16 January 2009 - 05:52 PM

Hello Justus,

Thank you for you sample demo

But, I am sorry but still don't understand how it needs to work. Can you please give me more details.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#5 justus

justus
  • Members
  • 36 posts

Posted 16 January 2009 - 06:20 PM

Hello Boki,

I will do my best, please have a look to my code:
CODE

procedure TForm1.Item21Click(Sender: TObject);
begin
NxButtonItem1.Value := '1'#13'2'#13'3';
end;


I just want to have the #13 chars of NxButtonItem1.Value replaced with the related glyph image (related to memo display value).
My popup window let the user create a multi line string (TStrings) and I want it to be displayed as in MemoItem (with the carriage return char as image from system resource).

Attached File  demo_needs.jpg   5.5KB   0 downloads

Nothing more.... cool.gif

Best regards

#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 16 January 2009 - 08:34 PM

Hello Justus,

I am sorry, I am not sure that this may be made.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#7 justus

justus
  • Members
  • 36 posts

Posted 18 January 2009 - 08:04 PM

QUOTE (Boki (Berg) @ Jan 16 2009, 08:34 PM) <{POST_SNAPBACK}>
Hello Justus,

I am sorry, I am not sure that this may be made.

Best regards


Hi Boki,

what a pity! Can you imagine, that there would be a way to 'extend' the TNxMemoItem for that purpose? If TNxMemoItem would have a button (right corner according to TNxButtonItem) I could use that class.....???

Best regards,
Justus

#8 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 18 January 2009 - 09:21 PM

Hello Justus,

Unfortunatelly sad.gif , I have no in plan to develop this feature. I will like to create edit which can have multiple buttons on both sides.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users