Forum Replies Created
-
AuthorPosts
-
emilevanpassel
ParticipantActually in a previous version I would use href’s to open a file, after the user selects a file to open. The file is prepared to be in the users temp directory. This works, I only need to put in a normal href, pointing to the file. Issue is that in that case all the files (attachments in a email) need to be prepared before the email can be shown. This works for a small number of attachments, not for a large number of attachments. In that case after selecting the email, the user is presented with a long delay, during which the application is not responding. So I was looking for a way to prepare the attachment after selection, so the delays for the user would be more acceptable. You are right that it is not a safe way to do with a function call inside a href. Maybe I should go back to the previous solution and use Thread() to solve the non-responsiveness of the application. Problem is I don’t know how much I can trust the Thread() option. Any tips?
emilevanpassel
ParticipantJust had some idea that could work and it seems to work very fine…
What I saw in Hwnd is that CreateWindow defaults x and y to 0. I changed this to make y default to 3000. This seems a bit strange, but it works. No more flickering in VertControl, RepeatControl, etc. Makes display more friendly on the eyes 😀
Of course the setting y = 3000 is a bit extreme, but it works. Maybe a negative value also works. In the past, working with C++ on BeOS, I used off-screen area to construct display elements. I never realised that under Windows this could also be done.
emilevanpassel
ParticipantI also think that the PaneControl is causing the problems in RepeatControl. I am trying to make a RepeatControl that will work without the PaneControl. Thanks for the information.
I also read on the website that maybe .Net would be used in the future. Does it mean that MFC will be thrown out then?
emilevanpassel
ParticipantI noticed when I commented out the WindowRefresh, that on the top of the screen the elements that needed to be inserted were drawn, before inserting them. The situation is like this:
1. In the lower left corner of the screen is a RepeatControl, that is automatically filled with data from a query. The query is stripped and the various parts are inserted into the RepeatControl, showing attributes, data and options like ‘equal to’, ‘less than’, etc.
2. When the RepeatControl is filled, I see that the FieldControls that are inserted into the RepeatControl are drawn on the top of the screen, being followed by a screen redraw.
3. When the WindowRefresh is commented out, I notice that the FieldControl on top of the screen contains the data that is finally inserted into the RepeatControl, but the FieldControl has a very different shape. It is about 4 times higher and 4 times larger then when it is inserted into the RepeatControl.What it seems to me is that the Control method Construct is building the FieldControl, then resizes it, fits it into the RepeatControl and then forces a WindowRefresh to wipe out the FieldControl that was build up in the top of the screen. Although I don’t know the details of the GUI creation…
-
AuthorPosts