Author |
Topic  |
pierrotsc
  
USA
497 Posts |
Posted - May 10 2021 : 18:36:53
|
I use the free embedded nexus DB binary. I use their approach to have a unit called embeddeddm created before my mainform to activate my database and tables. I have some imageendbview that do not load the graphic anymore. the component is blank. In design time, it looks like it is showing but becomes blank when i run the app. If i get rid of the embeddeddm unit and move the database and tables to the mainform, it works.
Is it something that changed in the imageendbview component ? Best Pierre |
|
xequte
    
38803 Posts |
|
pierrotsc
  
USA
497 Posts |
Posted - May 11 2021 : 09:03:26
|
I see. but it is not really a component you drop on the form. You have to extract the image from the database and then assign it to an imageenview. Not really what i want to do but if it is the only way i can see if i can make it work. the imageenviewDB was great. |
 |
|
pierrotsc
  
USA
497 Posts |
Posted - May 11 2021 : 11:47:48
|
Not sure really on how to make it work. i have a table with a few blob fields for my graphics. in this example i only want to retrieve the field called HorizWB_View. fDBBitmap := TIEDBBitmap.Create(embeddeddm.DataSource_Calibration, 'HorizWB_View', 'HorizWB_View' );
Not really sure if i am supposed to replace 'image' and 'name' with my field. when i write ImageEnView_Horiz.SetExternalBitmap( fDBBitmap ); FreeAndNil( fDBBitmap );
Nothing is showing up. What am i doing wrong ? Thanks. |
 |
|
pierrotsc
  
USA
497 Posts |
Posted - May 11 2021 : 11:52:11
|
I also tried fDBBitmap := TIEDBBitmap.Create(); fDBBitmap.DataSource := EmbeddedDM.DataSource_Calibration; fDBBitmap.ImageBlobField := 'HorizWB_View'; ImageEnView_Horiz.SetExternalBitmap(fDBBitmap); |
 |
|
xequte
    
38803 Posts |
Posted - May 12 2021 : 01:00:31
|
Hi Pierre
Sorry, I wasn't saying that you needed to remove the TImageEnDBView, just pointing out that TImageEnDBView is unlikely to have changed since about v6 so the code issue is likely to be elsewhere.
For TIEDBBitmap, which of your database fields is the filename or name of the image? Which one is a blob field containing the image (same as the DataField property of TImageEnDBView )?
Nigel Xequte Software www.imageen.com
|
 |
|
pierrotsc
  
USA
497 Posts |
Posted - May 12 2021 : 09:05:23
|
Nigel, i am attaching a sample project. If you do not have nexus DB, you can get the free binaries from get it. As you can see, the imageenDBview is empty. If i move the table from the dmembedded unit to the main form, it works. I know it used to work. not sure when something broke. Maybe you can find out. Best
attach/pierrotsc/2021512955_test.zip 28.21 KB |
 |
|
pierrotsc
  
USA
497 Posts |
Posted - May 16 2021 : 12:04:10
|
Nigel, have you had a chance to check with the imageenView DB is not loading ? My other DB components like combobox load fine. just not the iamgeen. Best |
 |
|
xequte
    
38803 Posts |
Posted - May 16 2021 : 19:01:06
|
I'm sorry I haven't had a chance to look at this.
I don't have Nexus DB and can't install it on my dev machine.
Nigel Xequte Software www.imageen.com
|
 |
|
pierrotsc
  
USA
497 Posts |
Posted - May 16 2021 : 19:25:06
|
You can have it for free like i did. Just open getit from delphi main page and search for it. like i mentioned in an earlier message, the binaries are free. |
 |
|
xequte
    
38803 Posts |
Posted - May 16 2021 : 19:35:54
|
Hi
It's not the cost. This machine has to be very clean, so I cannot install anything unrelated onto it. Can it work without being installed? e.g. can you upload the DLLs?
Nigel Xequte Software www.imageen.com
|
 |
|
pierrotsc
  
USA
497 Posts |
Posted - May 16 2021 : 19:43:25
|
I have no idea if uploading the dll would work. it installs components in delphi and some binaries to edit tables and database. Maybe it is the latest update from Nexusdb that broke it. The thing is that in design time, the image shows up but when you run the app, it does not. Never mind, i can just put all the tables and database on the mainform. It makes the screen sloppy due to too many components. best pierre |
 |
|
xequte
    
38803 Posts |
Posted - May 16 2021 : 19:48:43
|
Hi Pierre
I'm sorry for the difficulty.
Nigel Xequte Software www.imageen.com
|
 |
|
pierrotsc
  
USA
497 Posts |
Posted - May 16 2021 : 19:50:23
|
no problem. it is certainly something i am doing. used to work though. i'll work on it. if you have not changed your code on imageendbview, then it may be nexus. |
 |
|
pierrotsc
  
USA
497 Posts |
Posted - May 20 2021 : 17:17:59
|
On the same line, i do have issues and it is not related to nexusdb. I have an imageenview with a wallpaper. The wallpaper shows up if i set the designtimeview as dvblank but when i run the app the iamgeenview is blank. |
 |
|
xequte
    
38803 Posts |
Posted - May 20 2021 : 17:24:48
|
So the wallpaper has been set at design time?
If you call ImageEnView1.Invalidate() or ImageEnView1.Update() at runtime, does the wallpaper appear?
Nigel Xequte Software www.imageen.com
|
 |
|
pierrotsc
  
USA
497 Posts |
Posted - May 20 2021 : 17:44:55
|
never mind. it works in the demo. got to be something i am doing or a conflicting component. the weird this is that it used to work. |
 |
|
pierrotsc
  
USA
497 Posts |
Posted - May 20 2021 : 17:51:04
|
It shows in design but goes blank in runtime. This code has not changed though.
 |
 |
|
pierrotsc
  
USA
497 Posts |
Posted - May 20 2021 : 18:12:12
|
I have modified the thumbnail demo. i added a small imageenview with a picture of a chain inside. you see it in design time but it goes away in runtime.
attach/pierrotsc/2021520181144_Thumbnails2.zip 85.66 KB |
 |
|
pierrotsc
  
USA
497 Posts |
Posted - May 21 2021 : 10:23:03
|
Nigel, when you have a chance, run the latest demo i uploaded. i have a small imageenview i added at the bottom left where you can see a chain wallpaper. when you run it, it's gone. i bet if i solve that i may solve my nexusdb issue too. Thanks |
 |
|
pierrotsc
  
USA
497 Posts |
Posted - May 24 2021 : 17:28:54
|
Nigel, can you run my latest demo i posted without nexusdb and see why the wallpaper disappears in the imageenview ? Thanks |
 |
|
Topic  |
|