logo
down
shadow

Delphi Created Images are not displayed


Delphi Created Images are not displayed

By : user2953813
Date : November 21 2020, 07:31 AM
I hope this helps . I am trying to dynamiclly create a custom component with images and display them in a Grid , but the Images don't show up. Below is the code with omitted part of declarations , could someone help me and tell me what am I doint wrong ? , Adding the following code to Tile class , fixed the issues.
code :
type 
  private 

  FOnChangedBitmap : TNotifyEvent;

protected 
  procedure BitmapChanged;virtual;


procedure TTile.BitmapChanged;
begin
  if Assigned(FOnChangedBitmap) then
    FOnChangedBitmap(Self);
end;

procedure TTile.BitmapChangedDefault(Sender: TObject);
begin
  (FControl as TImage).Bitmap := FBitmap;
end;

procedure TTile.SetBitmap(bitmap :TBitmap);
begin
  FBitmap:=bitmap;
  BitmapChanged;

end;


Share : facebook icon twitter icon
What principles should be followed to make a DLL created using Delphi works well in other Delphi version?

What principles should be followed to make a DLL created using Delphi works well in other Delphi version?


By : Quynh Doan
Date : March 29 2020, 07:55 AM
it should still fix some issue The definition of a string changed with D2009. If you want to make string communication safe, use a PAnsiChar or a WideString.
The basic rule of communication through DLLs is to not use anything specific to Delphi, so no Delphi strings and no TObject descendants. Interfaces, records and COM types work fine, though.
How to fix Delphi XE2 error: Package can't be installed because it was created with a different version of Delphi or CBu

How to fix Delphi XE2 error: Package can't be installed because it was created with a different version of Delphi or CBu


By : user3915937
Date : March 29 2020, 07:55 AM
This might help you I just found a updated xe2 version of the embeddedweb browser.. I was fighting with the same error. I did some research on this issue and it seems that perhaps the XE2 Update 2 is breaking other components from other companies. Are you running Update 2? I should of tried to install the package before I updated to update3....So i will not fully know if the update 2 is the issue... and now that new source is available... All is not to be worried about.
but I did find updated sources that fixes this... I would suggest you just get the updated package and not look back.
How to detect mouse click on images displayed in GUI created using PySide

How to detect mouse click on images displayed in GUI created using PySide


By : soomin
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , I've added an example of how to emit a signal and connect to another slot. Also the docs are very helpful
code :
from PySide.QtCore import *
from PySide.QtGui import *

import sys


class Main(QWidget):


    def __init__(self, parent=None):
        super(Main, self).__init__(parent)

        layout  = QHBoxLayout(self)

        picture = PictureLabel("pic.png", self)
        picture.pictureClicked.connect(self.anotherSlot)

        layout.addWidget(picture)
        layout.addWidget(QLabel("click on the picture"))

    def anotherSlot(self, passed):
        print passed
        print "now I'm in Main.anotherSlot"


class PictureLabel(QLabel):

    pictureClicked = Signal(str) # can be other types (list, dict, object...)

    def __init__(self, image, parent=None):
        super(PictureLabel, self).__init__(parent)        
        self.setPixmap(image)

    def mousePressEvent(self, event):
        print "from PictureLabel.mousePressEvent"
        self.pictureClicked.emit("emit the signal")

a = QApplication([])
m = Main()
m.show()
sys.exit(a.exec_())
Images in table view displayed in simulator but not displayed in my iPod device

Images in table view displayed in simulator but not displayed in my iPod device


By : Kenia Martinez
Date : March 29 2020, 07:55 AM
To fix this issue I have a table view, and I have image file in my application folder and in Xcode.proj , Two Reasons -
Delphi xe8 error reading textfile created from Delphi 7 version and vice versa

Delphi xe8 error reading textfile created from Delphi 7 version and vice versa


By : Hun Hoem
Date : March 29 2020, 07:55 AM
hope this fix your issue The file saved by your Delphi 7 program is UTF-8 encoded. I decoded the base64 that you supplied and look at it in a hex editor. It looks like this:
shadow
Privacy Policy - Terms - Contact Us © ourworld-yourmove.org