![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Erel,
I create a form on the desk top in landscape orientation; before running the program (A) on the device I set, manually, the screen orientation to landscape. I show an image by some click. It works fine. Now I change the orientation either manually or I start in addition another program which also changes the orientation. Returning to program A the image ist lost and also cannot be shown again. It sounds complicated, therefore I have attached a small program to illustrate the problem. Can you explain these strange things and do you see a solution? Harry |
|
||||
|
Using the FormLib library you can catch the Resize event.
You must add a FormLib object to your form if you want to handle screen orientations. |
|
||||
|
Hi,
Im not an expert in this isue, if any, but in the resize event you should test the witdh and height of the form and re-position it in the form. The resize event alone doe not change the form item position, it only allows you to execute code on the resize event...
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
|
|||
|
Paulo,
In the test program I just have one small image positioned in the middel of the screen. Whatever the orientation is, it should be visible without repositioning. I worked with and without the resize event. Using the resize event I refreshed the destination rectangel. But even loading the image again does't show the image. Harry |
|
|||
|
Hi,
Use of the DrawImage method does not improve the situation. I have attached a somewhat more elaborated test program. Running it you will see the problem. The image cannot be made visible again by (re)drawing it in the resize event nor on a second click on the form. Worst is that I don't see a work around. Harry |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bitmap Value Lost? | fjsantos | Questions & Help Needed | 7 | 06-16-2008 07:04 PM |
| Change Image width and Height | Georg | Questions & Help Needed | 3 | 05-13-2008 04:19 PM |
| i lost treeview.dll after loading V6 | dan kabestan | Questions & Help Needed | 1 | 01-03-2008 12:57 PM |
| Change screen orientation programmatically?? | HARRY | Code Samples & Tips | 11 | 10-09-2007 03:40 PM |
| sceen orientation | Filec | Questions & Help Needed | 3 | 07-13-2007 01:34 PM |