Help!! TCppWebBrowser ,popup window and Cookie

c++ builder

    Sponsored Links

    Next

  • 1. Positioning a text label
    I have done a search for this and found nothing which surprised me. I have two labels that are to be displayed on the mainform that is maximized. I want one label to be centered on the left side and one to be centered on the right side. Now I know that a simple way to do this is just to put it on two panels - one that is left and the other right aligned and center each label on each panel but this does not really give me the placement I want. I know that I can get the width of the form with ClientWidth but I don't know how to get the width of the text. label1->left = ((ClientWidth/2) - ((label1->textwidth?)/2); label2->left = ((ClientWidth*3)/4) - ((label2->textwidth?)/2);
  • 2. TGifImage with ThreadPriority TimeCritical is not refresh with smooth
    Hello, I have set a TImage with Gif animated inside. The problems is that when I set animate = true for TGifImage with ThreadPriority highest or timecritical is is painted with ugly jumps. I want show an animated gif for process how Query->Open and stop the animation when Query->AfterOpen is triggered. The only problem is that this proccess consumes resources and the animation is showed with jumps. how could i solve it ? Thanks in advance
  • 3. Application->ShowMainForm
    This should be easy, but I'm missing something... I am trying to create a false main form that will then bring up one of the 'sub' forms. I have Application->ShowMainForm=false in the startup code, but cannot figure out the correct way to Show() the sub form. Does anyone have a small example of how to do this?
  • 4. Writing data to Memo
    Peter Stevens wrote: > Hello, > > I am trying to copy data in a Memo. It works partially but not completely (which is not enough). > In the following test code I am trying to fill the first 10 lines of Memo1 with nimbers 0 through > 9 (for simplicity). for (i = 0; i < 10; i++) > { > Edit1->Text = i; > Memo1->Lines->Strings[i] = Edit1->Text; > } > It works for the first two lines, with values 0 and 1, and then Memo1->Lines->Strings[i] stops > accepting values from Edit1->Text; What can I do to make it work with larger number of lines? > > Thanks in advance. > Peter You need to Add the line before adding data to it, or add it this way: for (i = 0; i < 10; i++) { Edit1->Text = i; Memo1->Lines->Add(Edit1->Text); // or Memo1->Lines->Add(IntToStr(i)); } -- -Michael Gillen
  • 5. TComboBox and AddObject
    I am trying to store a description in the TComboBox->Items array and the associated part number in the TComboBox->Objects array. I tried the following: char *partNumber=new char [(cards->Names[i].Length())+1]; strcpy(partNumber,cards->Names[i].c_str()); ComboBox1->Items->AddObject(description,(TObject *)partNumber); This does allow me access to the partnumber, but when I try to delete the object via: delete (char *)ComboBox1->Items->Objects[i]; I get a "Resource type mismatch" in the CodeGuard Log. Is there a way to fix this? Or better yet, is there a better way to do what I am trying to do? Thanks in advance,

Help!! TCppWebBrowser ,popup window and Cookie

Postby Cheng » Fri, 05 Sep 2003 09:32:08 GMT

I set up a CppWebBrowser in my software. It acts as a IE and woks fine.
But If It needs to popup a new window with cookie after clicking related
button inside the CppWebBrowser. It works differently from using IE. It
seems the new popup windows's session is different from the origal
one(CppWebBrowser).

I appreciate any help!
Thanks in advance!

Cheng




Similar Threads:

1.help about downloading with session and cookie support at windows application

2.Stop TCPPWebBrowser Javascript Popup

3.TCppWebBrowser Popup Menu Clipboard Copy Operation

The right-click popup menu contains Copy and Select all, which appear to be
supported in that they are enabled and disabled appropriately when text is
selected.  However, Copy does not change the contents of the Clipboard.  Any
ideas how to get this to work, or how to remove the non-functional items from
the menu?


4.Popup window (actually slide up window like AOL/Trillian)

Does anybody have any code to do the kind of status window where the window 
slides up from the bottom displays for a few seconds and then disappears?

I found it for MFC but not C#.

TIA - Jeff.


5.Popup menus and windows move behind app window in XP

All first-level popup windows, whether they be right-click menus, "What's 
this" context popups, drop-down selection boxes, are disappearing behind the 
application window or dialog box being displayed a second or two after being 
displayed.  This behavior is limited to Windows XP and never happens when out 
product is used with Windows 2000.  Sometimes the windows do not disappear.  
When they do, it is only the portion of the window that overlays our 
application window or a dialog being displaying.  It is as if the application 
window or dialog is being redrawn and the order of which window is topmost is 
changed.  Even though the window is drawn behind the frame it overlays, all 
items are still selectable so the popup itemis still on top, but its image 
has been drawn behind.

Our application presents as a floating toolbar and does have the topmost 
flag set so that it never disappears behind other applications.  (It is used 
in concert with other applications and must be visible at all times.)  It can 
also be docked as an AppBar to the top and bottom of the screen.  Docking 
does not change the aberrant behavior of the popup items.

Is anyone aware of a difference between Windows 2000 and XP that would 
explain the bad behavior under XP?  Again, we have no such problems with 
Windows 2000.  Any suggestions for the cause and especially a work-around 
would be greatly appreciated.

6. Newbie Cookie Question - Cookie Not Saved

7. Correct way to copy cookies between Indy cookie managers

8. Cookies just vanishing/dropping/resetting - help!



Return to c++ builder

 

Who is online

Users browsing this forum: No registered users and 43 guest