hello,
in my project i have two form's(form1,form2), form1 is configuration form.
i want to show Form1 and when we click Button1 then show Form2 and free(Release) Form1. how can to i do this?
i use this code. but this project start and then exit automatically.A Friend said because the application message loop never start, and application terminates because main form does not exist. how i can to solve this problem?
uses Unit2;
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
Application.CreateForm(TForm2, Form2);
Release;
end;
///
program Project1;
uses
Forms,
Unit1 in 'Unit1.pas' {Form1},
Unit2 in 'Unit2.pas' {Form2};
{$R *.res}
begin
Application.Initialize;
Application.MainFormOnTaskbar := True;
Form1:= TForm1.Create(Application);
Application.Run;
end.
Hi,
I wrote an application and now I'm making a tray-icon. Now I want to set a multi-line tooltiptext to the tray-icon. But I don't know how. I know how to do this with Swing:
component.setToolTipText("<html>Line 1<br>Line2</html>");
But this doesn't work with AWT. Also serarating lines by \n doesn't work.
Any help would be very appreciated.
Thanks
I am sure there is a better way to do what I am doing in my apps. The current one I am trying to improve is a list of military cadences. The way I am doing it now is by loading html files in a web view.
What I would like to be able to do is have one view set up and just be able to add the text portion of what I would be displaying with the html file.
What would be the best method. I know this is probably a pretty simple thing to do with a sting or array but I am at the very beginner level and would need to be pointed in the right direction to do it.
I have a checkboxes on my site that when unchecked, update their row in in the db as unchecked, and if checked,update their row in the db as checked. I am creating an ifstatement that will commence with its command if checked, and not if unchecked. I have echoed the variable and it is holding the proper value (checked or unchecked) but not sure if I am syntactically correct on displaying the state of the row in the db.
This is what I am trying and will not work. I am new at php still and thank you very much for any help.
if($auth->check_prof == 'checked'){// do the stuff in here}
Hi all,
Does anyone here know how to set up a pager_query() to automatically go to the last page of the query when the page is displayed? I'm using theme_pager() to format the page.
I have added some UIButton objects into .xib file, and some UIButton objects with the code.
But now I am facing one problem. While Zooming the UIImageView the UIButtons that are added through code are shown on the UIImageView and those that are added with .xib file are below the UIImageView.
Code for UIButtons added with code:
btnBrightness = UIButton.FromType (UIButtonType.RoundedRect);
btnBrightness.Frame = new RectangleF (540, 20, 95, 37);
btnBrightness.SetTitle ("Brightness", UIControlState.Normal);
More details:
monotouch
I've got a Dictionary<string, string> and would like to have the user to see and edit the content, possibly adding new entries. How should I do that?
Input verification, handling dynamic updates of the source Dictionary and looking nice are a bonus.
I'm after creating a webpage that includes a blog section and it currently displays the whole post on the homepage. I'd like to set it so that it only displays a certain part of the entry i.e 50 words. I'd then like to be able to set it so that I have a read more button below the post that links to the post id. I currently use post.php?=# (# = whatever the post id is).
Here is the homepage:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Blog Name</title>
<link rel="stylesheet" href="css/style.css" type="text/css" />
<body>
<div id="upper-bar">
<div id="bar-content">
<a href="#">Home</a>
<a href="#">Archives</a>
<a href="#">Contact</a>
<a href="#">About</a>
<a href="#"><img src="images/twitter.png" id="tweet"></a><a href="#"><img src="images/feed.png" id="feed"></a>
</div>
</div>
<div id="clear">
</div>
<div class="main">
<h1>Blog Name</h1>
<div class="post-col">
<?php
mysql_connect ('localhost', 'root', 'root') ;
mysql_select_db ('tmlblog');
$sql = "SELECT * FROM php_blog ORDER BY timestamp DESC LIMIT 5";
$result = mysql_query($sql) or print ("Can't select entries from table php_blog.<br />" . $sql . "<br />" . mysql_error());
while($row = mysql_fetch_array($result)) {
$date = date("l F d Y", $row['timestamp']);
$title = stripslashes($row['title']);
$entry = stripslashes($row['entry']);
$id = $row['id'];
?>
<div id='post-info'><?php echo "<p id='title'><strong><a href=\"post.php?id=". $id . "\">" . $title . "</a></strong></p>"; ?><br /></div>
<div id="post">
<?php echo $entry; ?>
<!--<br /><br />
Posted on <?php echo $date; ?> !-->
</p>
</div>
</p>
</div>
<?php
}
?>
</div>
</div>
</body>
</html>
Hi, I have a site setup that is working fine in ie8 and firefox but as you can see here:
http://i36.tinypic.com/nzq63m.jpg
Is this an issue with some css or a png transparency? Or is this just something with IE7.
Thanks in advance :)
I have a listview with 200 items. I use a custom view for each row. There is a code that takes some time to calculate, and because of this the list hangs out on scrolling and loads in slow (2-3sec).
I have subclassed SimpleCursorAdapter, and using Filterable and SectionIndexer.
I have in mind to show initially the name of the record, and put in a thread the calculation, and will show up later when it's done.
How do I push back some work, and later update the listview to include the calculated data? This should show up on fly without user interaction.
showDescriptionPath is being passed from the previous Tableview. The text shows up, but the entire path prints in the UITextField instead of just the value of "Description" in my plist.
NSString *DescriptionPath = [[NSBundle mainBundle] bundlePath];
NSString *DescriptionInfoPath = [DescriptionPath stringByAppendingPathComponent:showDescriptionInfo];
showDescription.text = [[NSString alloc] initWithFormat:@"%@",DescriptionInfoPath];
Hello All,
it's just my curiosity to know that why phpmyadmin behavior in different manner when we modify query a bit( putting extra space) then headers of query results, sometime comes in Button format( on hover it say sort, but sorting not working at all) and sometimes in blue link
is there any difference for this or it just causing by some othe reason?
i m attaching both images.
Button headers
Link headers
I am trying to run this code on my blakberry simulator, but it will not appear on the main menu. Can anybody please help me out.
import net.rim.device.api.ui.FieldChangeListener;
import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.component.ButtonField;
import net.rim.device.api.ui.component.LabelField;
import net.rim.device.api.ui.container.MainScreen;
public class FirstScreen extends MainScreen implements FieldChangeListener {
ButtonField theButton;
public FirstScreen() {
add(new LabelField("First Screen"));
theButton = new ButtonField("New Screen", ButtonField.CONSUME_CLICK);
theButton.setChangeListener(this);
add(theButton);
}
public void fieldChanged(Field field, int context) {
if (field == theButton) {
UiApplication.getUiApplication().pushScreen(new SecondScreen());
}
}
public class SecondScreen extends MainScreen {
public SecondScreen() {
add(new LabelField("Second Screen"));
}
}
}
For some odd reason the part where objects are shown and hidden in my script doesn't seem to be working. I'm not sure if its the fact firefox doesn't like that or whether its the function-based code I have (to save duplicating lines of code)?
There is a working example here and the javascript is here
All help appreciated
id:
network
description: Network controller
product: MT7630e 802.11bgn Wireless Network Adapter
vendor: MEDIATEK Corp.
physical id:
0
bus info:
pci@0000:04:00.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration:
latency = 0
resources:
memory : b0600000-b06fffff
THIS IS MY WIFI driver details of my notebook pc.... BY the way.. recently I have installed ubuntu 14.04 LTS .....my every hardware is working properly except wifi adapter.... in windows it(wifi) was also working properly.. from hp driver center I have download linux kernel driver package ..Actually those driver package was rpm package ...then i have convert it to .dev file using alien...but the true fact is no result though..... again,previously released ubuntu version(such as 12.04LTS) causes the same issue ...those versions have same bugs there.. after googling web i have few results but no reliable outcomes to solve my problem(wifi issue) ..... As I am new user in ubuntu I cannot able to solve the problem drastically like pro(superuser)..
https://answers.launchpad.net/ubuntu/+question/243203
How do I get a Mediatek MT7630E 802.11bgn Wi-Fi Adapter working?
here two links about my issuses but I am confused what can i do (feeling meh)??? is there anyone who can help me in this issues...?? my notebook model is HP probook 450G1
Question #243203 : Questions : Ubuntu
My HP laptop uses MediaTek's (MEDIATEK Corp.) MT7630e 802.11bgn Wireless Network Adapter.
I cannot access wifi after installing Ubuntu myself and there are no drivers available - or so it seems. Apparantly some laptops which use this card came with Ubuntu pre-installed, with working drivers. These d…
answers.launchpad.net
Question #243203 : Questions : Ubuntu
My HP laptop uses MediaTek's (MEDIATEK Corp.) MT7630e 802.11bgn Wireless Network Adapter.
I cannot access wifi after installing Ubuntu myself and there are no drivers available - or so it...
ANSWERS.LAUNCHPAD.NET
I've been having trouble with getting graphics drivers to work that support OpenGL 2.0. I've had some luck with the Ubuntu drivers, however these only support OpenGL 1.3. I thought I would document the methods that I have tried both to see if anyone else has ideas, and to save time for people with a similar problem.
System details:
Ubuntu 10.04 (Lucid) 64 bit
Kernel Linux 2.6.32-44-generic
GNOME 2.30.2
ATI Mobility Radeon HD 3670
Attempted Methods
The methods I have tried are:
1. Installing Proprietary Drivers using the "Hardware Drivers" (Jockey) GUI
This GUI offers an "ATI/AMD proprietary FGLRX graphics driver" however any attempts to install it result in a "Sorry, installation of this driver failed" error. The log file is here.
There is an Ask Ubuntu question that covers this scenario, and notes that there is a known bug with Jockey.
2. Installing the Proprietary Drivers manually
The answer to the question above linked to this wiki page, which gives instructions for installing Catalyst 12.6. This supported hardware list states that the 3670 is not supported in 12.6, and 12.4 must be used. This is somewhat confusing, as AMD's website suggests that the 12.6 driver should be installed for the 3670. There have been user reports that R600 (the GPU inside the 3670 card) doesn't work with 12.6, so I'm sticking with 12.4.
I'm following these instructions to install the proprietary drivers on Lucid. I downloaded the 12.4 driver from the AMD website. Building the package worked fine, generating the fglrx, fglrx-dev, fglrx-amdcccle, and fglrx-modaliases deb packages successfully. However, when I try to install these using dpkg it gives me these errors. The make log referenced in the error is here.
Ask Ubuntu References
What is the correct way to install ATI Catalyst Video Drivers?
Cannot install ATI/AMD FGLRX restricted graphic drivers
Is my ATI graphics card supported in Ubuntu?
I upgraded Ubuntu to 12.04 from 11.10. The printer works, but the scanner doesn't now. In 11.10 I had to install a special driver from Brother. The printer's model is Brother MFC-290C. The computer is a Toshiba Satellite. How can I get the scanner working?
Update:
I have a 64-bit installation on the Toshiba Satellite. Thank you for your instructions, Chad--24216. I followed each step: 1 through 5. I also updated the Brother Linux scanner S-KEY tool.
The output of dpkg -l | grep Brother is:
ii brscan-skey 0.2.3-0 Brother Linux scanner S-KEY tool
ii brscan3 0.2.11-5
Brother Scanner Driver
ii mfc290ccupswrapper:i386 1.1.2-2 Brother CUPS Inkjet Printer Definitions
ii mfc290clpr:i386 1.1.2-2 Brother lpr Inkjet Printer Definitions
ii printer-driver-ptouch 1.3-3ubuntu0.1 printer driver Brother P-touch label printers
Still the scanner does not work. Here is the message from Xsane:
Failed to open device brother3:bus6;dev1: Invalid argument.
Here is the message from Simple Scan:
Failed to scan. Unable to connect to scanner.
And Scan Utility still doesn't display the scanner line.
Linux has come a long way with hardware support, but if you have a wireless card that still does not have native Linux drivers you might be able to get the card working with a Windows driver and ndiswrapper.
Using a Windows driver inside of Linux may also give you faster transfer rates or better encryption support depending on your wireless card.
If your wireless card is working, it is not recommended to install the Windows driver just for fun because it could cause a conflict with the native Linux driver
Latest Features
How-To Geek ETC
How To Make Hundreds of Complex Photo Edits in Seconds With Photoshop Actions
How to Enable User-Specific Wireless Networks in Windows 7
How to Use Google Chrome as Your Default PDF Reader (the Easy Way)
How To Remove People and Objects From Photographs In Photoshop
Ask How-To Geek: How Can I Monitor My Bandwidth Usage?
Internet Explorer 9 RC Now Available: Here’s the Most Interesting New Stuff
Smart Taskbar Is a Thumb Friendly Android Task Launcher
Comix is an Awesome Comics Archive Viewer for Linux
Get the MakeUseOf eBook Guide to Speeding Up Windows for Free
Need Tech Support? Call the Star Wars Help Desk! [Video Classic]
Reclaim Vertical UI Space by Adding a Toolbar to the Left or Right Side of Firefox
Androidify Turns You into an Android-style Avatar