Search found 359 matches
- Monday 19th February 2024 2:30am
- Forum: General
- Topic: Gift Receipt Printing - advise needed
- Replies: 10
- Views: 869
Gift Receipt Printing - advise needed
Hi Everyone, I have a slight problem that I am working on at the moment and i would like some input as to how to handle this I am trying to print a Receipt for a customer that does not have any prices on it (as a Gift Receipt) below is the example recipit file that is created by my software Ready to...
- Sunday 28th January 2024 11:50pm
- Forum: General
- Topic: [Sloved] Help with getting a image to fit onto a button
- Replies: 9
- Views: 1822
Re: Help with getting a image to fit onto a button
Thank you to everyone who replied to this problem the code that BruceSteers supplied works beautifully and the images look great
Thank you BruceSteers you have gotten me out of some tight issues in the past with this project.
Thank you BruceSteers you have gotten me out of some tight issues in the past with this project.
- Friday 26th January 2024 9:54pm
- Forum: General
- Topic: [Sloved] Help with getting a image to fit onto a button
- Replies: 9
- Views: 1822
[Sloved] Help with getting a image to fit onto a button
Hi Everyone I am using the following code to load a image from the database onto a key Public Function ImageFromString(ImageString As String, ImageFile As Button) If ImageString <> "" Then Global.pc = Picture.FromString(FromBase64(ImageString)) ImageFile.Picture = Global.pc End If End Does...
- Friday 19th January 2024 8:29pm
- Forum: General
- Topic: Convert image to byte array - what am I doing wrong.
- Replies: 10
- Views: 1958
Re: Convert image to byte array - what am I doing wrong.
Can anyone convert Python code into Gambas Code? def bitmap(self, data, length=0, density=0): if length == 0: length = len(data) if 0 < length < 1023: # length_lower = int(length & ord('\xff')).to_bytes() # length_higher = int((length & ord('\x03')<<8)>>8).to_bytes() # self.write(const.ESC_s...
- Thursday 18th January 2024 8:37pm
- Forum: General
- Topic: Convert image to byte array - what am I doing wrong.
- Replies: 10
- Views: 1958
Re: Convert image to byte array - what am I doing wrong.
This is the commands I am trying to follow (this is BASIC) https://algpos.co.uk/gambas/ESC_PoSCommand.PNG I have my image file called StoreLogo.bmp so i would need to work out how to convert the image so I can print it on my printer I KNOW I can upload the image to the Printers memory but the Tools ...
- Thursday 18th January 2024 7:52pm
- Forum: General
- Topic: Convert image to byte array - what am I doing wrong.
- Replies: 10
- Views: 1958
Re: Convert image to byte array - what am I doing wrong.
However, I would take this smoother path.... Public Sub Form_Open() Dim path As String Dim im As Image Dim bb As Byte[] path = "/path/of/image/file" im = Image.load(path) ' ...I get the coveted byte array: bb = Byte[].FromString(im.ToString(File.Ext(path), 100)) ' Test...... PictureBox1.I...
- Thursday 18th January 2024 11:23am
- Forum: General
- Topic: Convert image to byte array - what am I doing wrong.
- Replies: 10
- Views: 1958
Convert image to byte array - what am I doing wrong.
Hi everyone I need someone to look over this code for me and to tell me what I am doing wrong I have a imageview on the form Public Sub ConvertImage() Dim bmpFilePath As String = "till_logo.bmp" Dim byteArray As Byte[] ' Load the BMP image into the Image view FMain.ImageView1.Image = Image...
- Tuesday 26th December 2023 2:11am
- Forum: General
- Topic: [Solved] Textbox set focus
- Replies: 6
- Views: 3866
Re: Textbox set focus
Sorted.
I had to add a wait 0.1 to the btnClear_click function and it now sets the focus and allows me to type in the box
I had to add a wait 0.1 to the btnClear_click function and it now sets the focus and allows me to type in the box
- Tuesday 26th December 2023 12:10am
- Forum: General
- Topic: [Solved] Textbox set focus
- Replies: 6
- Views: 3866
Re: Textbox set focus
I'm not sure why it does not work, something to do with the form being loaded into a workspace. After the workspace has Added the frmSignon it seems to give it focus. I added this to the end of Main() in Startup.class Print Application.ActiveControl The result was frmSignon had focus not the textbo...
- Monday 25th December 2023 8:00pm
- Forum: General
- Topic: [Solved] Textbox set focus
- Replies: 6
- Views: 3866
Re: Textbox set focus
Works as expected here. Your code must be giving something focus that you don't really want. That is super strange attached is my project so far could you see if it works your end if it does then it means there is something not right with my system (GTK3) to test if you can type with out clicking t...