c++ - Scrolling window in U++ -


I am currently writing a window application using U ++ IDE. Contains more fields to display compared to fit in a field in a window used for data entry, so I wanted to add a scrollbar to my window. So far, very good, I looked up and tried to apply it in my application. My problem is - it does not just scroll. I suspect that I have to do with multiple window applications, but I'm not sure . Here's how my app is structured:

  GUI_APP_MAIN {Main window app; ... app.roun (); } Structure main window: Top window {Patient frame dlg; ... // opens a window that displays a patient overview of zero new_patient () {... dlg.Execute (); } ... struct PatientFrame: TopWindow {ProcessFrame proc; ... // opens the window in which the scrollbar should be null new_process () {... proc.Execute (); }} Straight Process Frame: Top-window {... // About 1: 1 Example Scrollbar SB; Virtual Zero Layout () {sb.SetPage (GetSize (). Cy); } Virtual Zero Mouse VL (Point, Int Zelletta, DeWord) {SB. Weil (Zedlata); } Bool key (dword key, int) {return sb.VertKey (key); } // n I have the number of entries, each entryfield is 21 pixels high zero setcount (int n) {SB ascertle (n * 21); } Zero Scroll () {Refresh (); } Void buildList () {// creates the contents of the window ... // sets the size for the scrollbar setcount; } ... typed file publication frame KLASSNAME; Process Frame () {Settract (0, 0, 720, 435); Title ("Process Frame") Size suitable (). Zoomable (); ... adfram (sb); Sb.WhenScroll = Twitter (scroll); Sb.SetLine (21); }}   

The scrollbar now automatically shows itself. Its size is set correctly, since I minimize the window, the scrollbar adjusts itself, when I change it bigger I also tried to play with a line size, again, scrollbar Just adjusts just fine. The only problem is that it does not really scroll to the visible area.

Any help would be appreciated.

You have been omitted from the part where you actually read the scrollbar (the original example in this draw ) The scrollbar does not adjust anything by itself, for example the figures are actually dragged based on their status. I have not had much experience with U ++, but I think you need to increase the scrollback of the scrollbar to adjust the position of widgets before refreshing.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -