I have a problem. I want to copy a caption of a label from a Delphi windows application .When I copy the caption label and paste in a notepad I get some weird text like " ÇÓÜÜã ÇáãæÙÝ " !!
How do i resolve this ?
The caption/text which I am copying is in Arabic. All the fonts are installed , Arabic text is working fine. But I am encountering this problem when I am copying caption of labels only from Delphi win32 aaplication.
Maybe you should set up the notepad app. to use the ANSI Character Set (from the open file menu) if your Delphi app. was written in an older compiler (prior to D2009).
Related
I'm having this strange issue for the first time in my 15+ experience of using Delphi.
This is the icon I set in the project options (XE4):
And this is the resulting application icon after compiled:
I've no idea where does that icon come from and I have no way to change the icon (really driving me crazy).
The icon of this project has been ok for over a year until later today. Things I've tried with no luck:
Use the 'Load Icon...' button to change it to another complete different icon and re-build.
Use the 'Default' button to reset to default icon and re-build.
Deleted project1.res file and re-build.
Deleted the .dproj file, open .dpr file instead and let the Delphi IDE created a blank new .dproj file. no luck.
I thought it's the Windows 7's IconCache.db file corrupted, deleted that file and restarted Windows, no help. Actually I used Resource Hacker to confirmed it's not the Windows Explorer displaying the wrong icon but it's the icon resource in the EXE is wrong... too strange.
restored the .dproj file from SVN to yesterday(the icon was ok yesterday)'s revision and no luck.
Anything else do you suggest me to try? Thank you!
Review the line in your main form with {$R *.res}. I had the same issue and it was that this line was accidentally deleted. That caused that icon and other resouces to not be correct in the final executable, like version number, icons etc.
If you don't know what that line is, simply make a few empty new vcl application and search it in the main form.
I am very new to programming and started using sublime text 2 as an editor for corona sdk and I am really liking it aside from one small problem.
My Problem:
When I open a new file in sublime text and then save it as a .lua file it does not save as a .lua. I use the drop down menu to select save as .lua. When I look at the file in my project folder the filetype is specified as only "file". This problem wont stop me from using sublime but it is very annoying. Any help would be appreciated.
Try just typing the full filename you want when you save it, e.g. filename.lua
I've got a .NET Compact Framework application that uses a Zebra QL220+ printer. I drive the printer via CPCL printer language, and I now need to print some output that cannot be achieved with just the resident fonts. I'd like to create some pre-scaled fonts (which are then downloaded as .cpf files to the printer) but for the life of me I cannot find how to do this. I have the Label Vista tool from Zebra, and despite the fact that the Help file states this can be done, my "Fonts" menu is disabled. Does anyone know a way to create the CPF files?
Hmm, I don't know why it's grayed out in v3.5.2, 3.5.1 works, but I couldn't find a download link for it.
Try this though.
Click on Tools->Text and then click in the label somewhere to enter a
Under "Type of Font" select TTF if you want to convert a TTF
Click Select Font
Pick your font and click OK
Now "Make Font" should now be enabled, click it
Now you can save the font as a cpf file
hope that helps!
I want to create ListField .In each row of Field i want to display image on the Right and text on the left.I am using the ListField and callback.The text and image is getting displayed but the text is overwriting on the image and also if i change the order i.e image on left and text on the right then the text is getting truncated and only a single line is coming where as the text is of multiple lines .So anyone could you please give an idea of how to proceed or way to do
thank you
Which OS version are you using? If you are using OS6 or higher, consider using a TableView(and associated TableModel and TableController) . Its DataTemplate feature allows you more control over the layout of each row.
If you still want to use a ListField then you should show the code you are having trouble with.
Check out the BlackBerry Advanced UI components here: http://supportforums.blackberry.com/t5/Java-Development/Implement-advanced-buttons-fields-and-managers/ta-p/488276
In particular check the ListStyleButtonField example.
Zip file containing Example BlackBerry Project:
http://supportforums.blackberry.com/rim/attachments/rim/java_dev#tkb/399/4/Advanced%20UI.zip
Once downloaded, do the following:
Extract the Advanced UI folder to your local machine
Open Eclipse and goto File->Import->Existing Project into workspace
Choose the Advanced UI folder as the root folder
The Advanced UI project will then be imported into Eclipse and you should be able to build and run the sample application on the BlackBerry simulator. Once you see how ListStyleButtonField works you can copy it into your project, or modify it to your specific requirements.
Note that you may have to set your compiler compliance level to 1.3 to get this working. Do this under Project Settings->Java Compiler
Embarcadero just released a whole bunch of neat looking icons that I'd like to use to make my Delphi 7 and 2009 apps look fancier. Is there a setting (or hack) in those IDEs that lets me change the default exe icon?
You could always use a resource editor to find the icon in the Delphi ide or bpl and change it to something else. That would be permanent for all new projects.
Apart from the fact that Andrey answered exactly what you asked I assume you want to add more icons to your executable than just the one you can set in the project option? This can be done by adding a *.rc file to the project. The following line should go into your project:
{$R 'Icons.res' 'Icons.rc'}
The rc file is a plain text file that Delphi compiles into a res. To the rc file add 1 icon per line like this:
XIcon01 ICON ".\Images\ico\ADDRESS2.ico"
XIcon02 ICON ".\Images\ico\ADDRESS3.ico"
XIcon03 ICON ".\Images\ico\ADDRESS4.ico"
The first part is the name of the icon. I chose names that come after Mainicon alphabetically with Mainicon being the icon that you define in the project options. I'm not sure (maybe somebody can confirm?) but I think that Delphi compiles the first icon as the application icon so I made sure my additional icons sort later.
In case you want to change the application's icon at runtime you can use the 2 Application.Icon.LoadFromResource routines.
Hope that helps