Jump to content

ScrollBars on form don't work!


Petzy

Recommended Posts

Hi, 

I have the following design:

MainForm has a button.

I click that button and it brings up another Form as ShowModal()

That other form contains the following: an UniMainMenu, an UniPageControl, and TabSheets.

Form size is set as Height 950 and Width 2550

UniPageControl is set to Align to Client.

If I set AutoScroll on the form - NO scroll bars show.

Why is this not working?

The entire form locks on to my resolution, which is less than 2550 width and it's driving me crazy. It should stay as I've set it, 2550 width and 950 height for the form - and should have the scrollbars. At the moment its not and due to that its not showing everything I have put into the TabSheets at design time.

If I set the UniPageControl to Align none or custom and just drag it across the form height and width at design time the scroll bars appear but they aren't of the desired lenghts.

Once I set the UniPageControl back to align Client or any other align - then the Range properties for the scrolls bars on the form default to 0 and no scroll bar appears. If I input the range manually, it unchecks AutoScroll. If I check back AutoScroll it makes the Range 0 again. Smh.

I'm using the trial edition

Link to comment
Share on other sites

7 minutes ago, Sherzod said:

Please create a test case and give a download link, we will try to analyze.

I just lost 8 hrs on this thing alone. Why do you need a test case so I can waste another hr?

Open up Delphi - Create the unigui project - Add another application form to the project - add a button to the main form, in the button onclick event put:

anotherForm.ShowModal();

Set the other form Height to 950 and Width to 2550

Open the other form - drop a UniMainMenu to it - now drop an UniPageControl and set it to align to Client - add a tabsheet to the pagecontrol

On the tabsheet - drop 4 UniChart's - 1 in each corner of the tabsheet

Run the program. Do you have scrollbars or not? You shouldn't have any - it your monitor resolution is lower than 950x2550 h/w the TabSheet and its contents will appear cut after the middle and you won't see the 2x UniCharts from the bottom right and upper right corners

Set autoscroll. Run it again. No scrollbars? Welcome to my world.

Not even the demos are helpful as they are all made intentionally small and don't scale or scroll apropriately. Not even using a ScrollBox - that just makes it even worse, even in the demo.

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...