Jump to content

get ID of TitleButton Item[0]


mazluta

Recommended Posts

7 hours ago, mazluta said:

i want to make changes using external JS file

Please describe in more detail what you would like, using a constant in an external file is not a good practice, as this may change as you further add elements.

Link to comment
Share on other sites

ok. i'm trying to write Document Sign Routine.

a document  is enter to the DMS (Document Managment System) app.

the user adds the Invoice no, sum, and the group of signers.

the members of the groups get Mail or SMS or both scheduler until thay sign or unsign.

the member get message like this

http://185.185.135.209:8077/?Act=SignRoutine&Ident=26&ChatID=4&UserID=admin

if you open in chrome (PC) all ok.

image.thumb.png.073030ff8e272f40d4a769124a8b6fa8.png

but in Mobile, the picture get all the screen,

image.thumb.png.adc60679373d50753e7cebfd32ae2bfc.pngI can not open or size with the finger,

I dont see the lower panels...

 

i want to see - by the plain end the screen

 

image.png.7404954192fa4bc51c9f66461cd178e9.png

 

first I work with frame.

and when I show the frame and want to change the text of the TitleButtonfrom "Close" to "Back" on after show or ready

it did not work in 

self.TitleButton.items[0].caption = 'Back".

only if I use AddJs + finction+

AddJs (run the function).

i can not use the global My_Js_Func.js.

i am trying to display the 3 containers as vbox automatically by they dont work as "align=alTop".

so I set the layout as flot and set the top-left-height programmatically (width=100%)

and the container_1 . height := 800; (after I prepare the screen - and load the image) this don't work so - set it with 

   UniSession.AddJS(PdfContainer.JSName + '.setHeight(''' + IntToStr(NewHeight) + ''');');

    NewTop := 3;
    UniSession.AddJS(PdfContainer.JSName + '.setTop(''' + IntToStr(NewTop) + ''');');
 

but - as I say - in the develop PC it's work fine.

in the external server it dont....

i also want to set the size of the ScrollRange to be total of all containers and margin.

and I dont no how to set it.

the : self.ScrollRange := TotalHighet; is not working.

its look like the render has done and it not repaint itself.

 

Link to comment
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.

×
×
  • Create New...