mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 11:10:23 +02:00
MG: goto bookmark now centers the cursor line
git-svn-id: trunk@715 -
This commit is contained in:
parent
e00b19de22
commit
f6fe2f1c96
@ -1411,13 +1411,8 @@ begin
|
|||||||
Integer(Data), 1); // column
|
Integer(Data), 1); // column
|
||||||
|
|
||||||
csNotebook:
|
csNotebook:
|
||||||
begin
|
|
||||||
Assert(False, 'Trace:Setting Page to ' + IntToStr(TLMNotebookEvent(Data^).Page));
|
|
||||||
//writeln('LM_SETITEMINDEX A ',HexStr(Cardinal(Handle),8),', ',TLMNotebookEvent(Data^).Page);
|
|
||||||
gtk_notebook_set_page(PGtkNotebook(Handle),
|
gtk_notebook_set_page(PGtkNotebook(Handle),
|
||||||
TLMNotebookEvent(Data^).Page);
|
TLMNotebookEvent(Data^).Page);
|
||||||
//writeln('LM_SETITEMINDEX B ',TLMNotebookEvent(Data^).Page);
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -1860,7 +1855,9 @@ begin
|
|||||||
csLabel : //gtk_label_set_text(pGtkLabel(p), pLabel);
|
csLabel : //gtk_label_set_text(pGtkLabel(p), pLabel);
|
||||||
gtk_label_parse_uline(pGtkLabel(p),pLabel);
|
gtk_label_parse_uline(pGtkLabel(p),pLabel);
|
||||||
|
|
||||||
csCheckBox : gtk_label_set_text(pGtkLabel( pgtkCheckButton(p)^.Toggle_Button.Button.Child),pLabel);
|
csCheckBox : gtk_label_set_text(
|
||||||
|
pGtkLabel(pgtkCheckButton(p)^.Toggle_Button.Button.Child),
|
||||||
|
pLabel);
|
||||||
|
|
||||||
csGroupBox : gtk_frame_set_label(pgtkFrame(P),pLabel);
|
csGroupBox : gtk_frame_set_label(pgtkFrame(P),pLabel);
|
||||||
|
|
||||||
@ -1877,10 +1874,12 @@ begin
|
|||||||
gtk_text_thaw(PGtkText(P));
|
gtk_text_thaw(PGtkText(P));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
csPage : gtk_notebook_set_tab_label_text(PGtkNotebook((TWinControl(Sender).Parent).handle),
|
csPage:
|
||||||
PGtkWidget(P),
|
begin
|
||||||
PGChar(data));
|
gtk_notebook_set_tab_label_text(
|
||||||
//GET? WHY should this be right? p := gtk_notebook_get_tab_label(PGTKNoteBook(TWinControl(Sender).Parent.Handle), P);
|
PGtkNotebook((TWinControl(Sender).Parent).Handle),
|
||||||
|
PGtkWidget(P), PGChar(data));
|
||||||
|
end;
|
||||||
|
|
||||||
csComboBox : gtk_entry_set_text(PGtkEntry(PGtkCombo(P)^.entry), PLabel);
|
csComboBox : gtk_entry_set_text(PGtkEntry(PGtkCombo(P)^.entry), PLabel);
|
||||||
else
|
else
|
||||||
@ -4997,6 +4996,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.137 2002/06/07 07:40:45 lazarus
|
||||||
|
MG: goto bookmark now centers the cursor line
|
||||||
|
|
||||||
Revision 1.136 2002/06/07 06:40:18 lazarus
|
Revision 1.136 2002/06/07 06:40:18 lazarus
|
||||||
MG: gtk HandleEvents will now process all pending events
|
MG: gtk HandleEvents will now process all pending events
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user