473,396 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

regular control with a dialog frame

Hi , I'm writing a script editor and i want to add an autocomplete feature to it just like in VS. now, in VS the Autocomplete list has a frame just like a dialog frame , i want the same frame for my autocomplete list. so i wrote this in my listbox derived class:

Expand|Select|Wrap|Line Numbers
  1.         protected override CreateParams CreateParams
  2.         {
  3.             get
  4.             {
  5.                 const int WS_DLGFRAME = 0x400000;
  6.                 const int WS_BORDER     = 0x800000;
  7.                 const int WS_THICKFRAME = 0x40000;                
  8.  
  9.                 //const int WS_CAPTION = 0xC00000;
  10.                 CreateParams cp = base.CreateParams;
  11.  
  12.                 cp.Style = (cp.Style | WS_DLGFRAME | WS_BORDER | WS_THICKFRAME );
  13.                 return cp;
  14.             }
  15.         }
but i have two problem with this
1. the frame doesn't look exacly like the VS Frame(the top part of the frame is wider than the othr parts)
2.It seems that enabling the WS_DLGFRAME Style makes the control movable and resizeable to the user ,meaning the user can change the control's Size and position at runtime.

Please help , Amir.
Dec 14 '07 #1
0 909

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: ashbless | last post by:
i have a program that starts up with a dialog, which invokes a class according to user input, and that class opens a frame..in fact, frame opens but it is not painted, and invoking paint/repaint...
1
by: Thomas Nücker | last post by:
Hi! I am creating a dialog-box within my application, using tkinter. The problem is the following: After the dialogbox is started, the main application window comes again to top and the...
2
by: William Gill | last post by:
I have created a widget that extends Frame() and contains labels, checkboxes, and entrys. I am trying to use tkSimpleDialog.Dialog to create a modal display of this widget, but am running into...
4
by: MechSoft | last post by:
Hi, there, I have a multi-threaded non-MFC program that will include a regular dll which would be part of the user interface, possibly a dialog based interface. I would prefer to have the user...
10
by: Guadala Harry | last post by:
I have a modal dialog that currently does all of the following except item 4. 1. lets users select a graphic from a list of thumbnails (and when selected, displays the full-size image in a...
1
by: Michael Yanowitz | last post by:
Hello: Below I have included a stripped down version of the GUI I am working on. It contains 2 dialog boxes - one main and one settings. It has the following problems, probably all related, that...
2
by: John Salerno | last post by:
I'm not exactly sure how to call the method ShowModal(). This is what I have so far: -------------- import wx class InputForm(wx.Frame):
0
bartonc
by: bartonc | last post by:
#Boa:Dialog:DBConnectDialog import wx ##"""Given a set if login specs, create a dbServer instance and ## ensure that there is a valid, open connection to the database. ## If not, set the...
4
by: joseff | last post by:
Hi evryone!! I' m very new not only to Python and Tkinter but to programing. I'm a bit stuck here and would be grateful for some help. I have 3 radio select buttons(see below) which I want to link...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.