Jump to content

disable scroll-function of mainform


erich.wanker

Recommended Posts

Hello,

 

how can i disable the scroll-function of mainform...

 

A simple " {overflow-x: hidden !important;}"  hides the scrollbar - BUT the form still scrolls the content ...

 

Example:

MainformDisplayMode = mfPage;

one unibutton1 on Mainform .. if i click the button -> uniForm1.showmodal; 

the UniForm has a left-Value of 3000;

 

.. so the button of mainform is not visible - because the mainform-area scrolles 3000 pixels to the right- to show the UniForm1.

 

i want to create the UniForm1 in a not visible area and the Mainform should be as it is .. without scrollbars and without move his content ...

 

And suggestions?

 

ThanX

 

Link to comment
Share on other sites

Hello,

 

i made a little Testcase ...

 

  • OnShow - i want to slideIn a UniForm
  • OnClose - i want to slideOut a UniForm

 

The MainForm should not show any Scrollbars and should not move the content..

 

..the "OnClose" doesnt work correctly .. it should close the UniForm if the "animate"-Function is finally finished - but my javascript-knowledge is tiny ... ;-)

 

ThanX for suggestions

 

Erich

test.zip

Link to comment
Share on other sites

Hi Delphi Developer .. Thanx .. 

 

But:  the 2 Buttons of the MainForm are the problem.. ... the buttons on Mainform scrolls to -3000px  if you create a Uniform.left at +3000 px

 

have you any idea how to tell mainform it should not move his content ?

 

ThanX

 

Sorry .. i forgot: THIS HAPPENS JUST IN CHROME BROWSER

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...