Jump to content

Search the Community

Showing results for tags 'combobox'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Delphi Questions and Answers
    • Algorithms, Data Structures and Class Design
    • VCL
    • FMX
    • RTL and Delphi Object Pascal
    • Databases
    • Network, Cloud and Web
    • Windows API
    • Cross-platform
    • Delphi IDE and APIs
    • General Help
    • Delphi Third-Party
  • C++Builder Questions and Answers
    • General Help
  • General Discussions
    • Embarcadero Lounge
    • Tips / Blogs / Tutorials / Videos
    • Job Opportunities / Coder for Hire
    • I made this
  • Software Development
    • Project Planning and -Management
    • Software Testing and Quality Assurance
  • Community
    • Community Management

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Delphi-Version

Found 3 results

  1. Hello, I'm trying to create a combobox that I can style to look like this. I'd **LIKE** to do it solely in the WYSIWYG style designer. Can anyone point me to a tutorial on how even to change the font size in the Style designer? I'm admittedly such a noob in this, but I'm at a total loss. Thanks. - Mike
  2. Type THelpModel = Class(TGridModel); procedure TViewPart.ChangeStringGridComboBoxCurrency(Sender: TObject); begin with TComboBox(Sender), StringGridPartDet do begin THelpModel(StringGridPartDet.Columns[2].Model).DoSetValue(Col,Row, TValue.From<String>(Items[ItemIndex]) ); StringGridPartDet.Columns[2].UpdateCell(Row); end; end; procedure TViewPart.StringGridPartDetCreateCustomEditor(Sender: TObject; const Column: TColumn; var Control: TStyledControl); begin if Column = StringGridPartDet.Columns[2] then begin Control := TComboBox.Create(Self); TComboBox(Control).Items.AddStrings(['GBP', 'EUR']); With StringGridPartDet, TComboBox(Control) do ItemIndex := Items.IndexOf(THelpModel(StringGridPartDet.Columns[2].Model).DoGetValue(Col,Row).AsString); TComboBox(Control).OnChange:= ChangeStringGridComboBoxCurrency; end; end; I have a StringGrid (StringGridPartDet) connected to a DataSet, I have used the attached code to update the currency column with a value from a ComboBox, the value appears correctly in the StringGrid, but does not update the DataSet. AmI missing a step?
  3. Hello everyone Sorry about my english, Im from Mozambique and its not my mother Language I'm developing in Delphi, I created a birthplace table (id, country_Id, country_name) and city (id, city_Id, city_name) in Xampp, then INSERT INTO country (id, country_id, country_name) VALUES (NULL, '2', 'Brazil'); INSERT INTO city (id, city_id, city_name) VALUES (NULL, '2', 'Rio de janeiro'); INSERT INTO city (id, city_id, city_name) VALUES (NULL, '2', 'Sao Paulo'); INSERT INTO country (id, country_id, country_name) VALUES (NULL, '4', 'USA'); INSERT INTO city (id, city_id, city_name) VALUES (NULL, '4', 'California'); INSERT INTO city (id, city_id, city_name) VALUES (NULL, '4', 'New York'); in the country FDQuery I put it: select * from country; in the city FDQuery I put it: select * from city inner join country where city.city_id=country.country_id; and have city_id city_name country_id country_name 2 Rio de janeiro 2 Brazil 2 Sao Paulo 2 Brazil 4 California 4 USA 4 New York 4 USA Its Ok, But when I select a country in the Lookupcombobox, (eg USA), when I select the city in the city Lookupcombobox it brings all cities, but, coundnt Please Help
×